/* ==========================================================================
   1. 核心变量与全局重置
   ========================================================================== */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --card-bg: #111111;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 隐藏所有浏览器的滚动条 */
::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   2. 英雄区 (Hero Section)
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a0b2e 0%, #050505 100%);
    text-align: center;
    padding: 0 20px;
}

.hero-content .logo img {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.3));
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 800;
}

.typewriter {
    font-size: 1.2rem;
    color: #888;
    height: 30px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.btn {
    padding: 12px 35px;
    border: 1px solid var(--neon-blue);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    display: inline-block;
    background: rgba(0, 243, 255, 0.05);
}

.btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. 通用滚动逻辑 (案例集 & 媒体阵地)
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.8rem;
    color: var(--neon-purple);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 容器基础 */
.portfolio, .marquee-section {
    padding: 80px 0;
    overflow: hidden;
    width: 100%;
}

.portfolio-marquee-container, .marquee-container {
    width: 100%;
    display: flex;
    overflow: hidden;
}

/* 案例集滚动条 */
#js-marquee-content {
    display: flex !important;
    width: max-content;
    animation: scroll-x 30s linear infinite;
}

/* 媒体阵地滚动条 */
#js-media-marquee {
    display: flex !important;
    width: max-content;
    animation: scroll-x 35s linear infinite; /* 稍慢一点 */
}

.portfolio-marquee-content:hover, #js-media-marquee:hover {
    animation-play-state: paused;
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); } /* 配合 JS 克隆 4 份的逻辑 */
}

/* ==========================================================================
   4. 案例卡片与媒体项样式
   ========================================================================== */
/* 案例卡片 */
.portfolio-group { display: flex; flex-shrink: 0; }
.portfolio .card {
    width: 350px;
    margin: 0 15px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid #222;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio .card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.card-img {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
}

.card-info { padding: 20px; }
.card-info h3 { margin-bottom: 8px; font-size: 1.1rem; color: var(--neon-blue); }
.card-info p { font-size: 0.9rem; color: #777; }

/* 媒体阵地项 */
.marquee-group { display: flex; flex-shrink: 0; align-items: center; }
.brand-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 0 12px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.brand-logo { width: 22px; height: 22px; margin-right: 10px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { color: #aaa; font-size: 0.9rem; font-weight: 500; }

.brand-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    transform: scale(1.05);
}

.brand-item:hover .brand-name { color: var(--neon-blue); }


@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ==========================================================================
   5. 二维码弹窗 (Modal)
   ========================================================================== */
.qr-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.qr-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-card {
    background: #111;
    border: 1px solid var(--neon-blue);
    border-radius: 24px;
    padding: 35px;
    width: 640px;
    text-align: center;
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
}

.qr-overlay.active .qr-card { transform: scale(1); }

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-header h3 {
    color: var(--neon-blue);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.close-btn {
    font-size: 28px;
    color: #444;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover { color: var(--neon-purple); }

.qr-img-box {
    background: #fff;
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.qr-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.qr-card p {
    color: #666;
    font-size: 0.9rem;
}
/* --- 时间轴样式 --- */
.timeline-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

/* 中央垂直线 */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple), transparent);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-end; /* 默认右侧 */
    opacity: 0; /* 初始隐藏，用于动画 */
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* 奇数项在左侧 */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

/* 触发动画后的状态 */
.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 节点方块 */
.timeline-content {
    width: 40%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(5px);
}

.timeline-content:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.timeline-date {
    color: var(--neon-blue);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #888;
}

/* 节点中心圆点 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-blue);
    z-index: 10;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-dot { left: 30px; }
    .timeline-item, .timeline-item:nth-child(odd) { justify-content: flex-end; }
    .timeline-content { width: 80%; }
}