/* ========================================
   医药商城 - 全局样式
   ======================================== */

:root {
    --primary-color: #69d3f6;
    --primary-dark: #f5848c;
    --primary-light: #e8f8ff;
    --secondary-color: #52c41a;
    --accent-color: #f5848c;
    --header-bg: #69d3f6;
    --btn-bg: #f5848c;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e8e8e8;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   容器与布局
   ======================================== */

/* ========================================
   Header 样式
   ======================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo img{
	width: 300px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #69d3f6, #f5848c);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-search {
    flex: 1;
    width: 500px;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--btn-bg);
    box-shadow: 0 0 0 2px rgba(245, 132, 140, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

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

.search-btn {
    width: 40px;
    height: 36px;
    border: none;
    background: var(--btn-bg);
    color: white;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background: #e06979;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
}

.header-link:hover {
    color: var(--btn-bg);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Navigation */
.header-nav {
    background: var(--header-bg);
    /* width: 100%; */
    margin-left: calc(-50vw + 50%);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-link {
    padding: 12px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}
.main{
	overflow: hidden;
}
/* ========================================
   Banner Section
   ======================================== */

.banner-section {
    background: var(--bg-white);
    padding: 20px 0;
}

.banner-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    padding: 0 20px;
}

/* Category Sidebar */
.category-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.category-title {
    background: var(--header-bg);
    color: white;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    padding: 8px 0;
}

.category-item {
    position: relative;
}

.category-item:hover {
    background: var(--primary-light);
}

.category-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
}

.category-icon {
    font-size: 18px;
}

.category-name {
    flex: 1;
    font-size: 14px;
}

.category-item.has-sub > .category-link::after {
    content: '›';
    font-size: 16px;
    color: var(--text-light);
}

.sub-category {
    position: absolute;
    left: 100%;
    top: 0;
    width: 140px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.category-item:hover {
    background: var(--primary-light);
    z-index: 101;
}

.category-item:hover .sub-category {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-category a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sub-category a:hover {
    background: var(--primary-light);
    color: var(--btn-bg);
}

/* Banner Slider */
.banner-slider {
    flex: 1;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
}

.slider-wrapper {
    position: relative;
    height: 400px;
}

.slider-track {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.slide-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--btn-bg);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.slide-btn:hover {
    background: #e06979;
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
}

.banner-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

/* ========================================
   Products Section
   ======================================== */

.products-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

.product-block {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.more-link {
    color: var(--btn-bg);
    font-size: 14px;
}

.more-link:hover {
    color: #e06979;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-link {
    display: block;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: var(--accent-color);
    color: white;
}

.product-tag.new {
    background: var(--secondary-color);
}

.product-tag.hot {
    background: #ff4d4f;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.product-price::before {
    content: '$';
    font-size: 14px;
}

.add-cart-btn {
    padding: 6px 14px;
    border: 1px solid var(--btn-bg);
    background: transparent;
    color: var(--btn-bg);
    font-size: 13px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--btn-bg);
    color: white;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    background: var(--bg-white);
    padding: 40px 0;
    margin-top: 20px;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-bg);
    flex-shrink: 0;
}

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

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

/* ========================================
   Footer
   ======================================== */

.footer {
    background: #2a2a2a;
    color: #999;
    padding: 20px 0 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    font-size: 14px;
    color: #999;
}

.footer-section ul li a:hover {
    color: var(--btn-bg);
}

.contact-section .phone {
    font-size: 28px;
    font-weight: 700;
    color: var(--btn-bg);
    margin-bottom: 8px;
}

.contact-section .time {
    font-size: 13px;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    padding: 6px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
}

.social-link:hover {
    border-color: var(--btn-bg);
    color: var(--btn-bg);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--btn-bg);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========================================
   列表页特有样式
   ======================================== */

.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--btn-bg);
}

.breadcrumb span {
    margin: 0 8px;
}

.list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    gap: 20px;
}

.list-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-list li a:hover,
.filter-list li a.active {
    color: var(--btn-bg);
}
/* 可展开分类样式 */
.filter-list.category-list > li.has-sub {
    position: relative;
}

.filter-list.category-list > li.has-sub > a {
    padding-right: 24px;
}

.category-toggle {
    position: absolute;
    right: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.category-toggle:hover {
    color: var(--btn-bg);
}

.category-toggle svg {
    transition: transform 0.3s ease;
}

li.has-sub.open > .category-toggle svg {
    transform: rotate(180deg);
}

.sub-filter-list {
    display: none;
    padding-left: 12px;
    margin-top: 4px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 8px 8px 8px 12px;
}

li.has-sub.open > .sub-filter-list {
    display: block;
}

.sub-filter-list li {
    margin-bottom: 4px;
}

.sub-filter-list li a {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.sub-filter-list li a:hover,
.sub-filter-list li a.active {
    color: var(--btn-bg);
}
.list-main {
    flex: 1;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover,
.sort-btn.active {
    border-color: var(--btn-bg);
    color: var(--btn-bg);
    background: var(--primary-light);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination li a{
	padding: 0 10px;
	min-width: 36px;
	height: 36px;
	border: 1px solid var(--border-color);
	background: var(--bg-white);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	transition: var(--transition);
}
.pagination li a:hover,
.pagination li.active a{
    border-color: var(--btn-bg);
    color: var(--btn-bg);
    background: var(--primary-light);
}
/* 
.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    border-color: var(--btn-bg);
    color: var(--btn-bg);
    background: var(--primary-light);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
} */

/* ========================================
   详情页特有样式
   ======================================== */

.detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.detail-main {
    display: flex;
    gap: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
}

.detail-gallery {
    width: 400px;
    flex-shrink: 0;
}

.detail-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 12px;
    cursor: zoom-in;
    position: relative;
}

.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
}

.detail-thumb-list::-webkit-scrollbar {
    height: 4px;
}

.detail-thumb-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 2px;
}

.detail-thumb-list::-webkit-scrollbar-thumb {
    background: var(--btn-bg);
    border-radius: 2px;
}

.detail-thumb-list::-webkit-scrollbar-thumb:hover {
    background: #e06979;
}

.detail-thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.detail-thumb.active,
.detail-thumb:hover {
    border-color: var(--btn-bg);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    line-height: 1.8;
}

.detail-price-box {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.detail-price::before {
    content: '¥';
    font-size: 20px;
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 12px;
}

.detail-specs {
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-label {
    width: 80px;
    color: var(--text-secondary);
    font-size: 14px;
}

.spec-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
}

.detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-buy {
    flex: 1;
    padding: 14px 32px;
    border: none;
    background: var(--btn-bg);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    background: #e06979;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 132, 140, 0.4);
}

.btn-cart {
    padding: 14px 32px;
    border: 2px solid var(--btn-bg);
    background: transparent;
    color: var(--btn-bg);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--btn-bg);
    color: white;
}

/* 图片放大模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.active img {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

/* Detail Tabs */
.detail-tabs {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--btn-bg);
}

.tab-btn.active {
    color: var(--btn-bg);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--btn-bg);
}

.tab-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tab-panel p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table tr {
    border-bottom: 1px solid var(--border-color);
}

.param-table td {
    padding: 12px 8px;
    font-size: 14px;
}

.param-table td:first-child {
    width: 120px;
    color: var(--text-secondary);
}

.param-table td:last-child {
    color: var(--text-primary);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-container {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .category-item.has-sub .sub-category {
        display: none;
    }

    .slider-wrapper {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-main {
        flex-direction: column;
    }

    .detail-gallery {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 12px;
    }

    .header-actions {
        gap: 12px;
    }

    .nav-container {
        overflow-x: auto;
    }

    .nav-link {
        padding: 12px 14px;
        white-space: nowrap;
    }

    .slider-wrapper {
        height: 240px;
    }

    .slide-content {
        left: 20px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 18px;
    }

    .add-cart-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .list-sidebar {
        display: none;
    }

    .list-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .header-link span:not(.cart-count) {
        display: none;
    }

    .slider-wrapper {
        height: 180px;
    }

    .slider-btn {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-name {
        font-size: 18px;
    }

    .detail-price {
        font-size: 28px;
    }
}
