/*
Theme Name: 微心致远主题
Theme URI: https://www.weixinzhiyuan.com
Author: 微心致远
Author URI: https://www.weixinzhiyuan.com
Description: 微心致远会员系统专用主题 - 伯克希尔体系化研读
Version: 1.0
License: GPL v2
Text Domain: wxzy-theme
*/

/* ========== 基础重置与变量 ========== */
:root {
    --primary: #1E3A5F;
    --accent: #C5A572;
    --bg: #F8FAFC;
    --text: #1a1a2e;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    --shadow-hover: 0 8px 30px rgba(30, 58, 95, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #152d4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #b08d5e;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* ========== Header ========== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

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

.btn-login {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a73 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(197, 165, 114, 0.08);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(197, 165, 114, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(197, 165, 114, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== 信任状 ========== */
.trust-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 48px;
}

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

.trust-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.trust-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.trust-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ========== 外链入口 ========== */
.links-section {
    padding: 60px 0;
    background: var(--white);
}

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

.link-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 24px;
}

.link-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.link-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* ========== 会员介绍 ========== */

.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* 移动端自动堆叠 */
@media (max-width: 992px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .membership-grid {
        grid-template-columns: 1fr;
    }
}


.membership-section {
    padding: 80px 0;
}


.membership-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.membership-card.featured {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(197, 165, 114, 0.15);
}

.membership-card.featured::after {
    content: '推荐';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.membership-badge {
    display: inline-block;
    background: var(--bg);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.membership-card.featured .membership-badge {
    background: rgba(197, 165, 114, 0.1);
    color: var(--accent);
}

.membership-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.membership-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
}

.membership-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.membership-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.membership-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* ========== 底部CTA ========== */
.bottom-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a73 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.bottom-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bottom-cta p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.bottom-cta .btn-accent {
    font-size: 18px;
    padding: 16px 40px;
}

/* ========== Footer ========== */
.site-footer {
    background: #0f1d2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--white);
    padding: 4px;
}

.footer-qr p {
    font-size: 12px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

.footer-bottom a {
    color: var(--accent);
}

/* ========== 页面通用 ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a73 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.page-content {
    padding: 60px 0;
}

/* ========== AI占位页 ========== */
.ai-placeholder {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.ai-placeholder .ai-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 48px;
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.ai-placeholder h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.ai-placeholder p {
    font-size: 18px;
    color: var(--text-light);
}

.coming-soon-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 24px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.ip-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.ip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.12);
}
.ip-qr {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ip-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A5F, #2a4a73);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    text-align: center;
}
.ip-card h4 {
    color: #1E3A5F;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.ip-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .ip-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .trust-grid,
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .trust-grid,
    .links-grid,
    .membership-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions .btn-login {
        display: none;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .membership-card {
        padding: 28px;
    }
}