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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg: #070d19;
    --surface: #0f1729;
    --accent: #66d9ef;
    --accent-secondary: #4db8d8;
    --accent-dim: #3a9ab8;
    --text: #e8ecf4;
    --text-dim: #7a8ba3;
    --border: #1a2538;
}

body {
    font-family: 'Space Grotesk', -apple-system, 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../images/background.png') center/cover no-repeat fixed;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

/* 动态网格背景 */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    z-index: 0;
}

.gradient-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.orb-1 {
    background: linear-gradient(135deg, #66d9ef, #4db8d8);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.orb-2 {
    background: linear-gradient(135deg, #4db8d8, #66d9ef);
    bottom: -200px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse, pulse 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid rgba(26, 37, 56, 0.5);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 13, 25, 0.7);
    margin: 0 -40px;
    padding: 32px 40px;
    box-shadow: 0 1px 0 0 rgba(102, 217, 239, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #66d9ef, #4db8d8, #82e9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-menu {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(102, 217, 239, 0.08);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

/* Hero区域 - 非对称设计 */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

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

.hero-content h1 .highlight {
    color: var(--accent);
    display: block;
    background: linear-gradient(135deg, #66d9ef, #82e9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 217, 239, 0.05);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #66d9ef, #82e9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(102, 217, 239, 0.3));
    transition: all 0.5s ease;
}

.hero-visual img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 25px 70px rgba(102, 217, 239, 0.4));
}

/* 项目卡片 - 大胆设计 */
.projects {
    padding: 120px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-index {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 48px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #66d9ef, #4db8d8);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 16px 0 0 16px;
}

.project-item:hover {
    background: rgba(102, 217, 239, 0.05);
    border-color: var(--accent-dim);
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 8px 32px rgba(102, 217, 239, 0.15);
}

.project-item:hover::before {
    transform: scaleY(1);
}

.project-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #66d9ef, #82e9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.project-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-live {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-dev {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.project-link {
    font-size: 2rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: transparent;
}

.project-item:hover .project-link {
    color: var(--accent);
    background: rgba(102, 217, 239, 0.1);
    transform: translateX(8px) rotate(-45deg);
}

/* 团队部分 */
.team {
    padding: 120px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.member-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px;
    display: flex;
    gap: 32px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.member-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 217, 239, 0.2);
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.member-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.member-card:hover .member-avatar::after {
    opacity: 1;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-role {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* 联系区域 */
.contact {
    padding: 120px 0 80px;
}

.contact-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #66d9ef, #82e9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 18px 36px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #66d9ef, #4db8d8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    border-color: var(--accent);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 217, 239, 0.3);
}

.contact-btn:hover::before {
    opacity: 1;
}

/* 角色图片 */
.character {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 800px;
    height: 95vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: fadeInChar 1.2s ease 0.5s forwards;
    display: none;
}

.character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@keyframes fadeInChar {
    to {
        opacity: 0.92;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 音乐播放器 - 唱片风格 */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.player-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: spin 8s linear infinite;
    animation-play-state: paused;
    position: relative;
    transition: all 0.3s ease;
}

.player-disc:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 217, 239, 0.4);
}

.player-disc.playing {
    animation-play-state: running;
}

.player-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--border);
}

.player-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.player-panel {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 260px;
    background: rgba(15, 23, 41, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.player-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.panel-track {
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 500;
}

.panel-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 14px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66d9ef, #82e9ff);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

.panel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    border-color: var(--accent);
    background: rgba(102, 217, 239, 0.15);
    transform: scale(1.05);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.volume-icon {
    font-size: 0.75rem;
    color: var(--text-dim);
    cursor: pointer;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: var(--border);
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(102, 217, 239, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(102, 217, 239, 0.6);
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .character {
        width: 450px;
        height: 600px;
        right: 50px;
    }
}

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

    nav {
        margin: 0 -24px;
        padding: 24px 24px;
    }

    .nav-menu {
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-visual {
        height: 60vh;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 20px;
    }

    .project-number {
        font-size: 1.2rem;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .contact-content {
        padding: 48px 32px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .character {
        display: none;
    }

    .music-player {
        bottom: 20px;
        right: 20px;
    }

    .player-disc {
        width: 64px;
        height: 64px;
    }

    .player-panel {
        width: 220px;
        bottom: 74px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 32px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .nav-menu {
        gap: 16px;
        font-size: 0.85rem;
    }

    .project-item {
        padding: 24px;
    }

    .member-card {
        padding: 32px;
    }

    .contact-content {
        padding: 32px 24px;
    }
