/* --- 全局设置与背景 --- */
:root {
    --primary-color: #6f42c1; /* 主题色：浅紫色 */
    --accent-color: #FF9F0A; 
    --text-dark: #333333; /* 主要文字颜色 */
    --text-dim: #666666; /* 次要文字颜色 */
    --glass-bg: rgba(255, 255, 255, 0.9); 
    --glass-border: rgba(111, 66, 193, 0.2); 
    --background-color: #f7f9fc; 
    --blur-amount: 20px;
    --section-spacing: 100px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    background-image: 
        radial-gradient(at 10% 20%, hsla(259, 78%, 70%, 0.3) 0px, transparent 50%),
        radial-gradient(at 90% 10%, hsla(210, 69%, 60%, 0.3) 0px, transparent 50%),
        radial-gradient(at 30% 80%, hsla(322, 90%, 80%, 0.3) 0px, transparent 50%),
        radial-gradient(at 70% 90%, hsla(197, 79%, 70%, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 24px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- 导航栏及英雄区域 (PC 端不变) --- */
.nav-container-fixed {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none; 
}

.dynamic-island-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 600px;
    max-width: 90%;
    padding: 0.6rem 1.2rem;
    border-radius: 999px; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.brand-logo {
    /* 调整 Logo 容器的样式 */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark); 
    margin-right: 2rem;
    /* 移除之前的 font-weight 和 font-size，因为现在主要显示图片 */
}
/* 核心修改 1: 删除 Material Icon 样式 */
/* .brand-logo i { ... } */

/* 核心修改 2: 新增 Logo 图片样式 */
.brand-img {
    height: 30px; /* 控制 Logo 图片的高度 */
    width: auto;
    display: block; /* 避免图片底部的多余空间 */
}


.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); } 

.auth-btns { display: flex; gap: 1rem; margin-left: 2rem; }

.btn {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-ghost { 
    color: var(--text-dark); 
    background: rgba(111, 66, 193, 0.1); 
}
.btn-ghost:hover { background: rgba(111, 66, 193, 0.2); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8b68c9); 
    color: white;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(111, 66, 193, 0.5); }

.hero-section { padding: 180px 0 100px; text-align: center; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-dark), #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 3rem; }
.btn-large { padding: 0.8rem 2.5rem; font-size: 1.1rem; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: var(--text-dark); }

/* --- 产品卡片布局 (PC) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: var(--section-spacing);
}

.price-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.price-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); border-color: rgba(111, 66, 193, 0.3); }

.feature-list { 
    list-style: none; 
    padding: 0; 
    margin: 2rem 0; 
    flex-grow: 1;
} 
.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    display: flex;
    align-items: center;
    color: var(--text-dim); 
}
.feature-list li i {
    color: #34C759; 
    margin-right: 10px;
    font-size: 1.1rem;
}

/* --- 卡片价格样式 --- */
.price-card.featured { background: rgba(111, 66, 193, 0.05); border: 1px solid rgba(111, 66, 193, 0.3); }
.price-card.featured::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.1) 0%, transparent 70%); z-index: -1; pointer-events: none;
}
.price-header h5 { font-size: 1.4rem; margin: 0 0 1rem 0; color: var(--text-dark);}
.price-amount { font-size: 2.8rem; font-weight: 700; color: var(--text-dark); }
.price-amount span { font-size: 1rem; color: var(--text-dim); font-weight: 400;}

/* --- 关于我们卡片布局 (PC) --- */
.about-section { margin-bottom: var(--section-spacing); }
.about-container { 
    padding: 3rem; 
    display: flex; 
    align-items: center; 
    gap: 3rem; 
}
.about-text { 
    flex: 1;
}
.about-text h4 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.about-text p { line-height: 1.6; color: var(--text-dim); font-size: 1.1rem;}
.about-image { 
    flex: 1; 
    text-align: center; 
}
.about-image i {
    font-size: 12rem;
    background: linear-gradient(to bottom, #d2b3ff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* --- Footer 布局 (PC) --- */
.page-footer {
    background: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    margin-top: auto;
    color: white; 
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    margin-bottom: 2rem;
}
.footer-col {
    flex: 0 0 auto; 
    width: 30%; 
    min-width: 200px;
    margin-bottom: 1.5rem; 
}
.footer-col h5 { color: white; margin-bottom: 1rem; }
.footer-col p, .footer-col ul a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s;}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a:hover { color: var(--primary-color); }
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}


/* ================= 移动端适配与样式 (仅保持汉堡菜单功能和美观) ================= */

/* 核心修复 1: PC 端隐藏汉堡菜单 - 确保它在 PC 视图下隐藏 */
.mobile-menu-trigger { 
    display: none !important; 
}
.mobile-menu-container { 
    display: none; 
}


@media (max-width: 768px) {
    
    /* 移动端导航栏隐藏 PC 内容 */
    .nav-links, .auth-btns { 
        display: none !important; 
    }

    /* 移动端 Logo 和汉堡菜单 */
    .dynamic-island-nav { 
        min-width: auto; 
        width: 85%; 
        padding: 0.8rem 1.2rem; 
        justify-content: space-between;
    }
    .mobile-menu-trigger { 
        display: block !important; /* 移动端显示汉堡菜单，覆盖全局的 none */
        color: var(--text-dark); 
        cursor: pointer;
        font-size: 1.8rem;
    }

    /* 移动端下拉菜单容器样式 (保持美观) */
    .mobile-menu-container {
        display: block; 
        position: fixed; top: 85px; left: 50%;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
        width: 85%;
        background: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
        border: 1px solid var(--glass-border); border-radius: 24px;
        padding: 1.5rem; opacity: 0; visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001; pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .mobile-menu-container.active {
        opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1);
    }

    /* 移动端列表项和按钮样式 (保持美观) */
    .mobile-nav-list { list-style: none; padding: 0; margin: 0; }
    .mobile-nav-list a { 
        display: block; padding: 1rem 1.5rem; color: var(--text-dark); 
        border-radius: 12px; transition: all 0.2s ease; text-align: left; 
        text-decoration: none; 
    }
    .mobile-nav-list a:hover, .mobile-nav-list a:active { background: rgba(111, 66, 193, 0.1); color: var(--primary-color); }
    
    .mobile-auth-group {
        margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.1); 
        display: flex; flex-direction: row; gap: 0.8rem;
    }
    .mobile-auth-group .btn { flex: 1; text-align: center; padding: 0.8rem; box-sizing: border-box; }
    .mobile-auth-group .btn-ghost { color: var(--primary-color); background: transparent; border: 1px solid var(--primary-color); box-shadow: none; }
    .mobile-auth-group .btn-ghost:hover { background: rgba(111, 66, 193, 0.1); }
    
    /* 移动端布局调整 */
    .footer-col { width: 100%; min-width: unset; }
    .about-container { flex-direction: column; text-align: center; }
    .about-text, .about-image { flex: none; }
}