/* --- 全局与根变量 --- */
:root {
    --primary-color: #007aff;
    --dark-text: #1d1d1f;
    --light-text: #5a5a5e;
    --background-color: #ffffff;
    --section-bg-light: #f8f9fa;
    --border-color: #e5e5e6;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- 重置与基础样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    text-align: center;
    max-width: 600px;
    margin: -16px auto 60px;
}

/* --- 动态效果 --- */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 导航栏 --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-text);
}

/* --- 新增：专门为Logo图片设置样式 --- */
.logo img {
    height: 36px; /* 设置在导航栏中的显示高度 */
    width: 36px;  /* 设置显示宽度，保持1:1比例 */
    object-fit: contain; /* 确保图片完整显示且不被拉伸，即使比例不完美 */
    margin-right: 8px; /* 之前图标和文字有8px的gap，这里我们用margin代替 */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary-color); }

.cta-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 99px;
}
.nav-cta:hover {
    background-color: #0066cc;
}
.nav-cta .fa-brands { margin-right: 8px; }

/* --- 英雄区域 --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 40px;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.05), transparent 60%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 650px;
    margin: 0 auto 32px;
}

.hero-cta img {
    height: 52px;
}

.hero-iphone {
    margin-top: 60px;
    perspective: 1000px;
}

.iphone-frame {
    width: 300px;
    height: 610px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: rotateX(20deg) rotateY(0deg);
    transition: transform 0.5s ease-out;
}
.hero-iphone:hover .iphone-frame {
    transform: rotateX(10deg) rotateY(0deg) translateY(-10px);
}

.screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #111;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* --- 功能特性区 --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
}

.feature-card .icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--light-text);
}


/* --- 工作流程区 --- */
.how-it-works-section {
    background: var(--section-bg-light);
}
.how-it-works-content {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 60px;
}
.how-it-works-visual {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
}
.how-it-works-visual .iphone-frame {
    transform: rotateY(15deg);
    width: 280px;
    height: 570px;
}
.how-it-works-steps {
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.step-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.step h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.step p {
    color: var(--light-text);
}

/* --- Pro 版本区 --- */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pro-card {
    background: linear-gradient(145deg, #fefefe, #f4f5f7);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.12);
}

.pro-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.pro-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.pro-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* --- FAQ 区 --- */
.faq-section { background: var(--section-bg-light); }
.faq-accordion {
    max-width: 750px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--light-text);
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* --- 最终CTA区 --- */
.final-cta-section {
    text-align: center;
    background: var(--section-bg-light);
}
.final-cta-section h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.final-cta-section p { color: var(--light-text); margin-bottom: 32px; font-size: 1.1rem; }
.cta-gallery {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 1500px;
}
.cta-gallery img {
    width: 250px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.cta-gallery img:nth-child(1) { transform: rotateY(15deg) scale(0.95); }
.cta-gallery img:nth-child(2) { z-index: 2; transform: scale(1); }
.cta-gallery img:nth-child(3) { transform: rotateY(-15deg) scale(0.95); }
.cta-gallery:hover img:nth-child(1) { transform: rotateY(5deg) scale(1) translateX(-20px); }
.cta-gallery:hover img:nth-child(2) { transform: scale(1.05); }
.cta-gallery:hover img:nth-child(3) { transform: rotateY(-5deg) scale(1) translateX(20px); }


/* 页脚最终诊断版 */
.footer {
    background-color: #1a1a1c;
    color: #888;
    padding: 30px 0;
    border-top: 1px solid #2c2c2e;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #888;
}
.footer-legal .divider { color: #444; }
.footer-nav { display: flex; gap: 32px; }

/* 强制重置所有页脚链接的样式 */
.footer a,
.footer a:link,
.footer a:visited {
    color: inherit !important;
    text-decoration: none !important;
}
.footer a:hover {
    text-decoration: none !important;
}
.footer-legal a { color: #888 !important; }
.footer-legal a:hover { color: #bbb !important; }
.footer-nav a { color: #bdbdc2 !important; font-size: 0.9rem; font-weight: 500; }
.footer-nav a:hover { color: #fff !important; }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 18px; }
    .footer-legal { order: 2; }
    .footer-nav { order: 1; flex-direction: column; gap: 15px; }
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .nav-links { display: none; } /* 移动端可改为汉堡菜单 */
    .features-grid { grid-template-columns: 1fr; }
    .pro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .how-it-works-content { flex-direction: column; }
    .how-it-works-visual .iphone-frame { transform: rotateY(0); }

    .cta-gallery { flex-direction: column; align-items: center; }
    .cta-gallery img:nth-child(1),
    .cta-gallery img:nth-child(3) { transform: scale(0.9); margin-top: -30px;}
    .cta-gallery img:nth-child(2) { transform: scale(0.95); order: -1;}

    .footer .container {
        flex-direction: column;
        gap: 16px;
    }
}
