/* 首页样式 */
.home-container {
    padding: 20px;
    padding-bottom: 80px;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-text {
    display: flex;
    flex-direction: column;
}

.greeting {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.user-status {
    font-size: 12px;
    color: var(--text-light);
}

.vip-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, #F39C12 100%);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    color: var(--white);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-section p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.start-btn {
    background: var(--white);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 功能卡片 */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.feature-card p {
    font-size: 12px;
    color: var(--text-light);
}

/* 统计区域 */
.stats-section {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.nav-icon {
    font-size: 24px;
}

/* 对话页 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn, .menu-btn {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.expert-avatar {
    font-size: 24px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg);
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

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

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.message.user .msg-avatar {
    background: var(--secondary);
}

.msg-content {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    max-width: 75%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.message.user .msg-content {
    background: var(--primary);
    color: var(--white);
}

.msg-content p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.msg-content p:last-child {
    margin-bottom: 0;
}

.quick-replies {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.chat-input textarea {
    flex: 1;
    background: var(--bg);
    border: none;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 16px;
    resize: none;
    outline: none;
    max-height: 120px;
}

#send-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 会员页 */
.member-container {
    padding: 20px;
    padding-bottom: 80px;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.member-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 20px;
    font-weight: 600;
}

.member-status {
    font-size: 14px;
    color: var(--text-light);
}

.usage-section {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.usage-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.usage-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
}

.vip-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.vip-card {
    flex: 0 0 140px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    border: 2px solid var(--border);
}

.vip-card.popular {
    border-color: var(--primary);
}

.vip-card .vip-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    padding: 4px 12px;
}

.vip-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0 8px;
}

.vip-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vip-features {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.vip-features p {
    margin-bottom: 4px;
}

.vip-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.vip-btn.current {
    background: var(--text-light);
}

.member-menu {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.menu-item:active {
    background: var(--bg);
}

.menu-item span:first-child {
    font-size: 16px;
}

.menu-item span:last-child {
    color: var(--text-light);
}
