:root { 
    --bg-color: #0f0f10; 
    --text-main: #ffffff; 
    --text-sub: #a1a1a6; 
    --accent-gradient: linear-gradient(135deg, #FF5CCC 0%, #FF9E43 50%, #FF5CCC 100%); 
    --footer-height: 90px; 
}

/* 全局设置 */
html { scroll-behavior: smooth; }
::selection { background: #FF5CCC; color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f10; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body { 
    margin: 0; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding-top: 0; 
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 60px);
    overflow-x: hidden; 
    -webkit-user-select: none; user-select: none;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.5px; }

/* 小图标通用样式 */
.icon {
    width: 18px; 
    height: 18px; 
    vertical-align: middle; 
    margin-right: 6px; 
    fill: currentColor; /* 跟随文字颜色 */
    position: relative;
    top: -1px;
}

.gradient-text { 
    background-image: var(--accent-gradient); background-size: 200% auto; 
    -webkit-background-clip: text; background-clip: text; 
    -webkit-text-fill-color: transparent; color: transparent; 
    animation: gradient-flow 5s linear infinite; display: inline-block; 
}

#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--accent-gradient);
    width: 0%; z-index: 9999; box-shadow: 0 0 10px #FF5CCC; transition: width 0.1s;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes breathe-bg { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}
@keyframes shine { 
    0% { left: -100%; opacity: 0; } 
    20% { left: -100%; opacity: 0.5; } 
    50% { opacity: 1; }
    100% { left: 200%; opacity: 0; } 
}
@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

.hero-animate { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; width: 90%; position: absolute; top: 0; left: 0; z-index: 10; 
    animation: fadeInUp 0.8s ease-out; 
}
.logo-container { display: flex; align-items: center; gap: 15px; }
.nav-logo { width: 48px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: transform 0.3s; }
.nav-logo:hover { transform: rotate(5deg) scale(1.05); } 
.app-name { font-weight: 800; font-size: 1.4rem; text-shadow: 0 2px 5px rgba(0,0,0,0.7); }

.btn-style { position: relative; overflow: hidden; transition: all 0.3s ease; }
.btn-style::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); pointer-events: none;
}
.btn-style:hover::after { animation: shine 0.8s; }

.btn-primary { 
    background: var(--accent-gradient); background-size: 200% auto; animation: gradient-flow 3s linear infinite; 
    padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 0.95rem; color: white; 
    box-shadow: 0 5px 20px rgba(255, 92, 204, 0.4); 
}
.btn-primary:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 30px rgba(255, 92, 204, 0.6); }

/* --- 底部固定栏优化 --- */
footer { 
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--footer-height);
    background: rgba(20, 20, 23, 0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 1000; border-top: 1px solid rgba(255,255,255,0.15); 
    display: flex; align-items: center; justify-content: center;
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.footer-content { width: 92%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; font-weight: 600; color: var(--text-sub); }
.footer-links { display: flex; gap: 30px; align-items: center; }
/* 链接里的 Flex 布局，让图标和文字对齐 */
.footer-links a, .footer-contact a { 
    display: flex; align-items: center; gap: 4px;
    color: #fff; font-weight: 700; letter-spacing: 0.5px; transition: color 0.3s; border-bottom: 2px solid transparent; 
}
.footer-links a:hover { color: #FF5CCC; border-bottom: 2px solid #FF5CCC; }
.footer-contact { opacity: 0.9; font-size: 1rem; }
.footer-contact a { color: #FF5CCC; font-weight: 600; }

.hero { 
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; 
    padding: 140px 20px 0; overflow: hidden; min-height: 85vh; 
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/hero-bg.jpg') center top / cover no-repeat; z-index: 0;
    animation: breathe-bg 20s infinite alternate linear;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 16, 0.6) 0%, rgba(15, 15, 16, 0.3) 40%, #0f0f10 100%); z-index: 1;
}
.hero-content { max-width: 800px; margin-bottom: 20px; position: relative; z-index: 2; }
.hero h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 15px; text-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.app-store-btn { 
    display: inline-flex; align-items: center; gap: 12px; background: white; color: black; 
    padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4); transition: all 0.3s ease; animation: pulse-white 2s infinite; 
}
.app-store-btn:hover { animation: none; transform: scale(1.05); box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3); }

.hero-image { 
    width: 100%; max-width: 340px; position: relative; z-index: 2; margin-bottom: -20px; margin-top: 10px;
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, float 6s ease-in-out infinite 1.4s; opacity: 0;
} 
.hero-image img { border-radius: 44px; border: 8px solid #2c2c2e; box-shadow: 0 30px 80px rgba(0,0,0,0.9); }

.features { padding: 80px 5%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.feature-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 120px; gap: 50px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; z-index: 2; }
.feature-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.feature-text p { font-size: 1.1rem; color: var(--text-sub); }

.feature-img { flex: 1; display: flex; justify-content: center; position: relative; perspective: 1000px; }
.feature-img::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%; background: var(--accent-gradient); filter: blur(60px); opacity: 0.3; 
    z-index: -1; border-radius: 50%; animation: glow-pulse 6s infinite ease-in-out;
}
.feature-img img { 
    max-width: 300px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d;
}
.feature-img:hover img { transform: scale(1.05) rotateY(5deg) rotateX(2deg); box-shadow: -10px 30px 60px rgba(0,0,0,0.8); }
.feature-row.reverse .feature-img:hover img { transform: scale(1.05) rotateY(-5deg) rotateX(2deg); }

.why-us { background: #1c1c1e; padding: 80px 5%; text-align: center; margin: 0 20px 60px; border-radius: 30px; position: relative; z-index: 2; }
.why-us h2 { font-size: 2.5rem; margin-bottom: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }

.card { 
    padding: 35px; background: rgba(255,255,255,0.03); border-radius: 24px; text-align: left; 
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s; position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 24px; padding: 2px;
    background: var(--accent-gradient); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.06); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card h3 { color: #FF5CCC; margin-bottom: 12px; font-size: 1.4rem; }
.card p { color: #ccc; font-size: 1rem; }

body.doc-page { padding-top: 120px !important; }
body.doc-page nav { position: fixed !important; background: #0f0f10 !important; border-bottom: 1px solid rgba(255,255,255,0.1); top: 0; z-index: 999; }
.doc-container { max-width: 800px; margin: 0 auto 60px; padding: 20px; color: #ccc; min-height: 60vh; animation: fadeInUp 0.8s ease-out; }
.doc-container h1 { color: white; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 20px;}
.doc-container h2 { color: white; margin-top: 40px; margin-bottom: 15px; font-size: 1.4rem; }
.doc-container p, .doc-container li { font-size: 1rem; line-height: 1.7; margin-bottom: 15px; }

@media (max-width: 768px) { 
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.4rem; } 
    .hero-image img { max-width: 240px; }
    .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; gap: 40px; } 
    .feature-img img { max-width: 90%; } 
    .footer-content { flex-direction: column; gap: 10px; font-size: 1rem; }
    footer { height: auto; padding: 15px 0 calc(15px + env(safe-area-inset-bottom)); }
}