/* ===== 全局变量 - 蓝色主色调（符合猪猪软件库 logo 配色）===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --accent: #f472b6;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1200px;
}

/* ===== 重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== 通用按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; white-space: nowrap;
}
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--primary-dark); border: 1.5px solid var(--primary-lighter); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ===== 顶部导航 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent; transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 20px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 18px; border-radius: 50px; font-weight: 500; font-size: 15px; color: var(--text); transition: all 0.25s; }
.nav-link:hover { color: var(--primary); background: var(--gradient-soft); }
.nav-cta { background: var(--gradient); color: #fff !important; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 首屏 Hero ===== */
.hero {
    position: relative; padding: 130px 0 120px;
    background: radial-gradient(ellipse at top right, rgba(96, 165, 250, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.1), transparent 50%),
                linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    filter: blur(40px);
}
.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8); border: 1px solid var(--primary-lighter);
    border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--primary-dark);
    margin-bottom: 24px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
}
.badge-logo { width: 20px; height: 20px; border-radius: 6px; }
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--text-light); margin-bottom: 32px; max-width: 520px; line-height: 1.8; }

.hero-meta {
    display: flex; align-items: center; gap: 24px; margin-bottom: 36px;
    padding: 20px 28px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); width: fit-content;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 12px; color: var(--text-light); font-weight: 500; }
.meta-value { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.meta-divider { width: 1px; height: 32px; background: var(--border); }

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

/* ===== 截图展示（叠加动态效果）===== */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.screenshots {
    position: relative; width: 280px; height: 560px; perspective: 1200px;
    margin-bottom: 24px;
}
.shot {
    position: absolute; top: 0; left: 50%; width: 260px; height: 520px;
    border-radius: 28px; overflow: hidden; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg); background: var(--gradient-soft);
    transform-style: preserve-3d;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.no-img::after {
    content: '应用截图'; position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center; color: var(--primary);
    font-weight: 700; font-size: 18px; background: var(--gradient-soft);
}
.shot-1 { transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1); z-index: 3; opacity: 1; }
.shot-2 { transform: translateX(-50%) translateZ(-60px) rotateY(-15deg) translateX(-30px) scale(0.92); z-index: 2; opacity: 0.85; }
.shot-3 { transform: translateX(-50%) translateZ(-120px) rotateY(-25deg) translateX(-55px) scale(0.84); z-index: 1; opacity: 0.7; }
.shot.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.shot-controls { display: flex; gap: 10px; }
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; transition: all 0.3s; }
.shot-dot.active { width: 28px; border-radius: 50px; background: var(--gradient); }

/* Hero 波浪装饰 */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; color: var(--bg); line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* ===== 通用 Section ===== */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--primary); margin-bottom: 14px; padding: 4px 14px; background: var(--gradient-soft); border-radius: 50px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-subtitle { font-size: 16px; color: var(--text-light); }

/* ===== 功能优点 ===== */
.features { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    padding: 36px 30px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-soft); color: var(--primary); margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.75; }

/* ===== 用户评价 ===== */
.reviews { background: var(--bg); }
.review-summary { display: flex; justify-content: center; margin-bottom: 48px; }
.summary-score { text-align: center; padding: 28px 56px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.score-num { font-size: 56px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.score-stars { margin: 8px 0; color: #fbbf24; font-size: 22px; letter-spacing: 2px; }
.score-text { font-size: 13px; color: var(--text-light); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card { padding: 32px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card::before { content: '"'; position: absolute; top: 10px; right: 24px; font-size: 64px; color: var(--primary-lighter); opacity: 0.3; font-family: Georgia, serif; line-height: 1; }
.review-stars { color: #fbbf24; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 24px; position: relative; z-index: 1; }
.review-user { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 15px; }
.user-date { font-size: 13px; color: var(--text-light); }

/* ===== 常见问题 ===== */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: var(--primary-lighter); }
.faq-item.active { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; font-size: 16.5px; font-weight: 600; color: var(--text); text-align: left; transition: color 0.25s; }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 24px; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer p { padding: 0 26px 24px; font-size: 15px; color: var(--text-light); line-height: 1.8; }

/* ===== 下载区域 ===== */
.download { background: var(--bg); }
.download-card { position: relative; border-radius: 28px; overflow: hidden; padding: 70px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.download-bg { position: absolute; inset: 0; background: var(--gradient); z-index: 0; }
.download-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%), radial-gradient(circle at 80% 70%, rgba(244,114,182,0.2), transparent 40%); }
.download-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 24px 24px; }
.download-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.download-logo { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.download-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.download-desc { font-size: 17px; color: rgba(255,255,255,0.9); margin-bottom: 32px; }
.download-info { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.download-info li { display: flex; flex-direction: column; gap: 4px; }
.download-info span { font-size: 13px; color: rgba(255,255,255,0.75); }
.download-info strong { font-size: 17px; color: #fff; }
.btn-download {
    background: #fff; color: var(--primary-dark); padding: 18px 56px; font-size: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); border-radius: 50px;
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.35); }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 0 rgba(255,255,255,0.5); }
    70% { box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 20px rgba(255,255,255,0); }
    100% { box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 0 rgba(255,255,255,0); }
}
.download-tip { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 18px; }

/* ===== 页脚 ===== */
.footer { background: #0f172a; color: #cbd5e1; padding: 50px 0; text-align: center; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; }
.footer-logo { width: 36px; height: 36px; border-radius: 10px; }
.footer-text { font-size: 14px; color: #94a3b8; }
.footer-copy { font-size: 13px; color: #64748b; }

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s; z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式自适应 ===== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; }
    .hero-badge, .hero-actions { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-meta { margin-left: auto; margin-right: auto; }
    .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero { padding: 110px 0 80px; }
    .nav-menu {
        position: fixed; top: 70px; left: 0; right: 0; flex-direction: column;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        padding: 20px; gap: 6px; border-bottom: 1px solid var(--border);
        transform: translateY(-150%); transition: transform 0.4s ease; box-shadow: var(--shadow-md);
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { width: 100%; text-align: center; padding: 14px; }
    .nav-toggle { display: flex; }
    .hero-meta { flex-wrap: wrap; gap: 16px; padding: 16px 20px; justify-content: center; }
    .meta-divider { display: none; }
    .feature-grid, .review-grid { grid-template-columns: 1fr; }
    .download-card { padding: 50px 24px; }
    .download-info { gap: 24px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .summary-score { padding: 24px 32px; }
    .screenshots { width: 240px; height: 480px; }
    .shot { width: 220px; height: 440px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-meta { flex-direction: column; gap: 12px; align-items: center; }
    .meta-item { align-items: center; }
    .download-info { gap: 18px; }
    .download-info li { align-items: center; }
    .back-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ===== 减弱动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
