/* 腾讯云风格样式 */
:root {
    --tc-primary: #0052D9;
    --tc-primary-hover: #0047B8;
    --tc-secondary: #00A870;
    --tc-text-primary: #1D2129;
    --tc-text-secondary: #4E5969;
    --tc-text-tertiary: #86909C;
    --tc-border: #E5E6EB;
    --tc-border-light: #F2F3F5;
    --tc-bg-primary: #FFFFFF;
    --tc-bg-secondary: #F7F8FA;
    --tc-bg-tertiary: #F2F3F5;
    --tc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --tc-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --tc-radius: 8px;
    --tc-radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--tc-text-primary);
    margin: 0;
    padding: 0;
    background-color: var(--tc-bg-secondary);
    line-height: 1.6;
}

/* 容器 - 添加顶部边距避免头部遮挡 */
.tc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px; /* 为固定头部留出空间 */
    min-height: 100vh; /* 确保页面至少占满整个视口高度 */
}

/* 页面头部操作区域 */
.tc-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 24px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--tc-border-light);
}

/* 返回按钮区域 */
.tc-back-section {
    display: flex;
    align-items: center;
}

.tc-back-btn {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--tc-bg-tertiary);
    color: var(--tc-text-secondary);
    text-decoration: none;
    border-radius: var(--tc-radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--tc-border-light);
}

.tc-back-btn:hover {
    background: var(--tc-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

.tc-back-icon {
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* 搜索区域 */
.tc-search-section {
    display: flex;
    align-items: center;
}

.tc-search-box {
    display: flex;
    align-items: center;
    background: var(--tc-bg-primary);
    border: 1px solid var(--tc-border-light);
    border-radius: var(--tc-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tc-search-input {
    width: 300px;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--tc-text-primary);
    background: transparent;
}

.tc-search-input::placeholder {
    color: var(--tc-text-tertiary);
}

.tc-search-input:focus {
    background: var(--tc-bg-secondary);
}

.tc-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--tc-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tc-search-btn:hover {
    background: var(--tc-primary-hover);
}

.tc-search-icon {
    font-size: 16px;
}

/* 搜索结果提示 */
.tc-search-results {
    grid-column: 1 / -1;
    padding: 16px 24px;
    margin-bottom: 16px;
    border-radius: var(--tc-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.tc-search-success {
    background: #F6FFED;
    color: #52C41A;
    border: 1px solid #B7EB8F;
}

.tc-search-no-results {
    background: #FFF2E8;
    color: #FA541C;
    border: 1px solid #FFD8BF;
}

/* 统一的主容器 - 包含导航和产品列表 */
.tc-main-section {
    background: var(--tc-bg-primary);
    box-shadow: var(--tc-shadow);
    border: 1px solid var(--tc-border-light);
    overflow: hidden;
}

/* 导航区域 */
.tc-nav-section {
    padding: 24px;
    border-bottom: 1px solid var(--tc-border-light);
    background: var(--tc-bg-primary);
}

.tc-nav-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-nav-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tc-nav-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text-secondary);
    min-width: 80px;
    flex-shrink: 0;
}

.tc-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-nav-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--tc-bg-tertiary);
    color: var(--tc-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tc-nav-link:hover {
    background: var(--tc-primary);
    color: white;
    transform: translateY(-1px);
}

.tc-nav-link.tc-active {
    background: var(--tc-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

/* 导航文本样式 - 用于显示已选择的产品规格 */
.tc-nav-text {
    display: inline-block;
    padding: 8px 16px;
    background: #F6FFED;
    color: #52C41A;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #B7EB8F;
}

/* 产品列表区域 - 不居中显示 */
.tc-products-section {
    padding: 48px 24px;
    background: var(--tc-bg-primary);
    min-height: 600px; /* 增加产品区域的最小高度 */
}

.tc-products-grid-left {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: start;
}

/* 产品卡片 - 去掉圆角 */
.tc-product-card-no-radius {
    background: var(--tc-bg-primary);
    padding: 24px;
    box-shadow: var(--tc-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tc-border-light);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 280px; /* 增加卡片最小高度 */
    display: flex;
    flex-direction: column;
}

.tc-product-card-no-radius:hover {
    transform: translateY(-4px);
    box-shadow: var(--tc-shadow-hover);
    border-color: var(--tc-primary);
}

/* 产品徽章 - 只在有{tag}时显示 */
.tc-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tc-secondary);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.tc-product-header {
    margin-bottom: 16px;
}

.tc-product-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--tc-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tc-product-content {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.tc-product-info {
    font-size: 14px;
    color: var(--tc-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.tc-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tc-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

.tc-tag-stock {
    background: #FFF2E8;
    color: #FA541C;
    border: 1px solid #FFD8BF;
}

.tc-tag-agent {
    background: #F6FFED;
    color: #52C41A;
    border: 1px solid #B7EB8F;
}

.tc-highlight-tag {
    background: #E6F7FF;
    color: var(--tc-primary);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.tc-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tc-border-light);
}

.tc-product-price {
    display: flex;
    align-items: baseline;
}

.tc-price-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #FA541C;
}

.tc-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #FA541C;
    margin: 0 4px;
}

.tc-price-period {
    font-size: 14px;
    color: var(--tc-text-tertiary);
}

/* 按钮样式 */
.tc-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tc-btn-primary {
    background: var(--tc-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

.tc-btn-primary:hover {
    background: var(--tc-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.4);
}

.tc-btn-disabled {
    background: var(--tc-bg-tertiary);
    color: var(--tc-text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.tc-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.tc-btn-with-details {
    background: var(--tc-secondary);
}

.tc-btn-with-details:hover {
    background: #00995C;
}

/* 详情项样式 */
.tc-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--tc-border-light);
}

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

.tc-detail-label {
    color: var(--tc-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.tc-detail-value {
    color: var(--tc-text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* 服务使用须知 */
.tc-page-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tc-border-light);
}

.tc-notice-content {
    background: #FFF7E6;
    border: 1px solid #FFE58F;
    border-radius: var(--tc-radius);
    padding: 24px;
}

.tc-notice-title {
    font-size: 18px;
    font-weight: 600;
    color: #D46B08;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
}

.tc-notice-title:before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 20px;
}

.tc-notice-text {
    font-size: 14px;
    color: #8B4513;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tc-products-grid-left {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .tc-products-grid-left {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tc-container {
        padding: 0 16px;
        margin-top: 60px; /* 移动端头部可能更小 */
    }
    
    .tc-header-actions {
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px 20px 20px;
    }
    
    .tc-search-box {
        width: 100%;
    }
    
    .tc-search-input {
        width: 100%;
        flex: 1;
    }
    
    .tc-nav-section {
        padding: 20px;
    }
    
    .tc-nav-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .tc-nav-label {
        min-width: auto;
    }
    
    .tc-products-section {
        padding: 24px 20px;
    }
    
    .tc-products-grid-left {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tc-product-card-no-radius {
        padding: 20px;
    }
    
    .tc-product-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .tc-btn {
        width: 100%;
    }
    
    .tc-notice-content {
        padding: 20px;
    }
    
    .tc-notice-title {
        font-size: 16px;
    }
    
    .tc-notice-text {
        font-size: 13px;
    }
    
    .tc-page-footer {
        margin-top: 32px;
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .tc-container {
        margin-top: 50px; /* 小屏设备头部更小 */
    }
    
    .tc-nav-section {
        padding: 16px;
    }
    
    .tc-products-section {
        padding: 20px 16px;
    }
    
    .tc-product-card-no-radius {
        padding: 16px;
    }
    
    .tc-product-title {
        font-size: 18px;
    }
    
    .tc-price-amount {
        font-size: 24px;
    }
} 