/* ============================================
   马大抖婚姻介绍所 - 主样式表
   红色系配色，PC与手机自适应
   ============================================ */

/* 颜色变量 */
:root {
    --primary: #c41e3a;        /* 主色调-中国红 */
    --primary-dark: #a01a2e;   /* 深红 */
    --primary-light: #e85d75;  /* 浅红 */
    --bg-light: #fff5f5;       /* 浅粉背景 */
    --bg-white: #ffffff;       /* 白色 */
    --gold: #d4a574;          /* 金色点缀 */
    --gold-light: #f5e6d3;    /* 浅金 */
    --text-dark: #2c2c2c;     /* 深色文字 */
    --text-gray: #666666;     /* 灰色文字 */
    --text-light: #999999;    /* 浅灰文字 */
    --border: #f0e0e0;        /* 边框色 */
    --shadow: 0 2px 12px rgba(196, 30, 58, 0.1);  /* 阴影 */
    --shadow-hover: 0 6px 24px rgba(196, 30, 58, 0.2);
    --radius: 8px;            /* 圆角 */
    --max-width: 1200px;      /* 最大宽度 */
    --header-height: 64px;    /* 顶部导航高度 */
}

/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   顶部导航栏
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(160, 26, 46, 0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* 头部两行布局 */
.header-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-top {
    justify-content: center;
    padding: 8px 0 4px;
}

.header-bottom {
    justify-content: space-between;
    padding: 4px 0 8px;
    gap: 12px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.logo .logo-text {
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ============================================
   Banner 轮播区
   ============================================ */
.banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c0006, var(--primary-dark));
}

.banner-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.banner-slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.banner-slide:nth-child(1) { background: linear-gradient(135deg, #2c0006, #8b152e); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #3d0a15, #a01a2e); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #1a0505, #c41e3a); }

.banner-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-content .btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--gold);
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.banner-content .btn:hover {
    background: #c8965e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.5);
}

/* Banner 翻页圆点 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: var(--gold);
    width: 32px;
    border-radius: 6px;
}

/* Banner 箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* ============================================
   通用区块
   ============================================ */
.section {
    padding: 60px 20px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.section-title .subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ============================================
   服务介绍卡片
   ============================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 3px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 为什么选择我们 - 配图 */
.why-image {
    margin-top: 30px;
    text-align: center;
}
.why-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(196,30,58,0.15);
    display: inline-block;
}
@media (max-width: 768px) {
    .why-image { margin-top: 20px; }
}

/* ============================================
   成功案例
   ============================================ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.case-card .case-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.case-card .case-info {
    padding: 16px;
    text-align: center;
}

.case-card .case-info h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.case-card .case-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ============================================
   会员/嘉宾 卡片网格
   ============================================ */
.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.member-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.member-card .avatar {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5e6d3, #e8d5c0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
}

.member-card .avatar .gender-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
}

.gender-male {
    background: #4a90d9;
}

.gender-female {
    background: var(--primary);
}

.member-card .member-info {
    padding: 16px;
}

.member-card .member-info .name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.member-card .member-info .meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.member-card .member-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.member-card .member-info .tag {
    padding: 2px 10px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.75rem;
}

.member-card .btn-sm {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.member-card .btn-sm:hover {
    background: var(--primary-dark);
}

/* ============================================
   筛选栏
   ============================================ */
.filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-bar label {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #fff;
    cursor: pointer;
    min-width: 100px;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   统计数字区
   ============================================ */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 40px 20px;
}

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item .stat-num {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* 隐私声明条 */
.privacy-notice {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
.privacy-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.8;
    margin-bottom: 4px;
}
.privacy-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .privacy-text { font-size: 0.95rem; }
    .privacy-sub { font-size: 0.85rem; }
}
@media (max-width: 420px) {
    .privacy-text { font-size: 0.85rem; }
    .privacy-sub { font-size: 0.78rem; }
}

/* ============================================
   关于我们页
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 20px 20px;
}

.about-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.about-content .about-text {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    line-height: 2;
}

.about-content .about-text h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.about-content .about-text p {
    color: var(--text-gray);
    margin-bottom: 12px;
}

/* 流程步骤 */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.step-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    position: relative;
}

.step-item .step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-item h4 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.step-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ============================================
   留言板页
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-form-wrap {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* 留言列表 */
.message-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.message-list h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.message-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item .msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-item .msg-author {
    font-weight: bold;
    color: var(--primary-dark);
}

.message-item .msg-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.message-item .msg-content {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 联系信息 */
.contact-info {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.contact-info strong {
    color: var(--primary-dark);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 24px 20px;
    font-size: 0.85rem;
}

.footer a {
    color: var(--gold);
}

.footer .footer-links {
    margin-bottom: 10px;
}

.footer .footer-links a {
    margin: 0 10px;
}

/* ============================================
   弹窗 / 模态框
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-box h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.modal-box .btn-close {
    padding: 10px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ============================================
   面包屑
   ============================================ */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

/* ============================================
   响应式设计 - 平板
   ============================================ */
@media (max-width: 1024px) {
    .member-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-grid,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   响应式设计 - 手机端
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 14px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    /* 移动端菜单 */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 10px 0;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Banner 缩小 */
    .banner {
        height: 260px;
    }

    .banner-content h2 {
        font-size: 1.4rem;
    }

    .banner-content p {
        font-size: 0.85rem;
    }

    .banner-content .btn {
        padding: 8px 24px;
        font-size: 0.85rem;
    }

    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .banner-arrow.prev { left: 8px; }
    .banner-arrow.next { right: 8px; }

    /* 网格调整为 1~2 列 */
    .service-grid,
    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .member-card .avatar {
        height: 160px;
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item .stat-num {
        font-size: 1.6rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 14px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select {
        width: 100%;
    }

    .contact-section {
        grid-template-columns: 1fr;
        padding: 20px 14px;
    }
}

/* 小于420px 极小屏 */
@media (max-width: 420px) {
    .member-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .member-card .avatar {
        height: 140px;
        font-size: 2.5rem;
    }

    .member-card .member-info {
        padding: 10px;
    }

    .member-card .member-info .name {
        font-size: 0.95rem;
    }
}

/* ============================================
   首页 - 四大入口按钮
   ============================================ */
.home-hero {
    background: linear-gradient(135deg, #2c0006, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 17px 20px 13px;
}
.home-hero h1 {
    font-size: 2rem;
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.home-hero .hero-sub {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-bottom: 8px;
}
.home-hero .hero-sub-note {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 15px;
}
.entry-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px 40px;
}
.entry-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}
.entry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(196,30,58,0.25);
}
.entry-card .entry-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}
.entry-card .entry-label {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.entry-card .entry-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ============================================
   年龄段分区标题
   ============================================ */
.age-section {
    margin-bottom: 36px;
}
.age-section .age-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.age-section .age-title .age-badge {
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}
.age-section .age-title .age-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ============================================
   会员详情卡片（带占位头像）
   ============================================ */
.profile-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
/* 头像占位区 */
.profile-avatar {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 40%, #d4c4b0 100%);
    color: var(--primary-dark);
    position: relative;
}
.profile-avatar .avatar-placeholder .ph-silhouette {
    font-size: 5rem;
    line-height: 1;
    opacity: 0.5;
}
.profile-avatar .avatar-placeholder .ph-name {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 4px;
}
.profile-avatar .avatar-placeholder .ph-age-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}
.profile-avatar .view-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.profile-card:hover .view-hint {
    opacity: 1;
}
.profile-info {
    padding: 14px;
}
.profile-info .p-name {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--text-dark);
}
.profile-info .p-meta {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin: 4px 0;
    line-height: 1.5;
}
.profile-info .p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.profile-info .p-tag {
    padding: 2px 9px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.72rem;
}

/* ============================================
   详情大图弹窗
   ============================================ */
.detail-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.detail-overlay.show {
    display: flex;
}
.detail-box {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.detail-box .detail-img {
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6d3, #e8d5c0, #d4c4b0);
    position: relative;
}
.detail-box .detail-img .detail-silhouette {
    font-size: 8rem;
    opacity: 0.4;
}
.detail-box .detail-img .detail-name-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(196,30,58,0.9);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
}
.detail-box .detail-body {
    padding: 20px;
}
.detail-box .detail-body h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.detail-box .detail-body .detail-row {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f5f0f0;
    font-size: 0.9rem;
}
.detail-box .detail-body .detail-row .dl {
    color: var(--text-light);
    width: 70px;
    flex-shrink: 0;
}
.detail-box .detail-body .detail-row .dv {
    color: var(--text-dark);
    font-weight: 500;
}
.detail-box .detail-close {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0 0 16px 16px;
}

/* ============================================
   门店位置页
   ============================================ */
.location-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 13px 20px;
}
.location-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.map-placeholder {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}
.map-box {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #e8ddd0, #d5c8b5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
    border: 2px dashed #c0b0a0;
}
.map-box .map-pin {
    font-size: 3rem;
    margin-bottom: 8px;
}
.map-box .map-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-dark);
}
.map-box .map-addr {
    font-size: 0.85rem;
    margin-top: 4px;
}
.location-info-cards {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.loc-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.loc-card .loc-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.loc-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.loc-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   响应式 - 入口按钮 / 年龄段 / 弹窗
   ============================================ */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .location-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .home-hero h1 { font-size: 1.4rem; }
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .entry-card { padding: 20px 12px; }
    .entry-card .entry-icon { width: 48px; height: 48px; font-size: 1.3rem; }
    .entry-card .entry-label { font-size: 0.9rem; }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .profile-avatar { height: 180px; }
    .profile-avatar .avatar-placeholder .ph-silhouette { font-size: 3.5rem; }

    .detail-box .detail-img { height: 260px; }
    .detail-box .detail-img .detail-silhouette { font-size: 5rem; }

    .location-info-cards { grid-template-columns: 1fr; }
    .map-box { height: 220px; }

    .age-section .age-title .age-badge { font-size: 0.85rem; padding: 4px 14px; }
}
@media (max-width: 420px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .profile-avatar { height: 150px; }
}


/* 新logo图片样式 */
.logo .logo-img {
    height: 155px;
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

/* 真实征婚信息图片样式 */
.profile-avatar .profile-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 顶部联系电话（热线标题+号码） */
.header-phone {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-right: 0;
    padding: 6px 4px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    min-width: 360px;
}
.phone-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    white-space: nowrap;
}
.phone-spacer {
    width: 100px;
    flex-shrink: 0;
}
.phone-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.phone-numbers-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-right: 8px;
}
.phone-link {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}
.phone-link:hover {
    background: rgba(255,255,255,0.15);
}
.phone-or {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .phone-title { font-size: 0.92rem; }
    .phone-link { font-size: 1.05rem; padding: 2px 6px; }
    .phone-spacer { width: 60px; }
    .phone-content { gap: 1px; }
    .phone-or { font-size: 0.75rem; }
}
@media (max-width: 420px) {
    .phone-title { font-size: 0.82rem; }
    .phone-link { font-size: 0.92rem; padding: 2px 4px; }
    .phone-spacer { width: 40px; }
    .phone-content { gap: 1px; }
    .phone-or { font-size: 0.7rem; }
}

/* ============================================
   年龄段分类入口 - 两列网格卡片
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 0;
}

.category-card {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, #e8455a, var(--primary), #8b152e);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.25);
}

.category-card:hover,
.category-card:active {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    border-color: #f0c080;
}

.category-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    position: relative;
}

/* 卡片顶部装饰水滴 */
.category-card-inner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.category-card-inner::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.category-gender-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.category-age {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .category-grid {
        gap: 14px;
        padding: 0;
    }
    .category-card {
        border-radius: 14px;
    }
    .category-gender-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    .category-age {
        font-size: 1.6rem;
    }
    .category-count {
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .category-grid {
        gap: 10px;
    }
    .category-card {
        border-radius: 12px;
        border-width: 1.5px;
    }
    .category-gender-label {
        font-size: 0.82rem;
        margin-bottom: 6px;
    }
    .category-age {
        font-size: 1.35rem;
    }
    .category-count {
        font-size: 0.72rem;
    }
}