/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px; /* 常见的移动端最大宽度 */
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05); /* 桌面端加个阴影更好看 */
}

/* 变量 */
:root {
    --primary-gold: #97652B; /* 文字金色 */
    --icon-blue: #0A1E3C;   /* 网格图标深蓝色 */
    --white: #ffffff;
    --border-color: #eee;
}

/* Banner 区域 */
.module-banner {
    position: relative;
    width: 100%;
    height: 280px; /* 增加高度以匹配原网页 */
    overflow: hidden;
    background-color: #000;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播图样式 */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* 使用原图亮度 */
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
    width: 12px;
    border-radius: 3px;
}

/* Banner 遮罩与文字 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 28, 50, 0.65) 0%, rgba(16, 28, 50, 0.35) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-start;
    padding: 25px 20px;
}

.banner-content {
    color: #fff;
    max-width: 65%;
}

.subtitle {
    color: #DEB887;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-style: italic;
    opacity: 0.9;
}

.main-title {
    font-size: 22px;
    font-weight: bold;
    color: #DEB887;
    margin-bottom: 10px;
    background: linear-gradient(to right, #e6cfa8, #c49965);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.2;
}

.features-list {
    list-style: none;
    font-size: 10px;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.features-list li {
    opacity: 0.9;
}

.vip-line-box {
    margin-top: 12px;
}

.vip-label {
    font-size: 10px;
    color: #aaa;
    display: block;
    margin-bottom: 0px;
    font-family: serif;
    font-style: italic;
}

.vip-number {
    font-size: 20px;
    color: #fff;
    font-family: serif;
    font-style: italic;
    font-weight: 500;
}

/* 悬浮按钮组 */
.floating-group {
    position: fixed;
    right: 20px;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 99;
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.float-circle {
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    margin-bottom: 4px;
}

.float-circle svg {
    width: 24px;
    height: 24px;
}

.float-text {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    text-shadow: none;
}

.share-btn .float-text,
.hotline-btn .float-text {
    color: #333;
    text-shadow: none;
}

/* 导航网格 */
.module-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px 0; /* 行间距 */
    padding: 30px 20px 40px 20px;
    background-color: #fff;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.nav-icon-wrapper {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    color: var(--icon-blue);
}

/* 底部导航 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    display: flex;
    border-top: 1px solid #e5e5e5;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.tab-item.active {
    color: var(--primary-gold);
}

.tab-item.active .tab-icon {
    /* 激活状态图标颜色 */
    color: var(--primary-gold);
}
