/* --- 1. 全局重置与光标强制修复 --- */
:root {
    --bg-color: #000000;
    --card-bg: #1d1d1f;
    --text-main: #f5f5f7;
    --text-sub: #86868b;
    --accent: #2997ff; /* Apple Blue */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 暴力强制显示鼠标 */
    cursor: auto !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- 2. 导航栏 (Glassmorphism) --- */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: #e8e8ed;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-list a:hover {
    opacity: 1;
}

.nav-btn {
    background: #fff;
    color: #000 !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* --- 3. Hero Section (iPhone Pro Style) --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 50px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* 苹果风格的文字渐变光泽 */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-sub);
    margin-top: 1.5rem;
    font-weight: 500;
}

/* --- 4. Bento Grid (卡片布局) --- */
.grid-section {
    padding: 100px 0;
    background: #000;
}

.container {
    max-width: 980px; /* Apple 的标准容器宽度 */
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.5rem;
    color: var(--text-sub);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    height: 600px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding: 40px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02); /* 经典的微缩放交互 */
}

.card-large {
    grid-row: span 2;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.5s;
    z-index: 1;
}

.card:hover .card-bg {
    opacity: 0.8;
}

.card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-sub);
    font-size: 1.1rem;
}

/* --- 5. Feature Section --- */
.feature-section {
    padding: 100px 0;
    text-align: center;
}

.feature-text {
    margin-bottom: 50px;
}

.feature-text h2 {
    font-size: 4rem;
}

.feature-image-wrapper {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #333;
}

.feature-image-wrapper img {
    width: 100%;
    display: block;
}

/* --- 6. Contact & Form --- */
.contact-section {
    padding: 100px 0;
    background: #000;
}

.small-container {
    max-width: 600px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #2997ff, #b556ff); /* 鲜艳的渐变点缀 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apple-form .form-row {
    margin-bottom: 20px;
}

.apple-form input,
.apple-form textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    font-size: 17px;
    font-family: var(--font-stack);
    outline: none;
    transition: border-color 0.3s;
}

.apple-form input:focus,
.apple-form textarea:focus {
    border-color: var(--accent);
}

.apple-form textarea {
    height: 150px;
    resize: none;
}

.cta-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-btn:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.form-footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- 7. Footer --- */
.global-footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid #333;
    font-size: 12px;
    color: var(--text-sub);
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #444;
}

.footer-links a:first-child {
    border-left: none;
}

/* --- 8. 动画类 --- */
/* 初始状态：不可见，向下偏移 */
.fade-in-up,
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 激活状态：可见，复位 */
.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .card-large {
        grid-row: auto;
        height: 400px;
    }
    .card-small {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 12vw;
    }
}