/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-member {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(120deg, #FFECD2 0%, #FCB69F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.desc {
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 筛选器 */
.filter-section {
    padding: 48px 0 24px;
}

.filter-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-size: 14px;
    color: var(--gray-500);
    min-width: 50px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 案例网格 */
.cases-grid {
    padding: 24px 0 80px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* 案例卡片 */
.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header .card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary-light);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 8px;
    vertical-align: middle;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.card-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.card-body {
    padding: 16px 24px;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 16px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.stat-label-small {
    font-size: 12px;
    color: var(--gray-400);
}

.card-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difficulty {
    display: flex;
    gap: 2px;
}

.btn-detail {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-content {
    padding: 32px;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
}

.modal-header .subtitle {
    color: var(--gray-500);
    font-size: 16px;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.modal-stat {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.modal-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.modal-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.modal-section li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
}

.btn-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lock:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 48px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-600);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: center;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.feature p {
    font-size: 14px;
    color: var(--gray-500);
}

/* 社群解锁 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta > .container > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.unlock-box {
    background: white;
    color: var(--gray-800);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: left;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.unlock-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.unlock-info {
    flex: 1;
}

.unlock-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.unlock-info p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 4px;
}

.unlock-info .hint {
    color: var(--primary);
    font-size: 13px;
    margin-top: 8px;
}

.unlock-qr {
    flex-shrink: 0;
    text-align: center;
}

.unlock-qr img {
    width: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.unlock-form {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.unlock-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.unlock-form input:focus {
    border-color: var(--primary);
}

.unlock-form .btn-primary {
    background: var(--primary);
    color: white;
    white-space: nowrap;
}

.unlock-msg {
    width: 100%;
    font-size: 14px;
    margin-top: 8px;
}

.unlock-msg.success {
    color: var(--success);
}

.unlock-msg.error {
    color: var(--danger);
}

.unlock-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-item span {
    font-size: 32px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
}

.unlock-cta-bottom {
    margin-top: 32px;
    font-size: 14px;
    opacity: 0.8;
}

.unlock-cta-bottom a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.unlock-cta-bottom a:hover {
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.slogan {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    margin-top: 16px;
}

.disclaimer {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 32px;
}

.disclaimer p {
    color: #92400E;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.section-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 8px;
}

/* 案例洞察 */
.insights {
    padding: 60px 0;
    background: white;
}

.insights h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.insights .section-desc {
    text-align: center;
    margin-bottom: 40px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.insight-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.insight-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.insight-card h3 {
    font-size: 18px;
    color: var(--gray-900);
    margin-bottom: 16px;
    font-weight: 600;
}

.insight-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 4px;
}

.insight-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* 查看更多按钮 */
.btn-show-more {
    display: block;
    margin: 40px auto 0;
    padding: 12px 32px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-show-more:hover {
    background: var(--primary);
    color: white;
}

/* 生财有术体验卡 */
.shengcai-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.shengcai-card {
    display: flex;
    align-items: center;
    gap: 40px;
}

.shengcai-text {
    flex: 1;
    color: white;
}

.shengcai-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.shengcai-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    opacity: 0.95;
}

.shengcai-img {
    flex-shrink: 0;
}

.shengcai-img img {
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.img-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}

/* 生财体验卡放大弹窗 */
.shengcai-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.shengcai-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    cursor: default;
}

.shengcai-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* 响应式 */
@media (max-width: 768px) {
    /* 导航栏 */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--gray-700);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 200;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 15px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .btn-member {
        background: var(--primary) !important;
        color: white !important;
        text-align: center;
        border-radius: 6px;
        margin-top: 8px;
        padding: 12px !important;
    }

    /* Hero */
    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 15px;
    }

    .desc {
        font-size: 14px;
        padding: 0 16px;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-num {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* 筛选器 */
    .filter-section {
        padding: 32px 0 16px;
    }

    .filter-section h2 {
        font-size: 22px;
    }

    .filter-group {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 案例卡片 */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 案例洞察 */
    .insights {
        padding: 48px 0;
    }

    .insights h2 {
        font-size: 22px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    /* 关于案例库 */
    .about {
        padding: 48px 0;
    }

    .about h2 {
        font-size: 22px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-features {
        gap: 20px;
    }

    /* 生财有术体验卡 */
    .shengcai-section {
        padding: 40px 0;
    }

    .shengcai-card {
        flex-direction: column;
        text-align: center;
    }

    .shengcai-text h2 {
        font-size: 20px;
    }

    .shengcai-text p {
        font-size: 14px;
    }

    .shengcai-img img {
        width: 200px;
    }

    /* 解锁区 */
    .cta {
        padding: 48px 0;
    }

    .cta h2 {
        font-size: 20px;
    }

    .cta > .container > p {
        font-size: 14px;
        padding: 0 8px;
    }

    .unlock-box {
        padding: 24px;
        margin: 0 auto 24px;
    }

    .unlock-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .unlock-qr img {
        width: 140px;
    }

    .unlock-info h3 {
        font-size: 18px;
    }

    .unlock-form {
        flex-direction: column;
    }

    .unlock-form input {
        min-width: auto;
        width: 100%;
    }

    .unlock-features {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        min-width: 120px;
    }

    /* 弹窗 */
    .modal {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 24px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal-stat-value {
        font-size: 18px;
    }

    .modal-stat-label {
        font-size: 12px;
    }

    .modal-section h3 {
        font-size: 16px;
    }

    .modal-section p,
    .modal-section li {
        font-size: 14px;
    }

    /* 页脚 */
    .footer {
        padding: 24px 0;
    }

    .footer p {
        font-size: 13px;
    }
}
