/* ===== 完整优化版 style.css ===== */
:root {
    --primary-green: #9CDC4F;
    --primary-dark: #8BC63F;
    --secondary-blue: #E0EBF5;
    --accent-orange: #FF7D45;
    --neutral-gray-light: #F5F7FA;
    --neutral-gray: #E5E6EB;
    --text-dark: #272727;
    --text-light: #666;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --navbar-height: 80px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', 'PingFang SC', system-ui, sans-serif;
    background: #f8faff;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--navbar-height);
}
a { text-decoration:none; color:inherit; }
.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }

/* --- 导航 --- */
.navbar {
    position:fixed; top:0; left:0; right:0;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--neutral-gray);
    z-index:1000;
    padding:0.8rem 0;
    transition:0.3s;
}
.navbar.scrolled { box-shadow:0 2px 10px rgba(0,0,0,0.08); padding:0.4rem 0; }
.nav-container {
    display:flex; align-items:center; justify-content:space-between;
    max-width:1200px; margin:0 auto; padding:0 1.5rem;
}
.logo { height:40px; }
.nav-brand { font-weight:700; margin-left:0.5rem; display:none; }
.nav-search { flex:1; max-width:400px; margin:0 2rem; }
.search-input {
    width:100%; padding:0.6rem 3rem 0.6rem 1rem;
    border:2px solid var(--neutral-gray); border-radius:30px;
    font-size:0.95rem;
    background:white;
}
.search-input:focus { outline:none; border-color:var(--primary-green); }
.search-btn {
    position:absolute; right:0.5rem; top:50%; transform:translateY(-50%);
    background:var(--primary-green); color:white; border:none;
    width:36px; height:36px; border-radius:50%; cursor:pointer;
}
.nav-links { display:flex; gap:1.5rem; align-items:center; }
.nav-link {
    font-weight:500; padding:0.5rem 0.8rem; border-radius:8px;
    transition:0.2s;
}
.nav-link:hover, .nav-link.active { color:var(--primary-green); background:#f0f8e8; }
.download-dropdown { position:relative; }
.download-btn {
    background:var(--primary-green); color:white;
    padding:0.6rem 1.2rem; border-radius:30px; border:none;
    font-weight:600; cursor:pointer; display:flex; align-items:center; gap:0.3rem;
}
.download-btn::after { content:'▼'; font-size:0.7rem; }
.download-menu {
    position:absolute; top:calc(100% + 0.5rem); right:0;
    background:white; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.15);
    min-width:160px; opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:0.3s; border:1px solid var(--neutral-gray); z-index:1001;
    pointer-events:none;
}
.download-dropdown.active .download-menu {
    opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;
}
.download-menu-item {
    display:flex; align-items:center; gap:0.5rem;
    padding:0.8rem 1.2rem; color:var(--text-dark);
    border-bottom:1px solid #f0f0f0; transition:0.2s;
}
.download-menu-item:hover { background:#f5f7fa; color:var(--primary-green); }
.mobile-download-dropdown { display:none; }
.mobile-download { padding:0.4rem 0.8rem; font-size:0.9rem; }

/* --- 英雄区 --- */
.hero {
    padding:2rem 0 3rem;
    background:linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height:60vh;
    display:flex; align-items:center;
}
.hero-content {
    display:grid; grid-template-columns:1fr 1fr; gap:3rem;
    align-items:center;
}
.hero-left { text-align:left; }
.hero-title {
    font-size:3rem; font-weight:800; margin-bottom:1rem;
    color:#2e7d32;
}
.hero-subtitle { font-size:1.2rem; color:#555; margin-bottom:2rem; max-width:600px; }
.hero-stats { display:flex; gap:2.5rem; flex-wrap:wrap; }
.stat-number { font-size:2.2rem; font-weight:700; color:#2e7d32; display:block; }
.stat-label { color:#666; }
.hero-cta {
    background:white; padding:2.5rem; border-radius:16px;
    box-shadow:0 10px 40px rgba(0,0,0,0.08);
    text-align:center;
}
.cta-title { font-size:1.8rem; margin-bottom:0.5rem; }
.cta-desc { color:#666; margin-bottom:1.5rem; }
.download-buttons { display:flex; flex-direction:column; gap:0.8rem; margin-bottom:1.5rem; }
.btn-primary, .btn-secondary {
    display:inline-flex; align-items:center; justify-content:center;
    padding:0.8rem 1.8rem; border-radius:40px;
    font-weight:700; font-size:1rem; transition:0.2s;
    border:2px solid transparent; gap:0.5rem;
}
.btn-primary { background:var(--primary-green); color:white; box-shadow:0 4px 12px rgba(156,220,79,0.3); }
.btn-primary:hover { background:#8BC63F; transform:translateY(-2px); }
.btn-secondary { background:white; color:var(--text-dark); border-color:var(--neutral-gray); }
.btn-secondary:hover { border-color:var(--primary-green); color:var(--primary-green); }
.download-features { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; font-size:0.9rem; color:#555; }

/* --- 最新更新 (网格卡片) --- */
.updates { padding:4rem 0; background:white; }
.section-title { font-size:2rem; font-weight:700; margin-bottom:0.5rem; text-align:center; }
.section-subtitle { text-align:center; color:#666; margin-bottom:2.5rem; }
.updates-container {
    display:grid; grid-template-columns:2fr 1fr; gap:2.5rem;
}
.updates-main {
    background:white; border-radius:16px; box-shadow:var(--shadow);
    overflow:hidden;
}
.updates-header {
    background:var(--primary-green); color:white;
    padding:1.2rem 1.5rem; display:flex; justify-content:space-between; align-items:center;
}
.updates-title { font-weight:600; }
.updates-more { color:white; opacity:0.8; }
.updates-more:hover { opacity:1; }
/* 更新列表改为网格卡片，每个项目为卡片样式 */
.updates-list {
    display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr));
    gap:1rem; padding:1.5rem;
    list-style:none;
}
.update-item {
    background:#fafafa; border-radius:12px; overflow:hidden;
    transition:0.2s; display:flex; flex-direction:column;
}
.update-item:hover { transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,0.08); }
.update-cover {
    width:100%; aspect-ratio:3/4; background:#eee;
    overflow:hidden;
}
.update-cover img { width:100%; height:100%; object-fit:cover; }
.update-info { padding:0.8rem 1rem; flex:1; }
.update-info h4 { font-size:1rem; margin-bottom:0.3rem; }
.update-meta {
    display:flex; flex-wrap:wrap; gap:0.3rem 0.8rem;
    font-size:0.8rem; color:#888; align-items:center;
}
.update-badge {
    background:var(--accent-orange); color:white;
    padding:0.1rem 0.6rem; border-radius:12px; font-size:0.7rem; font-weight:700;
}
.update-desc { font-size:0.8rem; color:#777; margin-top:0.3rem; line-height:1.4; }

/* --- 侧栏 --- */
.updates-sidebar { display:flex; flex-direction:column; gap:2rem; }
.sidebar-card {
    background:white; border-radius:16px; padding:1.5rem;
    box-shadow:var(--shadow);
}
.sidebar-title {
    font-size:1.1rem; font-weight:600; margin-bottom:1.2rem;
    display:flex; align-items:center; gap:0.5rem;
}
.sidebar-card .update-item {
    display:flex; gap:0.8rem; margin-bottom:1.2rem;
    background:transparent; padding:0; border-radius:0;
    flex-direction:row;
}
.sidebar-card .update-cover { width:80px; height:100px; flex-shrink:0; }
.sidebar-card .update-info { padding:0; }
.sidebar-card .update-info h4 { font-size:0.95rem; }
.sidebar-card .update-desc { font-size:0.8rem; margin-top:0.2rem; }
.popular-tags { display:flex; flex-wrap:wrap; gap:0.5rem; }
.tag {
    background:#f0f4f8; color:var(--text-dark);
    padding:0.2rem 0.8rem; border-radius:20px;
    border:1px solid var(--neutral-gray); font-size:0.8rem;
}

/* --- 产品介绍 --- */
.product-intro { padding:4rem 0; background:#fafcff; }
.intro-grid {
    display:grid; grid-template-columns:1fr 360px; gap:3rem;
    align-items:start;
}
.intro-text p { color:#555; line-height:1.8; margin-bottom:1rem; }
.intro-cards { display:grid; grid-template-columns:1fr; gap:1rem; margin-top:1.5rem; }
.intro-card {
    display:flex; gap:1rem; align-items:center;
    background:white; padding:1rem; border-radius:12px;
    border:1px solid var(--neutral-gray);
}
.intro-card-icon {
    width:48px; height:48px; border-radius:12px;
    background:var(--primary-green); display:flex; align-items:center; justify-content:center;
    flex-shrink:0; color:white;
}
.intro-right { text-align:center; }
.intro-logo { width:120px; margin-bottom:1rem; }
.intro-download { margin-top:0.75rem; }
.version-list { margin-top:1.5rem; display:flex; flex-direction:column; gap:0.8rem; align-items:center; }
.version-card {
    background:white; border-radius:12px; padding:0.8rem 1rem;
    border:1px solid var(--neutral-gray); max-width:320px; width:100%;
}
.version-item { display:flex; justify-content:space-between; align-items:center; gap:0.5rem; }
.version-label { font-weight:600; }
.version-desc { font-size:0.8rem; color:#888; margin-top:0.2rem; }
.version-buttons { display:flex; gap:0.4rem; }
.version-btn {
    padding:0.3rem 0.7rem; border-radius:8px;
    border:1px solid var(--neutral-gray); background:white;
    font-size:0.75rem; font-weight:600; transition:0.2s;
}
.version-btn-android:hover { border-color:var(--primary-green); background:rgba(156,220,79,0.1); }
.version-btn-ios:hover { border-color:#007AFF; background:rgba(0,122,255,0.1); }

/* --- 排行榜 --- */
.rankings { padding:4rem 0; background:var(--neutral-gray-light); }
.rankings-grid {
    display:grid; grid-template-columns:repeat(3,1fr); gap:2rem;
}
.ranking-card {
    background:white; border-radius:16px; overflow:hidden;
    box-shadow:var(--shadow); transition:0.2s;
}
.ranking-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-hover); }
.ranking-header {
    background:var(--primary-green); color:white;
    padding:1.2rem; text-align:center;
}
#rankings .ranking-card:nth-child(-n+3) .ranking-header { background:var(--primary-dark); }
.ranking-title { font-size:1.2rem; font-weight:600; }
.ranking-subtitle { font-size:0.9rem; opacity:0.9; }
.ranking-list { list-style:none; padding:0; }
.ranking-item {
    padding:0.8rem 1.2rem; border-bottom:1px solid var(--neutral-gray);
    display:flex; align-items:center; gap:1rem;
    transition:0.2s;
}
.ranking-item:hover { background:var(--neutral-gray-light); }
.ranking-number {
    width:28px; height:28px; border-radius:50%;
    background:var(--primary-green); color:white;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:0.85rem; flex-shrink:0;
}
.ranking-number.top3 { background:var(--accent-orange); }
.ranking-info h4 { font-size:1rem; font-weight:600; }
.ranking-info p { font-size:0.8rem; color:#888; }

/* --- 用户评价 --- */
.reviews { padding:4rem 0; background:white; }
.reviews-grid {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
    gap:2rem; margin-top:2rem;
}
.review-card {
    background:white; border-radius:16px; padding:1.5rem;
    border:1px solid var(--neutral-gray); box-shadow:var(--shadow);
}
.top-review {
    background:white; border-radius:16px; padding:1.5rem;
    border-left:6px solid var(--primary-dark);
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
    display:flex; gap:1.2rem; align-items:flex-start;
    position:relative; margin-bottom:2rem;
}
.top-review .top-badge {
    position:absolute; right:12px; top:-10px;
    background:var(--primary-green); color:white;
    padding:0.2rem 0.8rem; border-radius:20px;
    font-size:0.7rem; font-weight:700;
}
.review-avatar {
    width:50px; height:50px; border-radius:50%;
    background:var(--primary-green); color:white;
    display:flex; align-items:center; justify-content:center;
    font-weight:600; flex-shrink:0;
}
.review-user h4 { font-weight:600; }
.review-rating { color:var(--accent-orange); font-size:0.9rem; }
.review-content { color:#555; line-height:1.6; margin:0.5rem 0; }
.review-footer { display:flex; justify-content:space-between; font-size:0.8rem; color:#999; }

/* --- 功能特色 --- */
.features { padding:4rem 0; background:var(--neutral-gray-light); }
.features-grid {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
    gap:2rem;
}
.feature-card {
    background:white; padding:2rem; border-radius:16px;
    text-align:center; border:1px solid var(--neutral-gray);
    transition:0.2s; box-shadow:var(--shadow);
}
.feature-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); }
.feature-icon {
    width:80px; height:80px; margin:0 auto 1.2rem;
    background:var(--primary-green); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:white; font-size:2rem;
}
.feature-title { font-size:1.2rem; font-weight:600; margin-bottom:0.8rem; }
.feature-desc { color:#666; }

/* --- 下载横幅 --- */
.download {
    padding:4rem 0;
    background:linear-gradient(135deg, var(--primary-green), #8BC63F);
    color:white; text-align:center;
}
.download h2 { font-size:2.2rem; margin-bottom:1rem; }
.download .btn-primary { background:white; color:var(--primary-green); }
.download .btn-primary:hover { background:#f5f5f5; }

/* --- 页脚 --- */
.footer {
    background:#1a1a2e; color:#ccc; padding:3rem 0 1.5rem;
}
.footer-content {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
    gap:2rem; margin-bottom:2rem;
}
.footer-section h3 { color:var(--primary-green); margin-bottom:0.8rem; }
.footer-section a { color:#ccc; }
.footer-section a:hover { color:var(--primary-green); }
.footer-bottom {
    border-top:1px solid #333; padding-top:1.5rem;
    text-align:center; font-size:0.9rem;
}
.stats { font-size:1rem; margin:0.5rem 0; }
.stats strong { color:white; }
.footer-disclaimer { color:#ff6b6b; font-weight:bold; margin-top:0.5rem; }

/* --- 悬浮下载按钮 --- */
.floating-download {
    position:fixed; bottom:2rem; right:2rem; z-index:999;
}
.scroll-to-top {
    width:56px; height:56px; border-radius:50%;
    background:var(--primary-green); color:white;
    border:none; cursor:pointer;
    box-shadow:0 4px 16px rgba(156,220,79,0.4);
    opacity:0; visibility:hidden; transition:0.3s;
    display:flex; align-items:center; justify-content:center;
}
.scroll-to-top.visible { opacity:1; visibility:visible; }
.scroll-to-top:hover { transform:scale(1.1); }
.floating-download .download-menu {
    bottom:calc(100% + 0.5rem); top:auto; right:0;
}
.floating-download.active .download-menu {
    opacity:1; visibility:visible; transform:translateY(0);
}

/* --- 加载动画 --- */
.loading {
    position:fixed; top:0; left:0; width:100%; height:100%;
    background:white; display:flex; flex-direction:column;
    align-items:center; justify-content:center; z-index:9999;
    transition:0.5s;
}
.loading.hidden { opacity:0; visibility:hidden; }
.loading-spinner {
    width:50px; height:50px;
    border:4px solid var(--neutral-gray);
    border-top-color:var(--primary-green);
    border-radius:50%; animation:spin 1s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* --- 响应式 --- */
@media (max-width:1024px) {
    .hero-content { grid-template-columns:1fr; gap:2rem; text-align:center; }
    .hero-left .hero-stats { justify-content:center; }
    .hero-left .stat-item { text-align:center; }
    .intro-grid { grid-template-columns:1fr; }
    .rankings-grid { grid-template-columns:1fr 1fr; }
    .updates-container { grid-template-columns:1fr; }
    .nav-search { display:none; }
}
@media (max-width:768px) {
    .nav-links { display:none; }
    .nav-brand { display:inline-block; }
    .mobile-download-dropdown { display:inline-block !important; }
    .hero-title { font-size:2.2rem; }
    .hero-stats { gap:1rem; justify-content:space-around; }
    .hero-cta { padding:1.5rem; }
    .updates-list { grid-template-columns:1fr 1fr; }
    .rankings-grid { grid-template-columns:1fr; }
    .features-grid { grid-template-columns:1fr; }
    .reviews-grid { grid-template-columns:1fr; }
}
@media (max-width:480px) {
    .hero-title { font-size:1.8rem; }
    .updates-list { grid-template-columns:1fr; }
    .container { padding:0 1rem; }
    .download-features { gap:0.5rem; flex-wrap:wrap; }
    .download-feature { font-size:0.8rem; }
}
/* ===== 悬浮按钮 - 大气方案一 ===== */
.floating-download {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

/* 主按钮 */
.premium-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #8BC63F, #6AAF2E);
    color: white;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(139, 198, 63, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 按钮内图标+文字纵向排列 */
    gap: 1px;
}

.premium-btn:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 198, 63, 0.65);
}

/* 按钮上的小标签 "下载" */
.btn-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    line-height: 1;
}

/* 脉动光环 */
.pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(139, 198, 63, 0.5);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* 悬浮菜单保持原样 */
.floating-download .download-menu {
    bottom: calc(100% + 0.8rem);
    top: auto;
    right: 0;
    min-width: 180px;
}
.floating-download.active .download-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 按钮显示/隐藏逻辑保持不变 */
.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}