/* 遇伴婚介系统 全局样式（婚介温馨风：暖粉/玫红） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #4a3b40;
    background: #fdf2f6;
    min-height: 100vh;
}

a { color: #d6336c; }

/* ================= 登录 / 注册 / 独立卡片页 ================= */
body.login-body {
    background: linear-gradient(135deg, #e75480 0%, #d6336c 55%, #b02a5b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(176, 42, 91, .35);
    padding: 32px 38px;
    width: 400px;
    max-width: 96vw;
}

.card.wide { width: 920px; }

.card h2 { font-size: 21px; color: #d6336c; text-align: center; margin-bottom: 6px; }

.tagline { text-align: center; color: #b98ca0; margin-bottom: 18px; font-size: 13px; letter-spacing: 2px; }

/* ================= 表单 ================= */
.form-item { margin-bottom: 16px; }

.form-item label { display: block; margin-bottom: 6px; color: #6d5560; font-weight: bold; }

.form-item input, .form-item select, .form-item textarea {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ecccd9;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: #fffdfe;
}

.form-item textarea { height: auto; min-height: 80px; padding: 8px 12px; line-height: 1.6; }

.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    border-color: #d6336c;
    box-shadow: 0 0 0 3px rgba(214, 51, 108, .12);
}

.form-item .hint { color: #b98ca0; font-size: 12px; margin-top: 4px; }

/* radio/checkbox 修正：避免被 input 全局样式拉成整行框 */
.form-item input[type="radio"], .form-item input[type="checkbox"] {
    width: auto; height: auto; padding: 0; border: none; margin-right: 6px;
}

.radio-line, .check-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.radio-line label, .check-line label { display: inline; font-weight: normal; margin-right: 14px; cursor: pointer; }

/* ================= 按钮 ================= */
.btn-primary {
    display: inline-block;
    background: #d6336c;
    color: #fff;
    border: none;
    border-radius: 999px;
    height: 38px;
    padding: 0 26px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    line-height: 38px;
}

.btn-primary:hover { background: #b02a5b; }

.btn-plain { color: #d6336c; text-decoration: none; line-height: 38px; margin-left: 12px; }

.btn-plain:hover { text-decoration: underline; }

.btn-success {
    display: inline-block; background: #2e8b57; color: #fff; border-radius: 999px;
    height: 38px; line-height: 38px; padding: 0 22px; text-decoration: none; font-size: 14px;
}

.btn-danger { color: #c0392b !important; }

/* ================= 提示条 ================= */
.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.ok {
    background: #e8f6ec;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.tip { margin-top: 16px; color: #8a6b78; text-align: center; }
.tip.dim { color: #c4a6b3; font-size: 12px; }
.tip a { color: #d6336c; }

/* ================= 顶栏 ================= */
.app-top {
    height: 56px; flex-shrink: 0;
    background: linear-gradient(90deg, #e75480, #d6336c);
    color: #fff; display: flex; justify-content: space-between; align-items: center;
    padding: 0 22px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(176, 42, 91, .3);
}

.app-top .app-brand { font-size: 17px; font-weight: bold; letter-spacing: 1px; }
/* 顶栏「返回首页」按钮（位于用户信息之后，胶囊描边样式） */
.app-top .app-home-link {
    font-size: 13px; text-decoration: none; color: #fff;
    border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 4px 14px;
    background: rgba(255, 255, 255, .12); white-space: nowrap; display: inline-block;
}
.app-top .app-home-link:hover { background: rgba(255, 255, 255, .25); }
.app-top .app-user { font-size: 13px; }
.app-top .app-user a { color: #ffe08a; text-decoration: none; margin-left: 12px; }
.app-top .app-user a.app-home-link { color: #fff; margin-left: 12px; }
.app-top .app-user a.app-home-link:hover { text-decoration: none; background: rgba(255, 255, 255, .25); }
.app-top .app-user a:hover { text-decoration: underline; }

/* ================= 框架布局：顶栏 + 侧栏 + 内容 + 页脚 ================= */
body:not(.login-body) { min-height: 100vh; display: flex; flex-direction: column; }

.app-body { display: flex; flex: 1; min-height: 0; }

.app-side {
    width: 212px; flex-shrink: 0; background: #46242f; padding: 14px 0;
    position: sticky; top: 56px; align-self: flex-start;
    height: calc(100vh - 56px - 64px); overflow-y: auto;
}

.app-side .side-title { font-size: 12px; color: #b98ca0; padding: 10px 20px 6px; letter-spacing: 2px; }

.app-side a {
    display: block; padding: 12px 20px; color: #f3d7e0; text-decoration: none;
    font-size: 14px; border-left: 3px solid transparent;
}

.app-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.app-side a.side-menu-active {
    background: rgba(255, 255, 255, .14); color: #ffe08a;
    border-left-color: #ffe08a; font-weight: bold;
}

.container { flex: 1; max-width: none; margin: 0; padding: 22px 26px; min-width: 0; }

.container h2 { color: #b02a5b; text-align: left; margin-bottom: 16px; }

.app-footer {
    min-height: 64px; flex-shrink: 0; background: #46242f; color: #e8cdd8;
    display: flex; justify-content: center; align-items: center;
    gap: 28px; font-size: 12px; padding: 10px 16px; flex-wrap: wrap; text-align: center;
}

/* 页脚友情链接 */
.app-footer a, .home-footer a { color: #f6dce6; text-decoration: underline; }
.app-footer a:hover, .home-footer a:hover { color: #ffffff; }
.footer-links a, .home-footer-links a { margin: 0 4px; }
.home-footer-links { font-size: 13px; }

/* 页脚 App 安装二维码 */
.footer-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-qr img { width: 84px; height: 84px; background: #ffffff; padding: 4px; border-radius: 6px; }
.home-footer .footer-qr img { width: 110px; height: 110px; }

/* 页脚「点此直接下载 App」按钮：友情链接下方的高亮圆角下载键 */
.home-footer .home-footer-dl {
    align-self: center;
    margin-top: 4px;
    background: #d6336c;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.home-footer .home-footer-dl:hover { background: #b02a5b; color: #ffffff; }

/* ================= 工具条 / 表格 / 分页 ================= */
.toolbar {
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center;
}

.toolbar input[type="text"], .toolbar select {
    height: 36px; padding: 0 10px; border: 1px solid #ecccd9; border-radius: 8px;
    outline: none; background: #fff;
}

.toolbar input[type="text"]:focus, .toolbar select:focus {
    border-color: #d6336c; box-shadow: 0 0 0 3px rgba(214, 51, 108, .12);
}

table {
    width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(176, 42, 91, .08); margin-bottom: 18px;
}

th, td { border-bottom: 1px solid #f7e3ea; padding: 10px 12px; text-align: left; }

th { background: #fdeef3; color: #96566b; font-size: 13px; }

tr:last-child td { border-bottom: none; }

tr:hover td { background: #fff8fb; }

td.empty { text-align: center; color: #c4a6b3; }

td a { color: #d6336c; text-decoration: none; margin-right: 10px; }

td a:hover { text-decoration: underline; }

.pager { display: flex; align-items: center; gap: 16px; justify-content: center; color: #8a6b78; }
.pager a { color: #d6336c; text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ================= 状态徽章 ================= */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; white-space: nowrap;
}

.badge-pending { background: #fff3cd; color: #8a6d3b; }
.badge-published, .badge-passed, .badge-on { background: #d4edda; color: #1e7e34; }
.badge-rejected { background: #fdecea; color: #c0392b; }
.badge-revoked { background: #e9ecef; color: #6c757d; }
.badge-takedown { background: #f8d7da; color: #842029; }
.badge-vip { background: linear-gradient(90deg, #ffd166, #ffb347); color: #7a4b00; font-weight: bold; }
.badge-user { background: #e2e3e5; color: #495057; }
.badge-admin { background: #d6d8db; color: #343a40; font-weight: bold; }
.badge-lock { background: #fde7ef; color: #b02a5b; }

/* ================= 征婚广场卡片 ================= */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.post-card {
    background: #fff; border-radius: 14px; border: 1px solid #f7d9e4;
    padding: 18px 20px; text-decoration: none; color: #4a3b40; display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(176, 42, 91, .06);
    transition: box-shadow .2s, transform .2s;
}

.post-card:hover { box-shadow: 0 8px 22px rgba(176, 42, 91, .15); transform: translateY(-2px); }

.post-card h3 { color: #d6336c; font-size: 15px; margin-bottom: 6px; }
.post-card .meta { color: #9a7f8c; font-size: 12px; margin-bottom: 8px; }
.post-card .excerpt { color: #6d5560; font-size: 13px; line-height: 1.6; }
/* 卡片底部「详情」按钮（整卡可点，按钮提供显式入口；flex 吸底对齐） */
.post-card-action { margin-top: auto; padding-top: 12px; text-align: right; }
.post-card-action .btn-detail {
    display: inline-block; background: #d6336c; color: #fff; font-size: 13px; font-weight: bold;
    border-radius: 999px; padding: 6px 18px;
}

/* ================= 详情页 ================= */
.detail-card {
    background: #fff; border-radius: 14px; padding: 26px 30px;
    box-shadow: 0 2px 12px rgba(176, 42, 91, .08); margin-bottom: 18px;
}

.detail-card h2 { color: #b02a5b; margin-bottom: 10px; }
.detail-card .d-row { margin: 10px 0; line-height: 1.8; }
.detail-card .d-label { color: #96566b; font-weight: bold; margin-right: 8px; }

.locked {
    color: #b02a5b; background: #fde7ef; border: 1px dashed #d6336c;
    padding: 6px 12px; border-radius: 8px; display: inline-block; font-size: 13px;
}

.detail-photo { max-width: 220px; border-radius: 12px; border: 1px solid #f7d9e4; }

/* ================= 收款二维码 ================= */
.qr-box {
    text-align: center; background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 12px rgba(176, 42, 91, .08);
}

.qr-box img { width: 240px; height: auto; border-radius: 10px; }

/* ================= 导航卡 ================= */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.nav-card {
    background: #fff; border-radius: 14px; padding: 20px 22px; text-decoration: none; color: #4a3b40;
    box-shadow: 0 2px 10px rgba(176, 42, 91, .06); border: 1px solid #f7d9e4;
    transition: box-shadow .2s, transform .2s;
}

.nav-card:hover { box-shadow: 0 6px 20px rgba(176, 42, 91, .14); transform: translateY(-2px); }

.nav-card h3 { color: #d6336c; margin-bottom: 8px; font-size: 16px; }
.nav-card p { color: #9a7f8c; line-height: 1.6; font-size: 13px; }

/* ================= 门户首页（登录页） ================= */
body.home-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页首：品牌 + 菜单栏（注册登录高亮） */
.home-header {
    background: #fff;
    box-shadow: 0 1px 8px rgba(176, 42, 91, .12);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 26px;
    min-height: 62px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-brand {
    font-size: 21px;
    font-weight: bold;
    color: #d6336c;
    letter-spacing: 1px;
    white-space: nowrap;
}

.home-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-left: auto;
}

.home-menu > a {
    text-decoration: none;
    color: #6d5560;
    font-size: 15px;
    padding: 8px 2px;
}

.home-menu > a:hover { color: #d6336c; font-weight: bold; }

.home-menu .home-menu-outline,
.home-menu .home-menu-solid {
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: bold;
}

.home-menu .home-menu-outline {
    border: 1.5px solid #d6336c;
    color: #d6336c;
}

.home-menu .home-menu-outline:hover { background: #fde7ef; color: #b02a5b; font-weight: bold; }

.home-menu .home-menu-solid {
    background: linear-gradient(90deg, #e75480, #d6336c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(214, 51, 108, .35);
}

.home-menu .home-menu-solid:hover { background: #b02a5b; color: #fff; font-weight: bold; }

/* 页中：背景图横幅 + 大标题；flex:1 使背景图铺满页首与页脚之间，直至页尾版权行 */
.home-hero {
    background-image: url(/img/hero-park.jpg), linear-gradient(135deg, #e75480, #d6336c);
    background-size: cover;
    background-position: center;
    min-height: 430px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.home-hero-mask {
    position: absolute;
    inset: 0;
    /* 顶部加深保证大标题可读；底部保持背景图可见并轻微暗化，
       与深色页脚自然衔接（替代原先淡出为页面底色的做法） */
    background: linear-gradient(180deg, rgba(70, 36, 47, .45) 0%,
            rgba(70, 36, 47, .18) 45%, rgba(70, 36, 47, .30) 100%);
}

.home-hero-inner {
    position: relative;
    padding: 80px 20px 96px;
    max-width: 900px;
}

.home-hero-title {
    font-size: 58px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 0 3px 16px rgba(70, 36, 47, .55);
    margin-bottom: 16px;
}

.home-hero-slogan {
    font-size: 19px;
    color: #fff;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(70, 36, 47, .6);
}

.home-hero-sub {
    margin-top: 12px;
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(70, 36, 47, .6);
}

/* 主要功能区（菜单锚点） */
.home-features {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 26px 10px;
}

.home-features h2 {
    color: #b02a5b;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 登录区 */
.home-login {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 56px;
}

.home-login h2 { text-align: center; color: #b02a5b; font-size: 24px; margin-bottom: 18px; letter-spacing: 2px; }

.home-login .card {
    width: 100%;
    box-shadow: 0 14px 44px rgba(176, 42, 91, .22);
}

/* 页尾：版权与联系方式 */
.home-footer {
    background: #46242f;
    color: #e8cdd8;
    text-align: center;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-top: auto;
}

.home-footer .home-footer-contact {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.home-footer .home-footer-notice { color: #b98ca0; font-size: 12px; padding: 0 10px; line-height: 1.7; }
