/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 动画类 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

.animate-slideDown {
    animation: slideDown 0.6s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    font-size: 48px;
    color: var(--primary-color);
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--danger-color);
}

.toast-warning {
    background: var(--warning-color);
    color: #333;
}

.toast-info {
    background: var(--info-color);
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-top {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4m-30-28V2H4v4H0v2h4v4h2V8h4V6H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-top-left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.header-top-left i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #4fc3f7;
    font-size: 12px;
    margin-right: 6px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.language-switch span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.language-switch a {
    margin: 0 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 14px;
    border-radius: 15px;
    transition: var(--transition-fast);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switch a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.language-switch a.active {
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    border-color: #fff;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-actions a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
}

.user-actions a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.user-actions a + a::before {
    content: '|';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.header-main {
    padding: 18px 0;
    background: #fff;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo img {
    height: 50px;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 50px;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: var(--transition-fast);
    border-radius: 30px;
    font-size: 14px;
    display: block;
}

.main-nav ul li a:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.main-nav ul li a.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.main-nav ul li a.active::after {
    display: none;
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    padding: 11px 45px 11px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    width: 230px;
    transition: var(--transition-fast);
    font-size: 14px;
    background: #f8f9fa;
}

.search-form input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    width: 290px;
    background: #fff;
}

.search-form input::placeholder {
    color: #adb5bd;
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.search-form button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6540a6 100%);
    transform: scale(1.05);
}

.search-form button i {
    font-size: 12px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.cart-icon:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 15px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.4);
    animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 移动端汉堡菜单 - PC端隐藏 */
.header .header-main .mobile-menu-toggle {
    display: none !important;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 10px;
}

.header .mobile-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 10px;
    display: block;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.mobile-search-form {
    margin-bottom: 20px;
    display: flex;
}

.mobile-search-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    outline: none;
}

.mobile-search-form button {
    padding: 12px 20px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7) 0%, rgba(0, 198, 255, 0.5) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.8s ease forwards;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-btn:hover {
    background: var(--dark-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #fff;
    transition: var(--transition-normal);
    margin-left: 15px;
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

/* 公司介绍 */
.about-section {
    padding: 100px 0;
    background: var(--light-color);
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 16px;
    z-index: -1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 700;
}

.about-content p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    flex: 1;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    font-size: 52px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 产品展示 */
.products-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.product-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.hot {
    background: var(--danger-color);
    color: #fff;
}

.product-badge.new {
    background: var(--success-color);
    color: #fff;
}

.product-badge.sale {
    background: var(--warning-color);
    color: #333;
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.quick-view-btn,
.wishlist-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-btn:hover,
.wishlist-btn:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    height: 46px;
    overflow: hidden;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    height: 42px;
    overflow: hidden;
    line-height: 1.6;
}

.product-price {
    font-size: 26px;
    color: var(--danger-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-price span {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-indicator i {
    font-size: 12px;
}

.stock-indicator.in-stock {
    color: var(--success-color);
}

.stock-indicator.low-stock {
    color: var(--warning-color);
}

.stock-indicator.out-of-stock {
    color: var(--danger-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

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

.btn-secondary {
    background: var(--light-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 文章资讯 */
.articles-section {
    padding: 100px 0;
    background: var(--light-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    height: 56px;
    overflow: hidden;
}

.article-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    height: 72px;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time {
    background: var(--light-color);
    padding: 5px 12px;
    border-radius: 15px;
}

/* 物流运输 */
.shipping-section {
    padding: 100px 0;
}

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

.shipping-card {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.shipping-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 123, 255, 0.2);
}

.shipping-card i {
    font-size: 56px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    transition: transform var(--transition-fast);
}

.shipping-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.shipping-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.shipping-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.shipping-card .price-tag {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.shipping-card .days-tag {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* 底部 */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 16px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    margin-top: 50px;
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: transform var(--transition-fast);
}

.payment-methods img:hover {
    transform: scale(1.1);
}

/* 在线客服 */
.customer-service {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 999;
}

.service-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition-normal);
    animation: pulse 2s ease-in-out infinite;
}

.service-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
    animation: none;
}

.service-icon i {
    font-size: 22px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 表单样式 */
.form-section {
    padding: 100px 0;
    background: var(--light-color);
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-container .form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-container .form-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: var(--transition-fast);
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group .input-group {
    position: relative;
}

.form-group .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-group .input-group input {
    padding-left: 45px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.form-check label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-secondary);
}

.form-links {
    text-align: center;
    margin-top: 25px;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

/* 后台管理 */
.admin-sidebar {
    width: 260px;
    background: var(--dark-color);
    color: #fff;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    transition: width var(--transition-normal);
}

.admin-sidebar .logo {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-sidebar .logo h2 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-weight: 700;
}

.admin-sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.admin-sidebar ul li {
    margin-bottom: 5px;
}

.admin-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0 30px 30px 0;
    transition: var(--transition-normal);
    font-size: 15px;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background: rgba(0, 123, 255, 0.2);
    color: #fff;
    border-left: 3px solid var(--primary-color);
}

.admin-sidebar ul li a i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: var(--light-color);
    transition: margin-left var(--transition-normal);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.admin-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header .user-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-header .user-info span {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-header .user-info a {
    color: var(--text-muted);
    font-size: 20px;
    transition: color var(--transition-fast);
}

.admin-header .user-info a:hover {
    color: var(--danger-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

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

.stat-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card .value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

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

.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

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

.table-container th,
.table-container td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-container th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-container tr:hover {
    background: rgba(0, 123, 255, 0.03);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition-fast);
    font-size: 14px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination span {
    color: var(--text-muted);
    cursor: default;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .about-section .container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shipping-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section .container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-features {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .feature-item {
        flex: 1;
        min-width: 200px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 20px;
        padding: 0 30px;
    }
    
    /* 后台管理 */
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-main .container {
        padding: 0 15px;
    }
    
    .search-form input {
        width: 180px;
    }
    
    .search-form input:focus {
        width: 220px;
    }
}

@media (max-width: 768px) {
    /* 隐藏桌面端导航 */
    .main-nav {
        display: none;
    }
    
    .search-cart {
        display: none;
    }
    
    .header .header-main .mobile-menu-toggle {
        display: block !important;
    }
    
    .header .mobile-menu.active {
        display: block !important;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-top-left {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-top-left span {
        margin-right: 0;
        font-size: 13px;
    }
    
    .language-switch {
        margin-right: 0;
    }
    
    .language-switch span {
        display: none;
    }
    
    .language-switch a {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .user-actions {
        gap: 10px;
    }
    
    .user-actions a {
        font-size: 12px;
        margin-left: 10px;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 18px;
        padding: 0 20px;
        line-height: 1.6;
    }
    
    .hero-btn,
    .hero-btn-secondary {
        padding: 14px 30px;
        font-size: 16px;
        margin-bottom: 15px;
        margin-left: 0;
        display: block;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .shipping-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-content h2 {
        font-size: 32px;
    }
    
    .form-container {
        padding: 30px;
        margin: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-service {
        right: 15px;
        bottom: 100px;
    }
    
    .service-icon {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .service-icon span {
        display: none;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .shipping-card {
        padding: 30px 20px;
    }
    
    .about-image {
        margin-bottom: 20px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item i {
        font-size: 40px;
    }
    
    .feature-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 26px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .hero-btn,
    .hero-btn-secondary {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .about-section,
    .products-section,
    .articles-section,
    .shipping-section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .form-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .footer-section ul li a {
        font-size: 13px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .shipping-card h3 {
        font-size: 18px;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .mobile-menu {
        padding: 15px;
    }
    
    .mobile-menu ul li {
        margin-bottom: 12px;
    }
    
    .mobile-menu ul li a {
        font-size: 15px;
        padding: 8px 12px;
    }
    
    .mobile-search-form input {
        padding: 10px;
        font-size: 14px;
    }
    
    .mobile-search-form button {
        padding: 10px 15px;
    }
    
    .customer-service {
        bottom: 80px;
    }
    
    .service-icon {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 触摸优化 */
@media (hover: none) {
    .product-card:hover,
    .article-card:hover,
    .shipping-card:hover,
    .feature-item:hover {
        transform: none;
    }
    
    .product-card:active,
    .article-card:active,
    .shipping-card:active,
    .feature-item:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: translateY(1px);
    }
    
    .hero-btn:active,
    .hero-btn-secondary:active {
        transform: translateY(2px);
    }
    
    .social-links a:active {
        transform: scale(0.9);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --border-color: #333;
    }
    
    .btn-primary {
        background: #0066cc !important;
    }
    
    .btn-primary:hover {
        background: #004499 !important;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content h1,
    .hero-content p,
    .hero-btn,
    .hero-btn-secondary {
        animation: none;
        opacity: 1;
    }
    
    .service-icon {
        animation: none;
    }
}
