/* ============================================
   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: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(15deg) scale(1.05);
}

.nav-logo-icon circle,
.nav-logo-icon rect,
.nav-logo-icon path {
    transition: all 0.4s ease;
}

.nav-logo:hover .nav-logo-icon circle,
.nav-logo:hover .nav-logo-icon rect,
.nav-logo:hover .nav-logo-icon path {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* Logo 悬浮动画 */
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.nav-logo-icon {
    animation: logo-float 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
    filter: brightness(0.95) contrast(1.05);
}

.work-item:hover .work-screenshot {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

/* 禁用悬停效果 - 用于开发中的产品 */
.work-link-disabled .work-screenshot,
.work-link-disabled:hover .work-screenshot {
    transform: none;
    filter: brightness(0.95) contrast(1.05);
    transition: none;
}

.work-link-disabled:hover .work-image::before,
.work-link-disabled:hover .work-image::after {
    opacity: 0;
}

/* Work Image Hover Effects */
.work-image {
    position: relative;
    overflow: hidden;
}

/* 封面图酷炫动画 - 渐变光晕 */
.work-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 136, 0) 0%,
        rgba(0, 255, 136, 0.4) 25%,
        rgba(0, 212, 255, 0.4) 50%,
        rgba(123, 47, 247, 0.4) 75%,
        rgba(255, 140, 66, 0.4) 100%
    );
    background-size: 400% 400%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: gradient-rotate 6s ease infinite;
    pointer-events: none;
}

.work-item:hover .work-image::before {
    opacity: 1;
}

/* 封面图酷炫动画 - 光晕扫描 */
.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.3),
        rgba(0, 212, 255, 0.2),
        transparent
    );
    z-index: 2;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.work-item:hover .work-image::after {
    left: 100%;
}

/* 悬停时外发光 + 边框光晕 */
.work-item:hover .work-image {
    box-shadow:
        0 0 40px rgba(0, 255, 136, 0.4),
        0 0 80px rgba(0, 212, 255, 0.3),
        0 0 120px rgba(123, 47, 247, 0.2),
        inset 0 0 40px rgba(0, 255, 136, 0.1);
}

/* 旋转渐变动画 */
@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 封面图加载动画 - 增强版 */
@keyframes image-reveal {
    0% {
        transform: scale(1.15);
        filter: blur(12px) brightness(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1);
        opacity: 1;
    }
}

.work-screenshot {
    animation: image-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* 延迟动画 - 每个封面图不同延迟 */
.work-item:nth-child(1) .work-screenshot { animation-delay: 0.1s; }
.work-item:nth-child(2) .work-screenshot { animation-delay: 0.2s; }
.work-item:nth-child(3) .work-screenshot { animation-delay: 0.3s; }
.work-item:nth-child(4) .work-screenshot { animation-delay: 0.4s; }
.work-item:nth-child(5) .work-screenshot { animation-delay: 0.5s; }
.work-item:nth-child(6) .work-screenshot { animation-delay: 0.6s; }
.work-item:nth-child(7) .work-screenshot { animation-delay: 0.7s; }
.work-item:nth-child(8) .work-screenshot { animation-delay: 0.8s; }

/* 浮动动画 - 封面图轻微浮动 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.work-item {
    animation: float 6s ease-in-out infinite;
}

.work-item:nth-child(odd) {
    animation-delay: 0s;
}

.work-item:nth-child(even) {
    animation-delay: 3s;
}

/* 悬停时停止浮动 */
.work-item:hover {
    animation-play-state: paused;
}

/* 角落光点装饰 */
.work-image .corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.work-image .corner-accent::before,
.work-image .corner-accent::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 50%;
    filter: blur(4px);
}

.work-image .corner-accent::before {
    width: 8px;
    height: 8px;
}

.work-image .corner-accent::after {
    width: 4px;
    height: 4px;
}

.work-item:hover .work-image .corner-accent {
    opacity: 1;
}

.work-image .corner-accent.top-left {
    top: 12px;
    left: 12px;
}

.work-image .corner-accent.top-left::before { top: 0; left: 0; }
.work-image .corner-accent.top-left::after { top: 4px; left: 4px; }

.work-image .corner-accent.bottom-right {
    bottom: 12px;
    right: 12px;
}

.work-image .corner-accent.bottom-right::before { bottom: 0; right: 0; }
.work-image .corner-accent.bottom-right::after { bottom: 4px; right: 4px; }

.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-overlay-disabled {
    background: rgba(0, 0, 0, 0.75) !important;
}

.work-overlay-disabled .overlay-text {
    color: var(--text-secondary) !important;
}

.work-overlay-disabled i {
    color: var(--text-tertiary) !important;
}

.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;
    }
}

/* ============================================
   Work Item Premium Animations
   ============================================ */

/* AI 小说创作工作流系统 - DNA 动画 */
.dna-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.dna-strand {
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, #00a8cc, #7b2ff7);
    border-radius: 2px;
    animation: dna-flow 3s linear infinite;
}

.dna-left { left: 15%; }
.dna-right { right: 15%; animation-direction: reverse; }

@keyframes dna-flow {
    from { background-position: 0 0; }
    to { background-position: 0 200%; }
}

/* Agent_WE - 网络节点动画 */
.network-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.network-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #00ff88 0%, transparent 70%);
    border: 2px solid #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,255,136,0.5);
    animation: node-pulse 3s ease-in-out infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.node-3 { top: 50%; left: 10%; animation-delay: 1s; }
.node-4 { top: 50%; right: 10%; animation-delay: 1.5s; }
.node-5 { bottom: 30%; left: 30%; animation-delay: 2s; }
.node-6 { bottom: 30%; right: 30%; animation-delay: 2.5s; }

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.4), transparent);
    animation: line-flow 4s linear infinite;
}

.line-1-2 { top: 20%; left: 20%; right: 20%; }
.line-3-4 { top: 50%; left: 10%; right: 10%; }

/* 定制工作自动化系统 - 自动化流程动画 */
.automation-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

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

/* 模块容器 */
.automation-module {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .automation-module {
    transform: scale(1);
}

.automation-module.email {
    top: 35%;
    left: 25%;
    border-color: rgba(0, 255, 136, 0.5);
    animation-delay: 0s;
}

.automation-module.document {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(0, 212, 255, 0.5);
    animation-delay: 0.2s;
}

.automation-module.rpa {
    top: 35%;
    right: 25%;
    border-color: rgba(255, 140, 66, 0.5);
    animation-delay: 0.4s;
}

/* 模块图标 */
.automation-icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.automation-module.email .automation-icon {
    color: #00ff88;
}

.automation-module.document .automation-icon {
    color: #00d4ff;
}

.automation-module.rpa .automation-icon {
    color: #FF8C42;
}

/* 数据流线条 */
.automation-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0) 0%, 
        rgba(0, 255, 136, 0.6) 50%, 
        rgba(0, 212, 255, 0.6) 100%);
    border-radius: 2px;
    transform-origin: left center;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.work-item:hover .automation-line {
    opacity: 1;
}

.automation-line.line-1 {
    top: 50%;
    left: 28%;
    width: 20%;
    transform: rotate(15deg);
}

.automation-line.line-2 {
    top: 50%;
    left: 52%;
    width: 20%;
    transform: rotate(-15deg);
}

/* 流动的数据点 */
.automation-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.work-item:hover .automation-dot {
    animation: dot-flow 2s ease-in-out infinite;
}

@keyframes dot-flow {
    0% {
        left: 28%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 72%;
        opacity: 0;
    }
}

/* 扫描线效果 */
.automation-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    opacity: 0;
}

.work-item:hover .automation-scan-line {
    animation: scan-vertical 2.5s ease-in-out infinite;
}

@keyframes scan-vertical {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 状态指示器 */
.automation-status {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.work-item:hover .automation-status {
    opacity: 1;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: status-pulse 1.5s ease-in-out infinite;
}

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

.status-text {
    font-size: 10px;
    color: #00ff88;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 角落光点装饰 */
.automation-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-item:hover .automation-corner {
    opacity: 1;
}

.automation-corner::before,
.automation-corner::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, #00ff88 0%, transparent 70%);
    border-radius: 50%;
}

.automation-corner::before {
    width: 8px;
    height: 8px;
}

.automation-corner::after {
    width: 4px;
    height: 4px;
}

.automation-corner.top-left {
    top: 10%;
    left: 10%;
}

.automation-corner.top-left::before { top: 0; left: 0; }
.automation-corner.top-left::after { top: 3px; left: 3px; }

.automation-corner.top-right {
    top: 10%;
    right: 10%;
}

.automation-corner.top-right::before { top: 0; right: 0; }
.automation-corner.top-right::after { top: 3px; right: 3px; }

.automation-corner.bottom-left {
    bottom: 10%;
    left: 10%;
}

.automation-corner.bottom-left::before { bottom: 0; left: 0; }
.automation-corner.bottom-left::after { bottom: 3px; left: 3px; }

.automation-corner.bottom-right {
    bottom: 10%;
    right: 10%;
}

.automation-corner.bottom-right::before { bottom: 0; right: 0; }
.automation-corner.bottom-right::after { bottom: 3px; right: 3px; }
.line-5-6 { bottom: 30%; left: 30%; right: 30%; }

@keyframes line-flow {
    from { background-position: -200% 0; }
    to { background-position: 200% 0; }
}

/* Agent Teams Playbook - 轨道动画 */
.orbit-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(0,255,136,0.3) 0%, transparent 70%);
    border: 2px solid rgba(0,255,136,0.5);
    border-radius: 50%;
    animation: center-glow 2s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 80px;
    height: 80px;
    animation: orbit-rotate 8s linear infinite;
}

.orbit-2 {
    width: 120px;
    height: 120px;
    animation: orbit-rotate 12s linear infinite reverse;
}

.orbit-3 {
    width: 160px;
    height: 160px;
    animation: orbit-rotate 16s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,255,136,0.8);
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes center-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,168,204,0.5), transparent);
    animation: flow-move 3s linear infinite;
}

.flow-1 { top: 25%; left: 0; right: 0; animation-delay: 0s; }
.flow-2 { top: 40%; left: 0; right: 0; animation-delay: 0.5s; }
.flow-3 { bottom: 40%; left: 0; right: 0; animation-delay: 1s; }
.flow-4 { bottom: 25%; left: 0; right: 0; animation-delay: 1.5s; }

@keyframes flow-move {
    from { background-position: -100% 0; }
    to { background-position: 100% 0; }
}