@charset "utf-8";
/* ============================================
   深蓝主题皮肤 - Theme Dark Blue
   ============================================ */

/* === 基础变量 === */
:root {
    --primary-blue: #1a3a8a;
    --primary-dark: #0a1e5c;
    --primary-gradient: linear-gradient(180deg, #0a1e5c 0%, #1a3a8a 50%, #2a4faa 100%);
    --accent-orange: #ff7a2e;
    --accent-gold: #ffd700;
    --accent-red: #ff4757;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-bg: #ffffff;
    --card-radius: 12px;
    --section-gap: 12px;
    --body-bg: #f5f7fa;
}

/* === 重置与基础 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol, li { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; display: block; }
body {
    width: 100%;
    max-width: 512px;
    margin: 0 auto;
    background: var(--body-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* === 顶部深蓝区域 === */
.hero-section {
    padding: 20px 20px 30px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

/* 背景图 */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航栏 */
.hero-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.hero-location {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-actions svg {
    width: 22px;
    height: 22px;
    color: var(--text-white);
}

/* 主标题区 */
.hero-title {
    position: relative;
    z-index: 3;
    margin-bottom: 15px;
}

.hero-title h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title h1 span {
    background: linear-gradient(to top, #ff6a00 0%, #ffd700 40%, #fffbe6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
}

.hero-title .subtitle {
    font-size: 17px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(78, 255, 200, 0.2) 0%, rgba(0, 200, 255, 0.15) 100%);
    border: 1px solid rgba(78, 255, 200, 0.5);
    border-radius: 20px;
    padding: 5px 14px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(78, 255, 200, 0.25);
    color: #4effc8;
    text-shadow: 0 0 8px rgba(78, 255, 200, 0.5);
}

.hero-badge svg {
    fill: #4effc8;
    filter: drop-shadow(0 0 4px rgba(78, 255, 200, 0.6));
}

/* 滚动通知 */
.hero-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    margin: 12px 0;
    position: relative;
    z-index: 3;
}

.hero-notice .notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-notice .notice-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 奖杯装饰 */
.hero-trophy {
    position: absolute;
    right: 30px;
    top: 60px;
    width: 100px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 金币装饰 - 围绕奖杯周围 */
.hero-coin {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.hero-coin-1 {
    top: 55px; right: 150px;
    width: 24px; height: 24px;
    animation: float 2.5s ease-in-out infinite 0.5s;
}
.hero-coin-2 {
    top: 170px; right: 155px;
    width: 20px; height: 20px;
    animation: float 2s ease-in-out infinite 1s;
}
.hero-coin-3 {
    top: 130px; right: 10px;
    width: 18px; height: 18px;
    animation: float 3s ease-in-out infinite 0.3s;
}
.hero-coin-4 {
    top: 50px; right: 60px;
    width: 16px; height: 16px;
    animation: float 2.8s ease-in-out infinite 1.5s;
}

/* 闪光装饰 - 围绕奖杯周围缩小 */
.hero-sparkle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.hero-sparkle-1 {
    top: 60px; right: 130px;
    width: 5px; height: 5px;
    animation: twinkle 2s ease-in-out infinite;
}
.hero-sparkle-2 {
    top: 80px; right: 20px;
    width: 5px; height: 5px;
    animation: twinkle 2.5s ease-in-out infinite 0.8s;
}
.hero-sparkle-3 {
    top: 150px; right: 145px;
    width: 10px; height: 10px;
    animation: twinkle 1.8s ease-in-out infinite 0.4s;
}
.hero-sparkle-4 {
    top: 180px; right: 40px;
    width: 8px; height: 8px;
    animation: twinkle 2.2s ease-in-out infinite 1.2s;
}
.hero-sparkle-5 {
    top: 45px; right: 95px;
    width: 7px; height: 7px;
    animation: twinkle 2.8s ease-in-out infinite 0.6s;
}
.hero-sparkle-6 {
    top: 110px; right: 155px;
    width: 9px; height: 9px;
    animation: twinkle 2s ease-in-out infinite 1.5s;
}

/* 上升箭头 - 放在badge内 */
.badge-arrow {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
    animation: arrowUp 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

@keyframes arrowUp {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}


/* === 数据统计区 === */
.stats-section {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 10px;
    margin: 15px 0;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.stat-value .unit {
    font-size: 12px;
    font-weight: 500;
}

.stat-icon {
    width: 20px;
    height: 20px;
    margin: 0 auto 4px;
    opacity: 0.8;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === 补贴进度条 === */
.subsidy-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 14px;
    margin: 12px 0;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subsidy-tag {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 10px;
}

.subsidy-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-white);
    font-weight: 500;
}

.subsidy-text strong {
    color: var(--accent-gold);
    font-size: 18px;
    margin: 0 2px;
}

.subsidy-link {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === 双按钮CTA === */
.cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    position: relative;
    z-index: 3;
}

.cta-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:active {
    transform: scale(0.96);
}

.cta-btn-primary {
    background: linear-gradient(135deg, #2a5fea 0%, #1a3fba 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(26, 63, 186, 0.4);
}

.cta-btn-secondary {
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5722 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.cta-btn .btn-title {
    font-size: 18px;
    font-weight: 800;
}

.cta-btn .btn-desc {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

/* === 功能入口网格 === */
.service-grid {
    background: var(--card-bg);
    margin: var(--section-gap) 12px;
    border-radius: var(--card-radius);
    padding: 20px 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-grid-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px 5px;
}

.service-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.service-entry:active {
    transform: scale(0.92);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.service-icon.icon-phone { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.service-icon.icon-electric { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.service-icon.icon-water { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.service-icon.icon-gas { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.service-icon.icon-jd { background: linear-gradient(135deg, #ff5858 0%, #f09819 100%); }
.service-icon.icon-oil { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.service-name {
    font-size: 12px;
    color: #333;
    text-align: center;
}

.service-discount {
    font-size: 10px;
    color: #999;
}

/* === 新人福利区 === */
.welfare-section {
    background: var(--card-bg);
    margin: var(--section-gap) 12px;
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.welfare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.welfare-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.welfare-header .tag {
    font-size: 11px;
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.welfare-item {
    text-align: center;
    padding: 12px 8px;
    background: #fef9f0;
    border-radius: 10px;
    position: relative;
}

.welfare-item.highlight {
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5722 100%);
    color: #fff;
}

.welfare-item .welfare-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.welfare-item .welfare-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-red);
}

.welfare-item .welfare-value .currency {
    font-size: 12px;
}

.welfare-item.highlight .welfare-value {
    color: #fff;
}

.welfare-item .welfare-desc {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.welfare-item.highlight .welfare-desc {
    color: rgba(255, 255, 255, 0.85);
}


/* === 底部导航栏 === */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 512px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 999;
    border-top: none;
    border-radius: 20px 20px 0 0;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.tab-item svg {
    width: 22px;
    height: 22px;
    color: #b0b8c9;
    transition: all 0.3s ease;
}

.tab-item span {
    font-size: 11px;
    color: #b0b8c9;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-item.active {
    position: relative;
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

.tab-item.active svg {
    color: #1a3a8a;
    filter: drop-shadow(0 2px 4px rgba(26, 58, 138, 0.3));
    transform: scale(1.1);
}

.tab-item.active span {
    color: #1a3a8a;
    font-weight: 700;
}

/* === 滚动公告区（页面内） === */
.notice-bar {
    background: var(--card-bg);
    margin: var(--section-gap) 12px;
    border-radius: var(--card-radius);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.notice-bar .notice-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    color: var(--accent-orange);
}

.notice-bar .notice-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.notice-bar .marquee-list {
    display: flex;
    width: max-content;
    white-space: nowrap;
}

.notice-bar .marquee-msg {
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 24px;
}

.notice-bar .marquee-msg .user {
    color: #1890ff;
    font-weight: 500;
}

.notice-bar .marquee-msg .action {
    color: #666;
    margin: 0 3px;
}

.notice-bar .marquee-msg .type {
    color: #52c41a;
    font-weight: 500;
}

.notice-bar .marquee-msg .amount {
    color: #faad14;
    font-weight: bold;
}

/* === 优惠专区 === */
.promo-section {
    background: var(--card-bg);
    margin: var(--section-gap) 12px;
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.promo-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.promo-header .more {
    font-size: 12px;
    color: #999;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.promo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-item:active {
    transform: scale(0.96);
}

.promo-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.promo-item .promo-name {
    padding: 8px;
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* === 广告轮播 === */
.banner-section {
    margin: var(--section-gap) 12px 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 140px;
    position: relative;
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === 间距占位 === */
.h60 {
    height: 60px;
}

/* === 通用工具类 === */
.clear { clear: both; }
.hidden { display: none; }

/* === 页面过渡动画 === */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 响应式适配 === */
@media (max-width: 360px) {
    .hero-title h1 { font-size: 22px; }
    .stat-value { font-size: 16px; }
    .service-grid-inner { gap: 10px 2px; }
    .service-icon { width: 42px; height: 42px; }
    .cta-btn .btn-title { font-size: 16px; }
}
