:root {
    --primary-color: #00f0ff;
    --secondary-color: #ff2a6d;
    --accent-color: #d300c5;
    --dark-bg: #050a1c;
    --light-text: #e0e0ff;
    --glow-primary: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 20px rgba(0, 240, 255, 0.5);
    --glow-secondary: 0 0 10px rgba(255, 42, 109, 0.7), 0 0 20px rgba(255, 42, 109, 0.5);
    --transition-speed: 0.3s;
}

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    z-index: -1;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: rgba(5, 10, 28, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-speed);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width:0;
    height: 2px;
    bottom: -5px;
    left:0;
    background-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width:100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

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

.glitch {
    position: relative;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 7s infinite linear alternate-reverse;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--light-text);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.6);
}

/* 通用区域标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: var(--glow-primary);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 域名故事区域样式 */
.domain-stories {
    padding: 8rem 2rem;
    position: relative;
}

.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: rgba(10, 25, 47, 0.6);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 240, 255, 0.3);
}

.story-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-domain {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.story-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.story-description {
    color: rgba(224, 224, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    align-self: flex-start;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 时间线区域样式 */
.timeline-section {
    padding: 8rem 2rem;
    background: rgba(10, 25, 47, 0.3);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: var(--glow-primary);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: var(--glow-primary);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -17px;
}

.right::after {
    left: -17px;
}

.timeline-content {
    padding: 20px;
    background: rgba(10, 25, 47, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

.timeline-year {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-primary);
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: rgba(224, 224, 255, 0.8);
    line-height: 1.6;
}

/* 关于区域样式 */
.about-section {
    padding: 8rem 2rem;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(10, 25, 47, 0.6);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.about-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-primary);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-item {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

/* 页脚样式 */
.footer {
    padding: 3rem 2rem;
    background: rgba(5, 10, 28, 0.9);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    margin-bottom: 1rem;
}

.footer p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: var(--glow-primary);
}

/* 动画关键帧 */
@keyframes glitch-anim {
    0% { clip: rect(44px, 9999px, 56px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    40% { clip: rect(27px, 9999px, 92px, 0); }
    60% { clip: rect(30px, 9999px, 76px, 0); }
    80% { clip: rect(86px, 9999px, 73px, 0); }
    100% { clip: rect(73px, 9999px, 50px, 0); }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 15px;
    }
    .right {
        left: 0%;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 10, 28, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 1.5rem 0;
    }
    .menu-toggle {
        display: block;
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-color);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-color);
    }
    .about-content {
        padding: 2rem 1.5rem;
    }
}