:root {
    --apple-blue: #0071e3;
    --apple-grey: #86868b;
    --apple-bg: #ffffff;
    --apple-section-bg: #f5f5f7;
    --apple-card: rgba(255, 255, 255, 0.8);
    --apple-dark: #1d1d1f;
    --feat-green: #28a745;
    --fix-red: #d93025;
    --opt-blue: #0071e3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    background: var(--apple-bg);
    color: var(--apple-dark);
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 99;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1060px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--apple-dark);
}

.nav-right { display: flex; align-items: center; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-size: 12px;
    color: var(--apple-dark);
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--apple-blue); }
.nav-links a.active { color: var(--apple-blue); opacity: 1; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

footer {
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--apple-grey);
    text-decoration: none;
}

.footer-links a:hover { color: var(--apple-dark); }
.copyright { margin-top: 14px; font-size: 0.82rem; color: var(--apple-grey); }

/* index page */
body.page-index {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-index header {
    position: fixed;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease 0.7s;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.page-index header.visible { opacity: 1; transform: translateY(0); }

body.page-index #intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

body.page-index .content-wrapper { text-align: center; will-change: transform, opacity; }
body.page-index .text-line {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -2px;
    line-height: 1.1;
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px) scale(0.9);
    animation: text-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-index .text-line.sub {
    font-size: 2rem;
    font-weight: 400;
    color: var(--apple-grey);
    margin-top: 10px;
    animation-delay: 0.2s;
}

body.page-index .gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes text-in { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }

body.page-index #intro.exit { background: rgba(0,0,0,0); transition: background 0.8s ease 0.1s; }
body.page-index #intro.exit .content-wrapper {
    transform: scale(8);
    opacity: 0;
    filter: blur(10px);
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.5s ease 0.1s;
}

body.page-index main {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    padding-top: 52px;
}
body.page-index main.active { opacity: 1; transform: translateY(0); }

body.page-index .hero,
body.page-index .hero2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
body.page-index .hero { padding: 0 0 60px; }
body.page-index .hero2 { padding: 0; }

body.page-index h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -2px; margin: 0 0 15px; }
body.page-index .description { font-size: 1.6rem; color: var(--apple-grey); max-width: 800px; margin-bottom: 40px; font-weight: 400; }

body.page-index .hero-container {
    width: 100vw;
    max-width: none;
    margin-top: 0;
    opacity: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
}
body.page-index main.active .hero-container { opacity: 1; transform: scale(1) translateY(0); }
body.page-index .hero-image { width: 100%; height: auto; border-radius: 0;  display: block; border: none; }

body.page-index .features {
    max-width: 1060px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 0;
}

body.page-index .feature-item { text-align: left; margin-left: 10px; margin-right: 10px; }
body.page-index .feature-item h4 { font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
body.page-index .feature-item p { color: var(--apple-grey); font-size: 1rem; margin: 0; line-height: 1.6; }
body.page-index .feature-gif-wrap {
    width: 100%;
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    aspect-ratio: 16 / 9;
}
body.page-index .feature-gif { width: 100%; height: 100%; object-fit: cover; display: block; }
body.page-index .site-footer {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--apple-grey);
    border-top: 1px solid rgba(0,0,0,0.05);
}
body.page-index .site-footer a { color: var(--apple-grey); text-decoration: none; margin: 0 15px; transition: color 0.2s; }
body.page-index .site-footer a:hover { color: var(--apple-dark); }
body.page-index .beian-wrapper { margin-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.page-index .beian-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
body.page-index .beian-item { display: inline-flex; align-items: center; text-decoration: none; color: var(--apple-grey); }
body.page-index .beian-item:hover { color: var(--apple-dark); }
body.page-index .gongan-icon { width: 16px; height: 16px; margin-right: 4px; }

/* help page */
body.page-help main { padding: 48px 20px 80px; }
body.page-help .hero { text-align: center; margin: 24px 0 52px; }
body.page-help .hero h1 { margin: 0; font-size: 3.1rem; letter-spacing: -1.2px; line-height: 1.08; }
body.page-help .support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 64px;
}
body.page-help .support-link {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}
body.page-help .support-link:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,0.07); }
body.page-help .support-link h3 { margin: 0 0 8px; font-size: 1rem; color: var(--apple-dark); }
body.page-help .support-link p { margin: 0; font-size: 0.9rem; color: var(--apple-grey); }
body.page-help .section-title { margin: 0 0 20px; font-size: 2rem; letter-spacing: -0.6px; }
body.page-help .faq-wrap { margin-bottom: 64px; }
body.page-help .faq-list { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; overflow: hidden; }
body.page-help details { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 0 20px; }
body.page-help details:last-child { border-bottom: none; }
body.page-help summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; padding: 18px 26px 18px 0; position: relative; }
body.page-help summary::-webkit-details-marker { display: none; }
body.page-help summary::after { content: "+"; position: absolute; right: 0; top: 16px; color: var(--apple-grey); font-size: 1.2rem; }
body.page-help details[open] summary::after { content: "−"; color: var(--apple-blue); }
body.page-help .faq-answer { margin: 0 0 18px; color: var(--apple-grey); font-size: 0.98rem; }
body.page-help .contact { background: var(--apple-section-bg); border-radius: 18px; padding: 28px; }
body.page-help .contact p { margin: 0 0 18px; color: var(--apple-grey); max-width: 860px; }
body.page-help .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
body.page-help .contact-card { background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); padding: 16px; }
body.page-help .contact-card h4 { margin: 0 0 8px; font-size: 0.9rem; color: var(--apple-grey); text-transform: uppercase; letter-spacing: 0.8px; }
body.page-help .contact-card a { color: var(--apple-blue); text-decoration: none; font-weight: 600; }

/* release page */
body.page-release { background: #f5f5f7; line-height: 1.5; }
body.page-release .container { max-width: 800px; margin: 60px auto; padding: 0 20px; }
body.page-release .page-header { text-align: center; margin-bottom: 80px; }
body.page-release .page-header h1 { font-size: 3rem; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 10px; }
body.page-release .page-header p { color: var(--apple-grey); font-size: 1.2rem; }
body.page-release .release-item {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}
body.page-release .version-tag { font-size: 0.85rem; font-weight: 700; color: var(--apple-blue); background: rgba(0, 113, 227, 0.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 15px; display: inline-block; }
body.page-release .release-date { float: right; color: var(--apple-grey); font-size: 0.9rem; margin-top: 5px; }
body.page-release .release-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 25px; letter-spacing: -0.5px; }
body.page-release .section-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 30px 0 15px; display: flex; align-items: center; gap: 10px; }
body.page-release .badge { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
body.page-release .badge.feature { background: var(--feat-green); }
body.page-release .badge.fix { background: var(--fix-red); }
body.page-release .badge.improvement { background: var(--opt-blue); }
body.page-release ul { list-style: none; padding: 0; margin: 0; }
body.page-release li { padding: 12px 0; border-bottom: 1px solid #f2f2f2; color: var(--apple-dark); font-size: 1.05rem; }
body.page-release li:last-child { border-bottom: none; }
body.page-release footer { padding: 60px 20px; text-align: center; font-size: 0.8rem; color: var(--apple-grey); border-top: 1px solid rgba(0,0,0,0.05); margin-top: 0; }

/* pricing page */
body.page-pricing main { padding: 84px 20px 80px; }
body.page-pricing .hero { text-align: center; margin-bottom: 56px; }
body.page-pricing .hero h1 { margin: 0 0 14px; font-size: 3.4rem; letter-spacing: -1.4px; line-height: 1.1; }
body.page-pricing .hero p { margin: 0 auto; max-width: 760px; color: var(--apple-grey); font-size: 1.2rem; }
body.page-pricing .pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.page-pricing .pricing-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; padding: 32px; box-shadow: 0 16px 40px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
body.page-pricing .pricing-card.featured { border-color: rgba(0, 113, 227, 0.25); box-shadow: 0 24px 50px rgba(0, 113, 227, 0.12); }
body.page-pricing .plan-name { margin: 0; font-size: 1.5rem; letter-spacing: -0.4px; }
body.page-pricing .plan-subtitle { margin: 10px 0 0; color: var(--apple-grey); font-size: 0.95rem; }
body.page-pricing .price-row { margin: 20px 0 16px; display: flex; align-items: baseline; gap: 6px; }
body.page-pricing .price { font-size: 3rem; line-height: 1; letter-spacing: -1px; font-weight: 700; }
body.page-pricing .price-unit { color: var(--apple-grey); font-size: 1rem; }
body.page-pricing .feature-list { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; gap: 12px; color: var(--apple-dark); font-size: 0.98rem; }
body.page-pricing .feature-list li { position: relative; padding-left: 18px; }
body.page-pricing .feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--apple-blue); }
body.page-pricing .cta-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
body.page-pricing .cta-primary { background: var(--apple-blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3); }
body.page-pricing .cta-secondary { background: #fff; color: var(--apple-blue); border-color: rgba(0, 113, 227, 0.35); }
body.page-pricing .cta-btn:hover { transform: translateY(-1px); }
body.page-pricing .bottom-cta { margin-top: 44px; background: var(--apple-section-bg); border-radius: 18px; padding: 28px; text-align: center; }
body.page-pricing .bottom-cta p { margin: 0 0 16px; color: var(--apple-grey); }
body.page-pricing .bottom-cta a { color: var(--apple-blue); text-decoration: none; font-weight: 600; }
body.page-pricing .site-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); text-align: center; font-size: 0.82rem; color: var(--apple-grey); }

@media (max-width: 900px) {
    body.page-pricing .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { gap: 12px; }
    body.page-index h1 { font-size: 3rem; }
    body.page-index .description { font-size: 1.2rem; }
    body.page-index .features { gap: 40px; }
    body.page-help .hero h1 { font-size: 2.3rem; }
    body.page-release .page-header h1 { font-size: 2.2rem; }
    body.page-pricing .hero h1 { font-size: 2.6rem; }
    body.page-pricing .hero p { font-size: 1.05rem; }
}
