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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --text-dark: #808080;
    --bg-color: #0a0a0a;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --border-color: #2a2a2a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

/* 科技感网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 动态光效背景 */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* 确保内容在背景之上 */
.header, .hero, .articles, .contact, .footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 导航栏发光效果 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
    opacity: 0.3;
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

/* 语言切换按钮 */
.lang-switch {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4) 0%, rgba(247, 147, 30, 0.4) 100%);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    transform: scale(1.05);
}

.lang-icon {
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.hero {
    background:
        radial-gradient(ellipse at top left, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(247, 147, 30, 0.15) 0%, transparent 50%),
        var(--bg-dark);
    color: white;
    padding: 10rem 0 8rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Hero 粒子效果背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(247, 147, 30, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 53, 0.3) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    background-position: 0 0, 50px 50px, 100px 100px;
    opacity: 0.3;
    animation: particleFloat 15s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.6));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Image Carousel */
.hero-carousel {
    margin-top: 4rem;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-image {
    min-width: calc(33.333% - 1.33rem);
    height: 400px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carousel-image:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(247, 147, 30, 0.9) 100%);
    border: 2px solid rgba(255, 107, 53, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.carousel-nav:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    border-color: var(--primary-color);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Articles Section */
.articles {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.article-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

/* 卡片发光边框效果 */
.article-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 30%,
        var(--primary-color) 50%,
        transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3),
                0 0 30px rgba(255, 107, 53, 0.1);
}

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

.article-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
}

.placeholder-image {
    font-size: 5rem;
    filter: grayscale(100%);
    opacity: 0.3;
}

.article-content {
    padding: 2rem;
}

.article-date {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.article-title {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-dark);
    margin: 1rem 0;
    line-height: 1.8;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
    gap: 0.25rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    text-align: left;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.contact-item {
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 联系卡片扫描线效果 */
.contact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 107, 53, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: contactScan 3s linear infinite;
}

@keyframes contactScan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon img {
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* 鼠标跟随光效 */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

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

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 250px;
    }

    .carousel-image {
        min-width: 100%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
