/* Global Styles */
:root {
    --primary-color: #06c; /* 苹果蓝 */
    --primary-color-dark: #0055b3;
    --primary-color-light: #47a9ff;
    --secondary-color: #f5f5f7; /* 苹果背景浅灰 */
    --dark-background: #1d1d1f; /* 深灰而不是黑色 */
    --text-color: #1d1d1f; /* 苹果文字深灰 */
    --text-color-light: #86868b; /* 苹果次要文字 */
    --text-color-dark: #ffffff; /* 深色背景上的文字 */
    --border-color: #d2d2d7; /* 苹果边框颜色 */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 11px 40px rgba(0, 0, 0, 0.06);
    --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
    --content-width: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 页面加载完成状态 */
body.loaded .hero-content h2,
body.loaded .hero-content p,
body.loaded .hero .btn {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 980px; /* 苹果风格圆角 */
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.022em;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn.hover-effect i {
    transform: translateX(2px);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
    z-index: -1;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 108, 255, 0.15);
}

.btn:hover::after {
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-color);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color-light);
    max-width: 640px;
    margin: 0 auto 60px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

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

.logo {
    text-decoration: none;
}

.logo h1 {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    transition: width 0.4s ease;
}

.logo:hover h1::after {
    width: 100%;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 34px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 14px;
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.1) 0%, transparent 70%);
    animation: float 25s infinite alternate ease-in-out;
}

.shape-2 {
    bottom: 15%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.08) 0%, transparent 70%);
    animation: float 20s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    animation: float 15s infinite alternate ease-in-out;
}

.section-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape-4 {
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.08) 0%, transparent 70%);
    animation: float 20s infinite alternate ease-in-out;
}

.shape-5 {
    bottom: 10%;
    left: 8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    animation: float 18s infinite alternate-reverse ease-in-out;
}

.shape-6 {
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.08) 0%, transparent 70%);
    animation: float 22s infinite alternate ease-in-out;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape-7 {
    top: 20%;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.15) 0%, transparent 70%);
    animation: float 25s infinite alternate-reverse ease-in-out;
}

.shape-8 {
    bottom: 15%;
    right: 5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 108, 255, 0.1) 0%, transparent 70%);
    animation: float 30s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
    color: var(--text-color);
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-color) 60%, rgba(29, 29, 31, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    font-weight: 400;
    letter-spacing: -0.022em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-content h2.animate,
.hero-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero .btn {
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 108, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.hero .btn.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Features Section */
.features {
    padding: 140px 0 120px;
    background-color: #ffffff;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(245, 245, 247, 0.8) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(234, 234, 234, 0.85);
}

.feature-card.dimmed {
    opacity: 0.5;
    transform: scale(0.98);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(234, 234, 234, 0.3);
    opacity: 1;
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 28px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.5s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-color-light);
    font-size: 17px;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 140px 0;
    background-color: var(--secondary-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 80%, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content p {
    margin-bottom: 28px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-content p:nth-child(1) {
    transition-delay: 0.1s;
}

.about-content p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-content p:nth-child(3) {
    transition-delay: 0.3s;
}

/* CTA Section */
.cta {
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
    color: var(--text-color);
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.cta p.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta .contact-email {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 32px;
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.cta .contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.cta .contact-email:hover {
    text-decoration: none;
}

.cta .contact-email:hover::after {
    width: 100%;
}

.cta-buttons {
    margin-top: 10px;
}

.cta .btn {
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 108, 255, 0.15);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.footer-logo h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
}

.footer-logo p {
    color: var(--text-color-light);
    font-size: 15px;
    margin-top: 6px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: var(--text-color-light);
    font-size: 15px;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding-left: 0;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    margin-left: -10px;
    opacity: 0;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 14px;
}

.footer-links ul li a:hover::before {
    width: 10px;
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    font-size: 15px;
}

.footer-contact p i {
    margin-right: 12px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary-color);
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 108, 255, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 14px;
    color: var(--text-color-light);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-title {
        font-size: 42px;
    }
    
    .section-subtitle {
        font-size: 22px;
    }
    
    .hero-content h2 {
        font-size: 48px;
    }
    
    .hero-content p {
        font-size: 24px;
    }
    
    .cta h2 {
        font-size: 42px;
    }
    
    .hero {
        padding: 140px 0 100px;
    }
    
    .features, .about, .cta {
        padding: 120px 0;
    }
    
    .shape-1, .shape-7 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2, .shape-4, .shape-8 {
        width: 200px;
        height: 200px;
    }
    
    .shape-3, .shape-5, .shape-6 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 60px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 12px 24px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .section-subtitle {
        font-size: 20px;
    }
    
    .cta h2 {
        font-size: 38px;
    }
    
    .cta p {
        font-size: 18px;
    }
    
    .feature-card {
        padding: 40px 24px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .features, .about, .cta {
        padding: 100px 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    @keyframes float {
        0% {
            transform: translate(0, 0);
        }
        100% {
            transform: translate(15px, 15px);
        }
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .features, .about, .cta {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 18px;
        margin-bottom: 50px;
    }
    
    .feature-card {
        padding: 32px 20px;
    }
    
    .feature-card h3 {
        font-size: 22px;
    }
    
    .feature-card p {
        font-size: 16px;
    }
    
    .cta h2 {
        font-size: 32px;
    }
    
    .cta p {
        font-size: 17px;
    }
    
    .cta .contact-email {
        font-size: 20px;
    }
    
    .btn, .hero .btn, .cta .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn i {
        margin-right: 6px;
    }
    
    .footer-content {
        gap: 40px;
    }
    
    .shape {
        opacity: 0.2;
    }
    
    @keyframes float {
        0% {
            transform: translate(0, 0);
        }
        100% {
            transform: translate(10px, 10px);
        }
    }
}
