:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #171717;
    --bg-tertiary: #1f1f1f;
    --bg-glass: rgba(23, 23, 23, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.05);
    --bg-glass-dark: rgba(0, 0, 0, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #808080;
    --text-accent: #f0f0f0;

    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(255, 255, 255, 0.2);

    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 20px 64px rgba(0, 0, 0, 0.5);

    --gradient-primary: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-accent: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);

    --blur-glass: 12px;
    --blur-heavy: 20px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    --bg-primary: #f7f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f3f5;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-light: rgba(0, 0, 0, 0.04);
    --bg-glass-dark: rgba(0, 0, 0, 0.06);

    --text-primary: #0f0f12;
    --text-secondary: #3f3f46;
    --text-muted: #6b7280;
    --text-accent: #111111;

    --border-primary: rgba(0, 0, 0, 0.08);
    --border-secondary: rgba(0, 0, 0, 0.04);
    --border-accent: rgba(0, 0, 0, 0.18);

    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 12px 46px rgba(0, 0, 0, 0.16);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.22);

    --gradient-primary: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.04) 100%);
    --gradient-accent: linear-gradient(135deg, #111111 0%, #000000 100%);
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    antialiased: true;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: min(1200px, 95%);
    margin: 0 auto;
    padding: 0 20px;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    animation: pageLoad 0.8s ease-out 0.1s forwards;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-smooth);
}

.header.scrolled {
    background: var(--bg-glass-dark);
    border-bottom-color: var(--border-secondary);
    box-shadow: var(--shadow-soft);
}

.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand .logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.brand .logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform var(--transition-slow);
}

.brand:hover .logo::before {
    transform: rotate(45deg) translateX(100%);
}

.brand .text {
    display: flex;
    flex-direction: column;
}

.brand .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li {
    display: block;
}

.nav a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-glass-light);
    transition: left var(--transition-smooth);
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
    transform: translateY(-1px);
}

.nav a:hover::before {
    left: 0;
}

.nav a span {
    position: relative;
    z-index: 1;
}

.theme-toggle,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-toggle {
    display: none;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--bg-glass);
    transform: scale(1.05);
}

.main {
    flex: 1;
    margin-top: 72px;
}

.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 96px;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

:root[data-theme="light"] .hero-canvas {
    opacity: 0.5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp var(--transition-slow) ease-out;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 400;
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-smooth);
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(var(--blur-glass));
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 96px;
}

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.glass-card {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(var(--blur-glass));
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-medium);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

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

.footer-brand .logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 769px) {

    .footer-info,
    .footer-subtitle {
        text-align: left;
    }
}

.footer-subtitle a {
    vertical-align: middle;
}

@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 fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hero {
    animation: fadeInUp 1s ease-out;
}

.animate-hero-content {
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.animate-title {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.animate-subtitle {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.animate-actions {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

.animate-card {
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-product-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: fadeInScale 1s ease-out forwards;
}

.animate-future-card {
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-products {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-products.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.future-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.windlab-next:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-icon {
    transition: all 0.3s ease;
}

.product-card:hover .product-icon,
.future-product:hover .product-icon {
    transform: scale(1.1);
}

.windcraft-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
}

.windcraft-showcase img {
    object-fit: cover;
    object-position: center;
}

.windcraft-showcase:hover .image-overlay {
    opacity: 1 !important;
}

.windcraft-feature:hover {
    background: var(--bg-glass-light) !important;
    transform: translateX(8px) !important;
}

.windcraft-showcase {
    aspect-ratio: 16 / 9;
    max-height: 420px;
}

.windcraft-showcase.banner {
    aspect-ratio: 800 / 94;
    max-height: 220px;
}

.windcraft-card {
    --windcraft-left-max: 520px;
}

@media (max-width: 1024px) {
    .windcraft-showcase {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .windcraft-showcase {
        aspect-ratio: 16 / 9;
        max-height: none;
        height: auto;
        margin-top: 16px;
    }
}

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

    .header .inner {
        padding: 12px 0;
        height: 64px;
    }

    .main {
        margin-top: 64px;
    }

    .hero {
        min-height: calc(100vh - 64px);
        padding: 40px 0;
        scroll-margin-top: 80px;
    }

    .brand .text {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-glass);
        border-top: 1px solid var(--border-primary);
        backdrop-filter: blur(var(--blur-glass));
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }

    .nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 24px;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer .inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        order: 2;
    }

    .footer-brand {
        order: 1;
    }

    .windcraft-card .windcraft-info {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .windcraft-showcase {
        height: 200px !important;
        margin-top: 24px;
    }

    .windcraft-card>div[style*="grid"] {
        display: block !important;
        grid-template-columns: none !important;
    }
}

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

    .glass-card {
        padding: 20px;
    }

    .hero .subtitle {
        font-size: 16px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-accent);
}

/* 创始人卡片特殊样式 */
.founder-card {
    position: relative;
    overflow: hidden;
}

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

.founder-card:hover::before {
    left: 100%;
}

.founder-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--border-accent);
}

.founder-card img {
    transition: all 0.3s ease;
}

.founder-card:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.founder-card div:last-child {
    transition: color 0.3s ease;
}

.founder-card:hover div:last-child {
    color: var(--text-primary) !important;
}