/* d:\gaozhan\css\app.css */

:root {
    --text-color: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Classic Theme Default Variables */
    --accent-color: #ff6f61; /* 珊瑚橘 */
    --accent-gradient: linear-gradient(135deg, #ff6f61 0%, #00c9ff 100%);
    --bg-glow-1: rgba(255, 111, 97, 0.15);
    --bg-glow-2: rgba(0, 201, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.8);
}

/* 极光紫主题 */
body.theme-aurora {
    --accent-color: #a855f7; /* 极光紫 */
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #4ade80 100%);
    --bg-glow-1: rgba(168, 85, 247, 0.2);
    --bg-glow-2: rgba(74, 222, 128, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(11, 15, 25, 0.8);
}

/* 曜石黑主题 */
body.theme-obsidian {
    --accent-color: #ffffff; /* 极简白 */
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #52525b 100%);
    --bg-glow-1: rgba(255, 255, 255, 0.05);
    --bg-glow-2: rgba(39, 39, 42, 0.2);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(0, 0, 0, 0.8);
}

/* Global Reset for App Website */
body.app-site {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #070a13;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.8s ease;
    position: relative;
}

/* Background Glow Orbs */
.bg-glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    transition: background 0.8s ease, transform 10s ease;
}

.orb-1 {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--bg-glow-1);
    animation: floatOrb1 20s infinite alternate;
}

.orb-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--bg-glow-2);
    animation: floatOrb2 25s infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, 10%) scale(1.1); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, -10%) scale(1.15); }
}

/* Glassmorphism Panel style */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* App Navbar */
.app-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: background 0.8s ease, border-color 0.8s ease;
}

.app-nav-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.app-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.8s ease;
}

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

.app-nav-links a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.app-nav-links a:hover, .app-nav-links a.active {
    opacity: 1;
    color: var(--text-color);
}

.app-nav-links a.active {
    position: relative;
}

.app-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Logo Dropdown Style */
.nav-logo-dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--text-color);
}

.nav-logo-title .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-logo-dropdown:hover .nav-logo-title .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    width: 200px;
    background: var(--nav-bg);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.nav-logo-dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-item.active {
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--glass-border);
    margin: 6px 0;
}

.dropdown-header {
    display: block;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Theme Controller Floating Panel */
.theme-controller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
}

.theme-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.theme-options {
    display: flex;
    gap: 8px;
}

.theme-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.theme-dot:hover {
    transform: scale(1.15);
}

.theme-dot.active {
    border-color: #fff;
    transform: scale(1.1);
}

.theme-dot.classic {
    background: linear-gradient(135deg, #ff6f61, #00c9ff);
}

.theme-dot.aurora {
    background: linear-gradient(135deg, #a855f7, #4ade80);
}

.theme-dot.obsidian {
    background: linear-gradient(135deg, #3f3f46, #09090b);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-dot.obsidian.active {
    border-color: #fff;
}

/* App Hero Area */
.app-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.app-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 24px;
    transition: color 0.8s ease, border-color 0.8s ease;
}

.hero-info h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.8s ease;
}

.hero-info p.slogan {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    max-width: 520px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download.primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-download.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

.btn-download.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-download.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.app-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    width: 100%;
}

.stat-item h4 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.stat-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Smartphone Mockup Container */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-left: 60px; /* 为左侧的叠加元素预留空间 */
}

.mockup-wrapper {
    position: relative;
    width: 320px;
    height: 640px;
}

.phone-mockup-item {
    position: absolute;
    width: 320px;
    height: 640px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.5s ease;
    top: 0;
    left: 0;
    transform-origin: center center;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

.phone-notch {
    display: none;
}

/* 动态叠放样式（从前到后排序，DOM中最后一个元素在最前面） */

/* 第1层（最前面） */
.phone-mockup-item:nth-last-child(1) {
    transform: translate(0, 0) rotate(0deg) scale(1);
    z-index: 5;
    opacity: 1;
}

/* 第2层 */
.phone-mockup-item:nth-last-child(2) {
    transform: translate(-60px, 20px) rotate(-4deg) scale(0.9);
    z-index: 4;
    opacity: 0.85;
}

/* 第3层 */
.phone-mockup-item:nth-last-child(3) {
    transform: translate(-120px, 40px) rotate(-8deg) scale(0.8);
    z-index: 3;
    opacity: 0.7;
}

/* 第4层 */
.phone-mockup-item:nth-last-child(4) {
    transform: translate(-180px, 60px) rotate(-12deg) scale(0.7);
    z-index: 2;
    opacity: 0.55;
}

/* 第5层 */
.phone-mockup-item:nth-last-child(5) {
    transform: translate(-240px, 80px) rotate(-16deg) scale(0.6);
    z-index: 1;
    opacity: 0.4;
}

/* 第6层及以上隐藏 */
.phone-mockup-item:nth-last-child(n+6) {
    opacity: 0;
    pointer-events: none;
    transform: translate(-300px, 100px) rotate(-20deg) scale(0.5);
}

/* 悬停展开动效 */
.mockup-wrapper:hover .phone-mockup-item:nth-last-child(1) {
    transform: translate(20px, -10px) rotate(2deg) scale(1.02);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5);
}

.mockup-wrapper:hover .phone-mockup-item:nth-last-child(2) {
    transform: translate(-70px, 10px) rotate(-3deg) scale(0.92);
    opacity: 0.95;
}

.mockup-wrapper:hover .phone-mockup-item:nth-last-child(3) {
    transform: translate(-140px, 30px) rotate(-7deg) scale(0.82);
    opacity: 0.85;
}

.mockup-wrapper:hover .phone-mockup-item:nth-last-child(4) {
    transform: translate(-210px, 50px) rotate(-11deg) scale(0.72);
    opacity: 0.75;
}

.mockup-wrapper:hover .phone-mockup-item:nth-last-child(5) {
    transform: translate(-280px, 70px) rotate(-15deg) scale(0.62);
    opacity: 0.65;
}

/* 鼠标悬停在特定图片上时，只需将其置顶展示，不改变原有扇形位置 */
.mockup-wrapper:hover .phone-mockup-item:hover {
    z-index: 10 !important;
    opacity: 1 !important;
    cursor: pointer;
}

/* Feature detail cards for APP */
.app-features-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.app-features-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.app-features-section p.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 17px;
}

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.app-feature-card {
    padding: 40px 30px;
    text-align: left;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    transition: color 0.8s ease, background 0.3s ease;
}

.app-feature-card:hover .feature-icon-wrapper {
    background: var(--accent-gradient);
    color: #fff;
}

.app-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.app-feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Document pages (agreement/privacy) */
.doc-container {
    max-width: 800px;
    margin: 120px auto 100px;
    padding: 60px 48px;
}

.doc-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.doc-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.doc-header .update-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.doc-body {
    font-size: 15px;
    line-height: 1.8;
    color: #d2d2d7;
    text-align: justify;
}

.doc-body h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 40px 0 16px 0;
}

.doc-body p {
    margin: 0 0 20px 0;
}

.doc-body ul, .doc-body ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.doc-body li {
    margin-bottom: 8px;
}

/* Footer style for APP site */
.app-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: var(--accent-color);
}

.app-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 80px;
    }
    
    .hero-info {
        align-items: center;
        text-align: center;
    }
    
    .hero-info h1 {
        font-size: 48px;
    }
    
    .app-stats {
        justify-content: center;
    }
    
    .hero-visual {
        padding-left: 0;
    }
    
    /* 移动端仅显示最前面的1张截图 */
    .phone-mockup-item:nth-last-child(n+2) {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-info h1 {
        font-size: 36px;
    }
    .download-buttons {
        justify-content: center;
    }
    .doc-container {
        padding: 40px 20px;
        margin-top: 90px;
    }
}
