:root {
    /* LOGO 核心品牌色彩 (资深设计师调修版) */
    --logo-blue: #004098;       /* 品牌深蓝 - 权威、技术 */
    --logo-cyan: #00A0E9;       /* 品牌水蓝 - 互联、创新 */
    --logo-green: #8FC31F;      /* 绿色瓣 - 增长、生机 */
    
    /* 界面基础色调 (Tech Light 2.0) */
    --bg-main: #F1F5F9;         /* 带蓝调的极浅灰 - 增加空气感 */
    --bg-white: #FFFFFF;
    --text-primary: #0F172A;    /* 极深蓝黑 - 替代纯黑，更柔和 */
    --text-secondary: #475569;  /* 中灰蓝 */
    --text-muted: #94A3B8;      /* 浅灰蓝 */
    
    /* 功能装饰色 */
    --border-light: rgba(148, 163, 184, 0.1);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-inner: inset 0 2px 4px 0 rgba(255, 255, 255, 0.5);
    
    --safe-area-bottom: env(safe-area-inset-bottom);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: calc(85px + var(--safe-area-bottom));
    -webkit-font-smoothing: antialiased;
}

.container {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 顶部背景装饰 */
.home-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: url('/static/web/img/home_bg.png') no-repeat center bottom;
    background-size: cover;
    z-index: 1;
}

/* 顶部 LOGO 区域 */
.header-logo-wrap {
    padding: 20px 0 10px 0; /* 增加呼吸空间 */
    position: relative;
    z-index: 30;
    width: 40%;
}

.header-logo {
    width: 100%; /* 保证比例不被拉伸 */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    display: block;
}

/* 轮播图 - 软质感圆角卡片 */
.carousel {
    width: 100%; /* 恢复全宽 */
    height: 190px;
    background: #E2E8F0;
    border-radius: 20px;
    margin-top: 5px; 
    margin-bottom: 20px; /* 增加下方间距，不再重叠 */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    z-index: 5; /* 降低层级，让 LOGO 区域在最前 */
}

.carousel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0; /* 禁止收缩，确保单图占据全屏 */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* 防止图片被拖动干扰手势 */
}

/* 轮播指示器容器 */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    width: 18px; /* 激活时变为长条 */
    background: #fff;
    border-radius: 3px;
}

/* 公告栏 - 极简品牌感 */
.notice-bar {
    margin: 20px 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-light);
}

.notice-icon {
    color: var(--logo-blue);
    font-size: 14px;
    opacity: 0.8;
}

.notice-content {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 扫一扫 - 品牌核心交互点 (LOGO 精髓版) */
.scan-section {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.scan-btn {
    width: 200px;
    height: 200px;
    background: linear-gradient(145deg, var(--logo-blue), var(--logo-cyan));
    border-radius: 56px; /* Squircle 形状比正圆更现代 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 64, 152, 0.15);
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scan-btn:active {
    transform: scale(0.94);
    box-shadow: 0 10px 20px rgba(0, 64, 152, 0.1);
}

/* LOGO 数字像素碎块模拟 */
.scan-btn::before, .scan-btn::after {
    content: '';
    position: absolute;
    background: var(--logo-cyan);
    opacity: 0.6;
    border-radius: 2px;
    animation: pixelFloat 3s infinite;
}

.scan-btn::before {
    width: 6px; height: 6px;
    top: -10px; right: 20px;
    animation-delay: 0.5s;
}

.scan-btn::after {
    width: 4px; height: 4px;
    bottom: 20px; left: -15px;
    animation-delay: 1.2s;
}

@keyframes pixelFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(5px, -10px); opacity: 0.6; }
}

.scan-svg {
    width: 64px;
    height: 64px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.scan-line-svg {
    animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
    0%, 100% { transform: translateY(-4px); opacity: 0.5; }
    50% { transform: translateY(4px); opacity: 1; }
}

.scan-text {
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
}

.scan-tip-container {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 64, 152, 0.05);
    padding: 8px 18px;
    border-radius: 30px;
}

.scan-tip {
    color: var(--logo-blue);
    font-size: 13px;
    font-weight: 600;
}

/* 底部导航已迁移至 base.css */
