/* ==========================================================================
   贵州醇联科技有限公司 - 全局高级科技风设计系统
   ========================================================================== */

/* 变量声明 */
:root {
    /* 核心色彩 */
    --bg-primary: #070a13;
    --bg-secondary: #0d1222;
    --bg-card: rgba(20, 28, 52, 0.4);
    --bg-card-hover: rgba(28, 39, 72, 0.65);
    
    --color-cyan: #00e5ff;
    --color-cyan-glow: rgba(0, 229, 255, 0.4);
    --color-violet: #8a2be2;
    --color-violet-glow: rgba(138, 43, 226, 0.4);
    --color-orange: #ff5722;
    --color-orange-glow: rgba(255, 87, 34, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 渐变色 */
    --grad-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 100%);
    --grad-text: linear-gradient(90deg, #00e5ff 0%, #a855f7 50%, #ff5722 100%);
    
    /* 阴影与边框 */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-focus: 1px solid rgba(0, 229, 255, 0.4);
    --shadow-neon: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-cyan-glow: 0 0 20px rgba(0, 229, 255, 0.2);
    
    /* 字体 */
    --font-primary: 'Outfit', 'Inter', 'Noto Sans SC', sans-serif;
    
    /* 过渡 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
    box-shadow: var(--shadow-cyan-glow);
}

/* 公用容器 & 栅格 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 高级毛玻璃类容器 */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-neon);
    transition: all var(--transition-normal);
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #070a13;
    background: var(--grad-primary);
    background-size: 200% auto;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
    text-align: center;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 13px 27px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-2px);
}

/* 渐变文本 */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 版块公共头部 */
.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-cyan);
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    margin: 0 auto 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   1. 预加载动画 (Loader)
   ========================================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-cyan);
    border-bottom-color: var(--color-violet);
    animation: spin 1s linear infinite;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.loader-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.loader-logo-img {
    height: 90px;
    width: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
    animation: loader-pulse 2s infinite ease-in-out;
}

@keyframes loader-pulse {
    0% { transform: scale(0.98); opacity: 0.8; box-shadow: 0 0 20px rgba(0, 229, 255, 0.15); }
    50% { transform: scale(1.02); opacity: 1; box-shadow: 0 0 35px rgba(0, 229, 255, 0.4); }
    100% { transform: scale(0.98); opacity: 0.8; box-shadow: 0 0 20px rgba(0, 229, 255, 0.15); }
}

.loader-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

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

/* ==========================================================================
   2. 顶部导航栏 (Header)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(7, 10, 19, 0.85);
    border-bottom: var(--border-glass);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    transition: all var(--transition-normal);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width var(--transition-fast);
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ==========================================================================
   3. 首屏 (Hero Section)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(13, 18, 34, 0.4) 0%, rgba(7, 10, 19, 1) 90%);
    padding-top: 100px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-cyan); }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: var(--border-glass);
    animation: float 6s ease-in-out infinite;
}

.glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    display: block;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s ease-out infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

@keyframes scroll-wheel {
    0% { opacity: 0; top: 6px; }
    30% { opacity: 1; }
    100% { opacity: 0; top: 22px; }
}

/* ==========================================================================
   4. 数据指标看板 (Stats Section)
   ========================================================================== */
.stats-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.02);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-cyan);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   5. 关于我们 (About Us)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-info {
    padding: 40px;
}

.about-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-desc strong {
    color: var(--text-primary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.about-feat-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feat-icon-box {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-cyan);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.about-feat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.about-feat-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D 拟态透视卡片 */
.perspective-card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 480px;
}

.perspective-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: var(--border-glass);
    transition: transform var(--transition-fast) ease-out;
}

.glow-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1), 0 0 30px rgba(138, 43, 226, 0.15);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* ==========================================================================
   6. 核心业务系统网格 (Projects Section)
   ========================================================================== */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--grad-primary);
    color: #070a13;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

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

.project-card {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
}

.project-card.hidden {
    display: none !important;
}

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

.project-cat {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 卡片专属色彩风格 */
.project-card[data-category="retail"] .project-cat {
    color: var(--color-cyan);
}
.project-card[data-category="local"] .project-cat {
    color: var(--color-violet);
}
.project-card[data-category="enterprise"] .project-cat {
    color: var(--color-orange);
}
.project-card[data-category="ai"] .project-cat {
    color: #d946ef;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.project-card:hover .project-icon {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
}

/* 翻转详细信息遮罩 */
.project-hover-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 18, 34, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    opacity: 0;
}

/* 仅在支持悬停的设备上触发 hover 显示 */
@media (hover: hover) {
    .project-card:hover .project-hover-content {
        top: 0;
        opacity: 1;
    }
}

/* 当卡片被点击激活时展示（支持所有设备） */
.project-card.show-details .project-hover-content {
    top: 0;
    opacity: 1;
}

.project-hover-content h4 {
    font-size: 1.1rem;
    color: var(--color-cyan);
    margin-bottom: 12px;
    font-weight: 700;
}

.project-hover-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   7. 流程时间线 (Solutions Section)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-cyan) 0%, var(--color-violet) 50%, var(--color-orange) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 100%;
    top: 38px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--color-cyan);
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px var(--color-cyan);
    transition: all var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: 0;
    border-color: var(--color-violet);
    box-shadow: 0 0 10px var(--color-violet);
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: var(--color-violet);
    box-shadow: 0 0 10px var(--color-violet);
}

.timeline-item:nth-child(4) .timeline-dot {
    border-color: var(--color-orange);
    box-shadow: 0 0 10px var(--color-orange);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--color-cyan);
}

.timeline-content {
    padding: 30px;
    position: relative;
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.timeline-item:nth-child(even) .timeline-step {
    color: var(--color-violet);
}

.timeline-item:nth-child(4) .timeline-step {
    color: var(--color-orange);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   8. 联系我们 (Contact Section)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 当表单面板存在且未被隐藏时，恢复为双列布局 */
.contact-grid:has(.contact-form-panel:not([style*="display: none"])) {
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-info-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: all var(--transition-normal);
}

/* 当联系面板独占满屏时，内部联系条目在大屏幕上横向并排以充实画面 */
.contact-grid:not(:has(.contact-form-panel:not([style*="display: none"]))) .contact-info-panel {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-grid:not(:has(.contact-form-panel:not([style*="display: none"]))) .contact-detail-item {
    flex: 1 1 280px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    color: var(--color-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.contact-detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-detail-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-panel {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}

/* ==========================================================================
   9. 页脚与备案 (Footer)
   ========================================================================== */
.footer {
    background: #04060d;
    padding: 80px 0 40px 0;
    border-top: var(--border-glass);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 450px;
}

.footer-brand .logo-text {
    font-size: 1.6rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-wrapper .logo-text {
    margin-bottom: 0;
    display: inline-block;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-logo-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links-group h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.beian a {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.beian a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   10. 返回顶部与交互元素 (Back to Top)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-neon);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: #070a13;
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* ==========================================================================
   11. 滚动触发动效样式 (Scroll Animations)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. 响应式布局媒体查询 (Media Queries)
   ========================================================================== */

/* 平板尺寸 (992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 20px !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机尺寸 (768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header {
        padding: 5px 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(7, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        z-index: 1050;
        transition: right var(--transition-normal);
        border-left: var(--border-glass);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    /* 汉堡按钮变换 */
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
