:root {
    --bg-color: #020205;
    --text-primary: #e0e0e0;
    --text-secondary: #8c8c8c;
    --primary-color: #00ffcc; /* Cyberpunk cyan */
    --accent-color: #ff00ff; /* Neon pink */
    --font-heading: 'Orbitron', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.overlay-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(2, 2, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Cyber Buttons */
.btn-cyber {
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2) inset;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-cyber:hover {
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-cyber:hover::before {
    left: 0;
}

.btn-glitch {
    background: var(--primary-color);
    color: #000;
    padding: 0.6rem 1.5rem;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s ease;
}

.btn-glitch:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    text-align: center;
    padding: 0 20px;
}

.glitch-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    padding: 10px;
}

/* Glitch Animation */
.glitch {
    position: relative;
    color: white;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(21px, 9999px, 86px, 0); }
  5% { clip: rect(61px, 9999px, 8px, 0); transform: translate(2px, 2px); }
  10% { clip: rect(8px, 9999px, 72px, 0); }
  15% { clip: rect(65px, 9999px, 49px, 0); transform: translate(-2px, -2px); }
  20% { clip: rect(98px, 9999px, 4px, 0); }
  25% { clip: rect(2px, 9999px, 86px, 0); transform: translate(2px, -2px); }
  30% { clip: rect(48px, 9999px, 89px, 0); }
  35% { clip: rect(10px, 9999px, 23px, 0); transform: translate(-2px, 2px); }
  40% { clip: rect(76px, 9999px, 64px, 0); }
  45% { clip: rect(40px, 9999px, 88px, 0); transform: translate(2px, 2px); }
  50% { clip: rect(54px, 9999px, 14px, 0); }
  55% { clip: rect(47px, 9999px, 93px, 0); }
  100% { clip: rect(21px, 9999px, 86px, 0); }
}
@keyframes glitch-anim2 {
  0% { clip: rect(31px, 9999px, 43px, 0); }
  5% { clip: rect(11px, 9999px, 68px, 0); transform: translate(-2px, 2px); }
  10% { clip: rect(83px, 9999px, 5px, 0); }
  15% { clip: rect(36px, 9999px, 97px, 0); }
  20% { clip: rect(48px, 9999px, 81px, 0); transform: translate(2px, -2px); }
  25% { clip: rect(74px, 9999px, 25px, 0); }
  30% { clip: rect(29px, 9999px, 50px, 0); transform: translate(-2px, -2px); }
  35% { clip: rect(90px, 9999px, 64px, 0); }
  40% { clip: rect(15px, 9999px, 89px, 0); }
  45% { clip: rect(52px, 9999px, 2px, 0); transform: translate(2px, 2px); }
  50% { clip: rect(89px, 9999px, 44px, 0); }
  55% { clip: rect(33px, 9999px, 19px, 0); }
  100% { clip: rect(31px, 9999px, 43px, 0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    min-height: 2.4rem;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Features */
.features {
    padding: 5rem 5%;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.05));
    border-top: 1px solid rgba(0,255,204,0.1);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 4rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.holographic {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 3rem 2rem;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    backdrop-filter: blur(5px);
}

.holographic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(125deg, transparent 40%, rgba(0, 255, 204, 0.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: holo-shine 4s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes holo-shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.holographic:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 255, 204, 0.2), 
                inset 0 0 20px rgba(0, 255, 204, 0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--primary-color);
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.holographic h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.holographic p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
}

/* 装饰角 */
.holographic::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}
.deco-top {
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
}
