/* ==================== 配色规范 ==================== */
:root {
    /* 主色调 - 一果一鲜 */
    --primary-fruit: #ff6b6b;
    --primary-fruit-dark: #ee5a24;
    --primary-fruit-light: #ffa502;
    
    /* 主色调 - 兴安山臻 */
    --primary-forest: #27ae60;
    --primary-forest-dark: #2ecc71;
    --primary-forest-light: #2ecc71;
    
    /* 背景色 */
    --bg-primary: #fff5f7;
    --bg-secondary: #fef6f0;
    --bg-tertiary: #f0f9ff;
    --bg-white: #ffffff;
    
    /* 文字色 */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #95a5a6;
    --text-white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.12);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 35px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 图标和Emoji优化 ==================== */

/* 通用图标样式 */
.icon-emoji {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.icon-emoji:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.icon-emoji.bounce {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.icon-emoji.pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

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

.icon-emoji.shake {
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* 产品图标优化 */
.product-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.product-image .icon-emoji {
    font-size: 64px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 空状态图标优化 */
.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: inline-block;
    animation: emptyFloat 4s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(5px) rotate(2deg); }
}

/* 卡包图标优化 */
.card-type-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-block;
    animation: cardIconFloat 3s ease-in-out infinite;
}

@keyframes cardIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.1); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #fef6f0 50%, #f0f9ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #2d3436;
}

/* 顶部导航 */
.top-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ffa502 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.25), 0 4px 15px rgba(238, 90, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.top-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-top: 5px;
}

.header-info p {
    margin: 8px 0;
    font-size: 15px;
}

.header-info i {
    margin-right: 8px;
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
    display: flex;
    gap: 30px;
}

/* 左侧导航 */
.sidebar {
    width: 250px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

/* 左侧导航图标优化 */
.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #636e72;
    position: relative;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    transform: translateX(5px);
}

.nav-item:hover .icon-emoji {
    transform: scale(1.2) rotate(5deg);
}

.nav-item.active {
    color: #ff6b6b;
    background: linear-gradient(90deg, rgba(255,107,107,0.1) 0%, transparent 100%);
    font-weight: 600;
    transform: translateX(5px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ff6b6b;
    border-radius: 0 4px 4px 0;
}

.nav-item .icon-emoji {
    font-size: 22px;
    width: 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-item.active .icon-emoji {
    animation: iconPulse 2s ease-in-out infinite;
}

.badge {
    background: #ff6b6b;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* 右侧内容 */
.content-area {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    min-height: 600px;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

/* Hero区域 */
.hero-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255,107,107,0.05) 0%, rgba(238,90,36,0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-fruit);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-tips {
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.hero-tips p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-fruit);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* 区块标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-secondary);
}

.section-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
}

.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    color: #2d3436;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-fruit) 0%, var(--primary-fruit-dark) 100%);
    color: var(--text-white);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-large {
    padding: 12px 30px;
    font-size: 15px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background: var(--primary-fruit);
    color: var(--text-white);
}

.btn-close {
    background: var(--text-light);
    color: var(--text-white);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-fruit);
}

.redeem-section, .profile-section {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.redeem-section h4, .profile-section h4 {
    text-align: center;
    margin-bottom: 25px;
    color: #2d3436;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
    margin-top: 40px;
}

.tech-support {
    font-size: 12px;
    margin-top: 8px;
    color: #999;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.login-tip {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 10px 0 20px 0;
    text-align: center;
    line-height: 1.8;
}

.code-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.code-input-group input {
    flex: 1;
}

.btn-send-code {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--text-white);
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-send-code:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

.btn-send-code:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* ==================== 加载状态和动画（PC端） ==================== */

/* 页面加载遮罩 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 旋转加载器 */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--primary-fruit);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 脉冲加载器 */
.spinner-pulse {
    display: flex;
    gap: 8px;
}

.spinner-pulse span {
    width: 12px;
    height: 12px;
    background: var(--primary-fruit);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.spinner-pulse span:nth-child(1) { animation-delay: -0.32s; }
.spinner-pulse span:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading span {
    visibility: hidden;
}

/* 卡片加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-rect {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
}

/* 页面进入动画 */
.content-page {
    animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮点击反馈 */
.btn:active {
    transform: scale(0.95);
}

/* 卡片悬停增强 */
.product-card, .feature-card {
    position: relative;
    overflow: hidden;
}

.product-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before,
.feature-card:hover::before {
    left: 100%;
}

/* 成功提示动画 */
.success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--primary-forest) 0%, var(--primary-forest-dark) 100%);
    color: var(--text-white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
}

.success-toast .icon-emoji {
    font-size: 24px;
}

/* 错误提示动画 */
.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--text-white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
}

.error-toast .icon-emoji {
    font-size: 24px;
}

/* 输入框聚焦动画 */
input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* 导航切换动画 */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-fruit);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-item.active::after {
    width: 40px;
}

/* ==================== 空状态和提示优化（PC端） ==================== */

/* 空状态基础样式 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 24px;
    display: inline-block;
    animation: emptyFloat 4s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(10px) rotate(3deg); }
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-action {
    display: inline-block;
}

/* 空购物车 */
.empty-cart {
    background: linear-gradient(135deg, rgba(255,107,107,0.05) 0%, rgba(238,90,36,0.05) 100%);
}

.empty-cart .empty-state-icon {
    animation: cartEmpty 3s ease-in-out infinite;
}

@keyframes cartEmpty {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* 空卡包 */
.empty-cards {
    background: linear-gradient(135deg, rgba(39,174,96,0.05) 0%, rgba(46,204,113,0.05) 100%);
}

.empty-cards .empty-state-icon {
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.08); }
}

/* 提示信息优化 */
.tip-box {
    background: linear-gradient(135deg, rgba(255,193,7,0.1) 0%, rgba(255,152,0,0.1) 100%);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tip-box-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-box-content {
    flex: 1;
}

.tip-box-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 15px;
}

.tip-box-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 成功提示 */
.success-tip {
    background: linear-gradient(135deg, rgba(39,174,96,0.1) 0%, rgba(46,204,113,0.1) 100%);
    border-color: rgba(39,174,96,0.3);
}

/* 错误提示 */
.error-tip {
    background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(192,57,43,0.1) 100%);
    border-color: rgba(231,76,60,0.3);
}

/* 信息提示 */
.info-tip {
    background: linear-gradient(135deg, rgba(52,152,219,0.1) 0%, rgba(41,128,185,0.1) 100%);
    border-color: rgba(52,152,219,0.3);
}

/* 标签提示 */
.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
}

.tag-primary {
    background: linear-gradient(135deg, var(--primary-fruit) 0%, var(--primary-fruit-dark) 100%);
    color: var(--text-white);
}

.tag-success {
    background: linear-gradient(135deg, var(--primary-forest) 0%, var(--primary-forest-dark) 100%);
    color: var(--text-white);
}

.tag-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--text-white);
}

.tag-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: var(--text-white);
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-secondary);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-fruit) 0%, var(--primary-fruit-dark) 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== 响应式布局优化（PC端） ==================== */

/* 超大屏幕（宽屏显示器） */
@media (min-width: 1600px) {
    .main-content {
        max-width: 1600px;
    }
    
    .header-content {
        max-width: 1600px;
    }
    
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-area {
        padding: 40px;
    }
}

/* 大屏幕（标准桌面） */
@media (min-width: 1200px) and (max-width: 1599px) {
    .main-content {
        max-width: 1400px;
    }
    
    .header-content {
        max-width: 1400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕（小桌面/大笔记本） */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .header-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .sidebar {
        width: 220px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-area {
        padding: 25px;
    }
}

/* 平板横屏 */
@media (min-width: 768px) and (max-width: 991px) {
    .main-content {
        flex-direction: column;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .header-content {
        max-width: 100%;
        padding: 0 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 12px 20px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-area {
        padding: 20px;
        min-height: auto;
    }
    
    .hero-section {
        padding: 30px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .redeem-section,
    .profile-section {
        max-width: 100%;
    }
}

/* 平板竖屏 */
@media (min-width: 576px) and (max-width: 767px) {
    .main-content {
        flex-direction: column;
        max-width: 100%;
        padding: 0 12px;
    }
    
    .header-content {
        max-width: 100%;
        padding: 0 12px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .header-info p {
        font-size: 13px;
        margin: 5px 0;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 10px 15px;
        flex: 1;
        min-width: 100px;
        justify-content: center;
        font-size: 13px;
    }
    
    .nav-item .icon-emoji {
        font-size: 18px;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .content-area {
        padding: 15px;
        min-height: auto;
        border-radius: 12px;
    }
    
    .hero-section {
        padding: 25px 20px;
    }
    
    .hero-section h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-tips {
        padding: 12px;
    }
    
    .hero-tips p {
        font-size: 13px;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .redeem-section,
    .profile-section {
        max-width: 100%;
        padding: 20px;
    }
    
    .steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        flex: 1;
        min-width: 80px;
    }
    
    .empty-state {
        padding: 50px 20px;
    }
    
    .empty-state-icon {
        font-size: 64px;
    }
    
    .empty-state-title {
        font-size: 18px;
    }
    
    .empty-state-desc {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 25px;
        max-width: 100%;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .tip-box {
        padding: 12px 16px;
    }
    
    .tip-box-icon {
        font-size: 18px;
    }
    
    .tip-box-title {
        font-size: 13px;
    }
    
    .tip-box-text {
        font-size: 12px;
    }
}

/* 手机横屏/竖屏 */
@media (max-width: 575px) {
    body {
        padding-bottom: 0;
    }
    
    .main-content {
        flex-direction: column;
        max-width: 100%;
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .top-header {
        padding: 20px 0;
    }
    
    .header-content {
        max-width: 100%;
        padding: 0 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo h1 .icon-emoji {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .header-info {
        display: none;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 12px;
        border-radius: 12px;
        padding: 10px 0;
    }
    
    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .nav-item {
        padding: 8px 10px;
        flex-direction: column;
        gap: 4px;
        min-width: auto;
        font-size: 11px;
    }
    
    .nav-item .icon-emoji {
        font-size: 20px;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .badge {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card i {
        font-size: 36px;
    }
    
    .content-area {
        padding: 15px;
        min-height: auto;
        border-radius: 12px;
    }
    
    .hero-section {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .hero-section h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .hero-section h2 .icon-emoji {
        font-size: 18px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-tips {
        padding: 10px;
    }
    
    .hero-tips p {
        font-size: 12px;
    }
    
    .hero-tips .icon-emoji {
        font-size: 14px;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .section-title h3 {
        font-size: 16px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .redeem-section,
    .profile-section {
        max-width: 100%;
        padding: 18px;
        border-radius: 12px;
    }
    
    .redeem-section h4,
    .profile-section h4 {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .code-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .code-input-group input {
        width: 100%;
    }
    
    .btn-send-code {
        width: 100%;
        padding: 10px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    .steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        flex: 1;
        min-width: 70px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 11px;
        max-width: 70px;
    }
    
    .empty-state {
        padding: 40px 15px;
        margin: 15px 0;
    }
    
    .empty-state-icon {
        font-size: 56px;
        margin-bottom: 15px;
    }
    
    .empty-state-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .empty-state-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 100%;
        width: 92%;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .login-tip {
        font-size: 11px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .tip-box {
        padding: 12px 14px;
        margin: 12px 0;
        border-radius: 10px;
        gap: 10px;
    }
    
    .tip-box-icon {
        font-size: 16px;
    }
    
    .tip-box-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .tip-box-text {
        font-size: 12px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 11px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    
    .progress-bar {
        height: 8px;
        margin: 8px 0;
    }
}

/* 减少动画模式（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner,
    .spinner-pulse {
        animation: none !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .product-card,
    .feature-card,
    .content-area,
    .sidebar {
        border: 1px solid #000;
    }
}

/* 打印样式优化 */
@media print {
    .sidebar,
    .nav-item,
    .btn,
    .modal,
    .success-toast,
    .error-toast {
        display: none !important;
    }
    
    .content-page {
        display: block !important;
    }
    
    body {
        background: white !important;
    }
    
    .main-content {
        display: block !important;
    }
    
    .product-card,
    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
