/* ============================================
   wanwnats 
   ============================================ */

/* CSS 变量 */
:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #64748b;
    --text-color: #0f172a;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-alt: #f0fdfa;
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    --glass-blur: saturate(180%) blur(20px);
    --glass-blur-strong: saturate(200%) blur(40px);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --nav-height: 72px;
}

/* 重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ============================================
   导航栏 - 毛玻璃
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-logo::before {
    content: 'W';
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: var(--transition-spring);
}

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

.nav-logo:hover::before {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* ============================================
   首页横幅 - 大气渐变背景
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-height) 24px 80px;
    position: relative;
    overflow: hidden;
}

/* 多层渐变背景 - 苹果风格 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(13, 148, 136, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #f8fffe 0%, #f0fdfa 40%, #e8f8f5 100%);
    z-index: 0;
}

/* 浮动光斑 */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: heroEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    animation: heroEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    opacity: 0;
    animation: scrollIndicatorEnter 1s ease 1s forwards, bounce 2.5s ease-in-out 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
}

/* ============================================
   品牌标语 - 毛玻璃卡片
   ============================================ */
.motto {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.motto::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 50%, rgba(13, 148, 136, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.motto-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 48px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.motto-cn {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.motto-en {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* ============================================
   产品展示 - 毛玻璃卡片
   ============================================ */
.products {
    padding: 120px 0;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(13, 148, 136, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 产品卡片 - 苹果毛玻璃风格 */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(13, 148, 136, 0.2);
}

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

.product-card:hover::after {
    opacity: 1;
}

.product-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(13, 148, 136, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-color);
    transition: var(--transition-spring);
}

.product-card:hover .product-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.product-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.product-info p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.product-link svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-link {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.product-card:hover .product-link svg {
    transform: translate(3px, -3px);
}

/* ============================================
   页脚 - 毛玻璃
   ============================================ */
.footer {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9375rem;
    opacity: 0.6;
}

/* ============================================
   动画 - 苹果风格缓动
   ============================================ */
@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.98);
    }
}

@keyframes scrollIndicatorEnter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* 滚动显示动画 - 多方向 */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-scale {
    transform: translateY(40px) scale(0.95);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 交错延迟 */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.45s; }

/* ============================================
   视差效果
   ============================================ */
.parallax-slow {
    will-change: transform;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .motto {
        padding: 80px 0;
    }

    .motto-content {
        padding: 40px 24px;
    }

    .products {
        padding: 80px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card {
        padding: 32px 24px;
    }

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

    .hero {
        padding-top: var(--nav-height);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .motto-content {
        padding: 32px 20px;
    }
}

/* ============================================
   滚动进度条
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   粒子画布
   ============================================ */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   回到顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

/* ============================================
   产品卡片波纹效果
   ============================================ */
.product-card {
    position: relative;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   打字机光标
   ============================================ */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary-color);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .navbar,
    .scroll-indicator,
    .progress-bar,
    .back-to-top,
    .particles-canvas {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .motto-content {
        backdrop-filter: none;
        background: white;
    }

    .product-card {
        backdrop-filter: none;
        background: white;
    }

    .products {
        padding: 40px 0;
    }
}

/* 响应式 - 回到顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   彩蛋区域 - 朋友们
   ============================================ */
.motto-en {
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.motto-en:hover {
    color: var(--primary-color);
}

.easter-egg {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.easter-egg.unlocked {
    max-height: 3000px;
    opacity: 1;
    visibility: visible;
}

.easter-egg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(13, 148, 136, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.easter-egg-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.friend-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.friend-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
}

.friend-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--glass-border);
    transition: var(--transition-spring);
}

.friend-card:hover .friend-photo {
    transform: scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.friend-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* 彩蛋区域响应式 */
@media (max-width: 768px) {
    .easter-egg {
        padding: 80px 0;
    }
    
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .friend-card {
        padding: 24px 16px;
    }
    
    .friend-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
}
