/* ============================================
   Remi Portfolio 2.0 — Premium Design
   参考：Apple + Stripe + Linear + Vercel
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #222222;
    
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;  /* 提亮：#a1a1aa → #b4b4b4 */
    --text-tertiary: #8a8a93;    /* 提亮：#71717a → #8a8a93 */
    --text-muted: #6a6a70;       /* 提亮：#52525b → #6a6a70 */
    
    --accent-primary: #ff8c42;
    --accent-secondary: #ffd700;
    --accent-gradient: linear-gradient(135deg, #ff8c42 0%, #ffa947 50%, #ffd700 100%);
    --accent-glow: rgba(255, 140, 66, 0.15);
    --accent-border: rgba(255, 140, 66, 0.3);
    
    --bg-gradient: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);   /* 提亮：0.03 → 0.05 */
    --glass-border: rgba(255, 255, 255, 0.12);  /* 提亮：0.08 → 0.12 */
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Noto Sans SC', var(--font-primary);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, rgba(255, 215, 0, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-tertiary);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary.success {
    background: #4ade80;
    color: #000;
}

.btn-primary.success:hover {
    box-shadow: 0 12px 40px rgba(74, 222, 128, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-bg);
    border-color: var(--text-tertiary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-bg {
    display: none;
}

.hero-grid {
    display: none;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.title-line {
    display: block;
}

.title-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-desc-secondary {
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

/* Hero Image / Avatar */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.image-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.3) 0%, rgba(255, 215, 0, 0.1) 100%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.image-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: transparent;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.avatar-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: var(--text-muted);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* Work Screenshot */
.work-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s var(--ease-out);
}

.work-item:hover .work-screenshot {
    transform: scale(1.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.8s var(--ease-out) 0.8s both;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 80px 0;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.stat-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1.2;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--glass-border);
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    background: transparent;
}

.section-light {
    background: transparent;
}

.section-dark {
    background: transparent;
}

.section-cta {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-lead strong {
    color: var(--accent-primary);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

/* Code Visual Card */
.visual-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.visual-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.visual-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.visual-dot.red { background: #ff5f57; }
.visual-dot.yellow { background: #ffbd2e; }
.visual-dot.green { background: #28c840; }

.visual-content {
    padding: 24px 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line { white-space: pre; }
.code-line.indent { padding-left: 24px; }
.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-prop { color: #e06c75; }
.code-string { color: #98c379; }

/* ============================================
   Goals Section
   ============================================ */
.goals-container {
    display: grid;
    gap: 24px;
}

.goal-card {
    display: flex;
    gap: 32px;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}

.goal-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-border);
    transform: translateX(8px);
}

.goal-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--glass-border);
    line-height: 1;
}

.goal-content {
    flex: 1;
}

.goal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.goal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: var(--progress);
    transition: width 1s var(--ease-out);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    min-width: 100px;
    text-align: right;
}

/* ============================================
   Work Section
   ============================================ */
.work-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.work-item {
    group: work-item;
}

.work-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Disabled Work Link */
.work-link-disabled {
    display: block;
    color: inherit;
    cursor: not-allowed;
}

.work-link-disabled .work-overlay-disabled {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    z-index: 10;
}

.work-link-disabled:hover .work-overlay-disabled {
    opacity: 1;
}

.work-link-disabled .overlay-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.work-image {
    position: relative;
    height: 240px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
    transition: all 0.4s var(--ease-out);
}

.work-item:hover .work-placeholder {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--text-primary);
    font-weight: 600;
}

.work-overlay i {
    color: var(--accent-primary);
}

.work-info {
    padding: 8px;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.work-category {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.work-item:hover .work-title {
    color: var(--accent-primary);
}

.work-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tags span {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.work-more .work-placeholder {
    flex-direction: column;
    gap: 12px;
    border: 2px dashed var(--glass-border);
    background: transparent;
}

.work-more .work-placeholder span {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ============================================
   Timeline / Journey
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--bg-tertiary));
}

.timeline-item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -48px;
    top: 0;
    width: 96px;
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.timeline-content:hover {
    border-color: var(--accent-border);
    transform: translateX(8px);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Videos Section
   ============================================ */
.video-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.video-main {
    grid-row: span 2;
}

.video-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.video-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--bg-elevated);
    cursor: pointer;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    transition: all 0.3s var(--ease-out);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.play-btn.small {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-meta {
    padding: 20px;
}

.video-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-meta p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.video-small .video-meta h4 {
    font-size: 0.95rem;
}

.video-small .video-meta p {
    font-size: 0.8rem;
}

/* ============================================
   Contact CTA Section
   ============================================ */
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: relative;
}

.info-item {
    margin-bottom: 24px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    position: relative;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

button.social-link {
    background: none;
    border: 1px solid var(--glass-border);
    font-family: inherit;
}

.social-link:hover {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* WeChat Popup */
.wechat-popup {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 9999;
}

.wechat-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
    z-index: 9999;
}

.wechat-qrcode {
    text-align: center;
}

.wechat-id {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.wechat-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-elevated);
}

.wechat-popup::after {
    content: '点击复制微信号';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Contact Form */
.contact-form {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: transparent;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .video-showcase {
        grid-template-columns: 1fr;
    }
    
    .video-main {
        grid-row: span 1;
    }
}

/* ============================================
   Journey Cards - AI Transformation
   ============================================ */
.journey-cards {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.journey-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.journey-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.journey-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--glass-border);
    line-height: 1;
}

.card-time {
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-desc:last-child {
    margin-bottom: 0;
}

.card-desc strong {
    color: var(--accent-primary);
}

.card-highlight {
    padding: 16px 20px;
    background: var(--accent-glow);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 2px;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--ease-out);
}

.journey-card:hover .card-footer {
    opacity: 1;
    transform: translateX(0);
}

/* Footprint Animation - Glassmorphism Style */
.footprint-container {
    position: relative;
    width: 200px;
    height: 40px;
    overflow: visible;
}

.footprint {
    position: absolute;
    width: 24px;
    height: 32px;
    left: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 140, 66, 0.1) 50%,
        rgba(255, 215, 0, 0.05) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(255, 140, 66, 0.15),
        inset 0 1px 4px rgba(255, 255, 255, 0.1);
}

.footprint::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    width: 6px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.footprint::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 8px;
    width: 8px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.journey-card:hover .footprint {
    animation: footprint-walk-new 2s ease-out forwards;
}

.journey-card:hover .footprint:nth-child(1) {
    animation-delay: 0s;
}

.journey-card:hover .footprint:nth-child(2) {
    animation-delay: 0.15s;
}

.journey-card:hover .footprint:nth-child(3) {
    animation-delay: 0.3s;
}

.journey-card:hover .footprint:nth-child(4) {
    animation-delay: 0.45s;
}

.journey-card:hover .footprint:nth-child(5) {
    animation-delay: 0.6s;
}

/* 设置每个脚印的起始位置，形成从左到右的队列 */
.footprint:nth-child(1) {
    left: 0;
}

.footprint:nth-child(2) {
    left: 28px;
}

.footprint:nth-child(3) {
    left: 56px;
}

.footprint:nth-child(4) {
    left: 84px;
}

.footprint:nth-child(5) {
    left: 112px;
}

@keyframes footprint-walk-new {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.6) rotate(-10deg);
    }
    15% {
        opacity: 0.8;
        transform: translateX(0) scale(1) rotate(0deg);
    }
    70% {
        opacity: 0.6;
        transform: translateX(25px) scale(1) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translateX(35px) scale(0.8) rotate(10deg);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-wrapper {
        gap: 30px;
    }
    
    .image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .nav-links,
    .nav-actions .btn-nav {
        display: none;
    }
    
    .nav-menu-btn {
        display: flex;
    }
    
    .nav-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .journey-card {
        padding: 24px 20px;
    }

    .card-number {
        font-size: 2rem;
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .card-desc {
        font-size: 0.95rem;
    }

    /* WeChat Popup Mobile */
    .wechat-popup {
        left: auto;
        right: 0;
        transform: none;
    }

    .wechat-popup.show {
        transform: translateY(-8px);
    }

    .wechat-popup::after {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    .wechat-arrow {
        left: auto;
        right: 20px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .goal-card {
        flex-direction: column;
        gap: 16px;
    }
    
    .goal-number {
        font-size: 2rem;
    }
}