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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #0f2140 50%, #0a1628 100%);
    color: #e8e8e8;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 顶部导航 ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #0d1b33 0%, #152545 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-left, .nav-right {
    width: 40px;
    display: flex;
    align-items: center;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 20px;
    color: #d4af37;
}

.back-icon {
    font-size: 18px;
    color: #d4af37;
    cursor: pointer;
}

/* ===== 页面容器 ===== */
.page {
    display: none;
    padding-top: 50px;
    min-height: 100vh;
    padding-bottom: 80px;
}

.page.active {
    display: block;
}

/* ===== Hero Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #1a2d50 0%, #0d1b33 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 13px;
    color: #a0b4d0;
    margin-bottom: 15px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tag {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #d4af37;
}

/* ===== 行业切换 ===== */
.industry-switcher {
    padding: 15px 16px;
    background: rgba(13, 27, 51, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.industry-label {
    font-size: 12px;
    color: #8aa0c0;
    margin-right: 10px;
}

.industry-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.industry-tab {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 12px;
    color: #a0b4d0;
    cursor: pointer;
    transition: all 0.3s;
}

.industry-tab.active {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ===== 产品卡片 ===== */
.product-cards {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card {
    background: linear-gradient(145deg, #152545 0%, #0d1b33 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card.popular {
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.product-card.popular::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.card-badge.hot {
    background: linear-gradient(90deg, #ff6b6b, #d4af37);
    color: #fff;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.card-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.price-symbol {
    font-size: 14px;
    color: #d4af37;
    margin-right: 2px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
}

.price-unit {
    font-size: 12px;
    color: #8aa0c0;
    margin-left: 6px;
}

.card-features {
    list-style: none;
    margin-bottom: 15px;
}

.card-features li {
    padding: 5px 0;
    font-size: 13px;
    color: #c0d0e8;
}

.card-features li.disabled {
    color: #5a6a85;
    text-decoration: line-through;
}

.card-action {
    text-align: right;
    font-size: 13px;
    color: #d4af37;
    font-weight: 500;
}

/* ===== 核心优势 ===== */
.advantages-section {
    padding: 25px 16px;
    background: rgba(13, 27, 51, 0.6);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5));
}

.section-title::before {
    left: calc(50% - 70px);
}

.section-title::after {
    right: calc(50% - 70px);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), transparent);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.adv-item {
    background: rgba(21, 37, 69, 0.8);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.adv-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.adv-title {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 4px;
}

.adv-desc {
    font-size: 11px;
    color: #8aa0c0;
}

/* ===== 底部CTA ===== */
.bottom-cta {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(212, 175, 55, 0.1);
    margin: 20px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cta-text {
    font-size: 13px;
    color: #e8e8e8;
}

.cta-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #b8962d 100%);
    color: #0d1b33;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: #5a6a85;
    padding: 20px;
}

/* ===== 体验页面 ===== */
.version-badge {
    position: fixed;
    top: 60px;
    right: 16px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #d4af37, #b8962d);
    color: #0d1b33;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    z-index: 50;
}

.exp-function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 16px;
    background: rgba(13, 27, 51, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    background: rgba(21, 37, 69, 0.6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.exp-func-item.available {
    opacity: 1;
}

.exp-func-item:active {
    transform: scale(0.95);
}

.exp-func-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.exp-func-name {
    font-size: 11px;
    color: #c0d0e8;
}

.exp-func-item.available .exp-func-name {
    color: #d4af37;
}

/* ===== 体验区块 ===== */
.exp-section {
    display: none;
    padding: 15px 16px;
}

.exp-section.active {
    display: block;
}

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

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.section-sub {
    font-size: 11px;
    color: #8aa0c0;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 8px;
}

/* ===== 聊天区域 ===== */
.chat-container {
    height: 350px;
    overflow-y: auto;
    background: rgba(13, 27, 51, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: rgba(100, 150, 255, 0.2);
}

.chat-content {
    max-width: 70%;
    padding: 10px 14px;
    background: rgba(21, 37, 69, 0.9);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #e0e8f5;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message.user .chat-content {
    background: linear-gradient(135deg, #2a4a80, #1a3560);
    border-color: rgba(212, 175, 55, 0.2);
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(13, 27, 51, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    color: #e8e8e8;
    font-size: 14px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: rgba(212, 175, 55, 0.5);
}

.chat-input-area button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4af37, #b8962d);
    color: #0d1b33;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 商品列表 ===== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(21, 37, 69, 0.6);
    border-radius: 10px;
}

.product-img {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
}

/* ===== 会员中心 ===== */
.member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2d50 0%, #0d1b33 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.member-level {
    font-size: 12px;
    color: #d4af37;
}

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

.points-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
}

.points-label {
    font-size: 11px;
    color: #8aa0c0;
}

.member-menu {
    background: rgba(21, 37, 69, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    padding: 14px 16px;
    font-size: 14px;
    color: #c0d0e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
}

/* ===== 营销工具 ===== */
.marketing-tool textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    background: rgba(13, 27, 51, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #e8e8e8;
    font-size: 13px;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.generate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37, #b8962d);
    color: #0d1b33;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.marketing-result {
    background: rgba(21, 37, 69, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.result-title {
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 8px;
}

.result-content {
    font-size: 13px;
    color: #c0d0e8;
    line-height: 1.7;
}

/* ===== 数据看板 ===== */
.data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: linear-gradient(145deg, #152545 0%, #0d1b33 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #8aa0c0;
}

/* ===== 数字人 ===== */
.digital-human {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, #152545 0%, #0d1b33 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.digital-avatar {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
    animation: pulse 2s infinite;
}

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

.digital-name {
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 5px;
}

.digital-desc {
    font-size: 12px;
    color: #8aa0c0;
    margin-bottom: 20px;
}

.digital-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #d4af37, #b8962d);
    color: #0d1b33;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 购买引导 ===== */
.buy-guide {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 16px;
    background: rgba(13, 27, 51, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 90;
}

.buy-text {
    font-size: 13px;
    color: #c0d0e8;
}

.buy-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #d4af37, #b8962d);
    color: #0d1b33;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 弹窗 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 80%;
    max-width: 320px;
    background: linear-gradient(145deg, #152545 0%, #0d1b33 100%);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 20px;
}

.modal-qr {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.modal-text {
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 5px;
}

.modal-text strong {
    color: #d4af37;
}

.modal-sub {
    font-size: 12px;
    color: #8aa0c0;
    margin-bottom: 20px;
}

.modal-close {
    padding: 10px 30px;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.modal-btn-primary {
    padding: 12px 40px;
    background: linear-gradient(135deg, #d4af37, #b8942d);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        position: relative;
    }
    
    .top-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .buy-guide {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}
