/**
 * CrossBorder Pro 主样式文件
 * 跨境电商主题核心样式
 *
 * @package CrossBorder Pro
 * @version 1.0.0
 */

/* ===== 全局变量 ===== */
:root {
    --primary-color: #1a4b8c;
    --primary-light: #2a6bb0;
    --primary-dark: #0e3a6f;
    --secondary-color: #e67e22;
    --secondary-light: #f39c12;
    --accent-color: #2ecc71;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --transition-base: all 0.3s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-full: 50px;
}

/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--background-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--secondary-color);
}

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

/* ===== 容器和网格 ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 网格系统 */
.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 12px;
}

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

/* ===== 头部样式 ===== */
.site-header {
    background-color: var(--background-white);
    box-shadow: 0 2px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.header-sticky {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.site-header.header-show {
    transform: translateY(0);
}

.header-top {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

.header-contact span {
    margin-right: 20px;
}

.header-contact i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.header-user-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user-links a {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-user-links a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 20px 0;
}

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

.site-logo {
    flex: 0 0 200px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo h1 {
    font-size: 28px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-logo h1 a {
    color: inherit;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

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

.header-search input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 16px;
    transition: var(--transition-base);
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 75, 140, 0.1);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.header-search button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

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

.header-actions > div {
    cursor: pointer;
    position: relative;
}

.header-actions i {
    font-size: 24px;
    color: var(--text-color);
    transition: var(--transition-base);
}

.header-actions > div:hover i {
    color: var(--secondary-color);
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 导航菜单 ===== */
.main-navigation {
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
}

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

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 18px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--secondary-color);
}

.primary-menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    box-shadow: 0 10px 30px var(--shadow-color);
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 100;
    list-style: none;
}

.primary-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 12px 20px;
    text-transform: none;
    font-size: 14px;
}

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

/* 移动菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.nav-promo {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-promo .hot-deal {
    animation: pulseGlow 2s ease infinite;
}

/* ===== 主要区域 ===== */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

/* ===== 英雄横幅 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ===== 产品网格 ===== */
.products-section {
    padding: 80px 0;
    background: var(--background-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===== 产品卡片 ===== */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px var(--shadow-hover);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.product-card:hover {
    transform: scale(1.02);
}

.product-card:hover::after {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.sale {
    background: #e74c3c;
}

.product-badge.new {
    background: var(--accent-color);
}

.product-badge.featured {
    background: #f39c12;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.product-card:hover .product-image-front {
    opacity: 0;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions a,
.product-actions button {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.product-actions a:hover,
.product-actions button:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-color);
    transition: var(--transition-base);
}

.product-title a:hover {
    color: var(--secondary-color);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

.product-price del {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1c40f;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
}

.add-to-cart-btn,
.select-options-btn,
.view-product-btn {
    width: 100%;
    text-align: center;
}

/* ===== 博客卡片 ===== */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition-base);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.post-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.post-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== 特色功能区域 ===== */
.features-section {
    padding: 80px 0;
    background: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

/* ===== 页脚 ===== */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 0;
}

.footer-widgets-area {
    margin-bottom: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

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

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

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-base);
}

.footer-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-widget p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius-full) 0 0 var(--border-radius-full);
    font-size: 14px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-payments img {
    height: 30px;
    width: auto;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== 面包屑导航 ===== */
.breadcrumbs {
    background: var(--background-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

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

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* ===== 分页 ===== */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 20px;
    border-radius: var(--border-radius-full);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px var(--shadow-hover);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== 侧边栏样式 ===== */
.shop-sidebar {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
    position: sticky;
    top: 100px;
    transition: var(--transition-base);
}

.shop-widget {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.shop-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.shop-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.shop-widget:hover .shop-widget-title::after {
    width: 80px;
}

/* 产品分类小工具 */
.widget_product_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_product_categories li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.widget_product_categories li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.widget_product_categories li:hover::before {
    transform: translateX(5px);
    color: var(--primary-color);
}

.widget_product_categories a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
    display: inline-block;
}

.widget_product_categories a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.widget_product_categories .count {
    float: right;
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.widget_product_categories .children {
    margin-top: 10px;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px dashed var(--border-color);
}

.widget_product_categories .children li:last-child {
    margin-bottom: 0;
}

/* 价格筛选小工具 */
.widget_price_filter .price-slider-wrapper {
    margin-top: 15px;
}

.price-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-filter-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    transition: var(--transition-base);
    min-width: 80px;
}

.price-filter-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.price-filter-form span {
    color: var(--text-light);
    font-weight: 600;
}

/* 评分筛选小工具 */
.widget_rating_filter ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_rating_filter li {
    margin-bottom: 12px;
}

.widget_rating_filter a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
}

.widget_rating_filter a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.widget_rating_filter .star-rating {
    display: inline-block;
    font-size: 14px;
    color: #ffc107;
    letter-spacing: 2px;
}

/* 属性筛选小工具 */
.widget_layered_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_layered_nav li {
    margin-bottom: 12px;
}

.widget_layered_nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
}

.widget_layered_nav a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.widget_layered_nav .count {
    margin-left: auto;
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* 颜色属性样式 */
.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 尺寸属性样式 */
.size-option {
    display: inline-block;
    padding: 3px 8px;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
}

/* 产品搜索小工具 */
.widget_product_search form {
    display: flex;
    position: relative;
}

.widget_product_search input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    transition: var(--transition-base);
}

.widget_product_search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.widget_product_search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.widget_product_search button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* 最近浏览产品小工具 */
.widget_recently_viewed_products ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recently_viewed_products li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget_recently_viewed_products li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_recently_viewed_products img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.widget_recently_viewed_products li:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.widget_recently_viewed_products .product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.widget_recently_viewed_products .product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.widget_recently_viewed_products .product-title a:hover {
    color: var(--secondary-color);
}

.widget_recently_viewed_products .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 特价产品小工具 */
.widget_products ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_products li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget_products li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_products img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.widget_products li:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.widget_products .product-info {
    flex: 1;
}

.widget_products .product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.widget_products .product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.widget_products .product-title a:hover {
    color: var(--secondary-color);
}

.widget_products .price {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.widget_products .price del {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
    font-weight: 400;
}

.widget_products .onsale {
    display: inline-block;
    padding: 2px 8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    border-radius: var(--border-radius-sm);
    margin-left: 8px;
}

/* 产品标签云小工具 */
.widget_product_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_product_tag_cloud a {
    display: inline-block;
    padding: 6px 15px;
    background: var(--background-light);
    color: #4a5568;
    font-size: 13px !important;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-base);
}

.widget_product_tag_cloud a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

/* 筛选复选框样式 */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.filter-checkbox .filter-label {
    font-size: 14px;
    color: #4a5568;
}

.filter-checkbox .filter-count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 12px;
}

/* 重置筛选按钮 */
.reset-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--background-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 15px;
}

.reset-filter-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.reset-filter-btn i {
    font-size: 12px;
}

/* ===== 商店页面样式 ===== */
.shop-page-wrapper {
    padding: 50px 0;
    background: var(--background-light);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.shop-title {
    font-size: 24px;
    margin: 0;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-view {
    display: flex;
    gap: 10px;
}

.shop-view span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.shop-view span:hover,
.shop-view span.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 产品单页样式 ===== */
.single-product-wrapper {
    padding: 50px 0;
}

.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 5px;
}

.badge.sale {
    background: #e74c3c;
    color: white;
}

.badge.featured {
    background: #f39c12;
    color: white;
}

.badge.top-rated {
    background: var(--accent-color);
    color: white;
}

.product-share {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-share span {
    font-weight: 600;
    color: var(--text-color);
}

.product-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    color: var(--text-color);
    transition: var(--transition-base);
}

.product-share a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.product-tabs-wrapper {
    background: var(--background-light);
    padding: 50px 0;
    margin-top: 50px;
}

.related-products-wrapper {
    padding: 50px 0;
}

/* 库存倒计时 */
.stock-countdown {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ffb74d;
}

.stock-urgency-high {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #ef5350;
}

.stock-urgency-high .stock-countdown-header i {
    color: #ef5350;
    animation: pulseGlow 1s ease infinite;
}

.stock-countdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stock-countdown-header i {
    color: var(--secondary-color);
    font-size: 18px;
}

.stock-countdown-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.stock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #ef5350);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.stock-countdown-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.stock-remaining {
    font-weight: 600;
    color: var(--text-color);
}

.stock-urgency {
    color: #ef5350;
    font-weight: 600;
}

/* 产品配送信息 */
.product-shipping-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.shipping-item i {
    color: var(--secondary-color);
    font-size: 16px;
}

/* ===== 购物车页面样式 ===== */
.cart-wrapper {
    padding: 50px 0;
}

.cart-table-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.cart-table-wrapper table {
    margin: 0;
    border: none;
}

.cart-table-wrapper th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px !important;
    border: none !important;
}

.cart-table-wrapper td {
    padding: 20px 15px !important;
    vertical-align: middle;
    border-color: var(--border-color) !important;
}

.product-thumbnail {
    width: 100px;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.product-remove a {
    color: #e74c3c;
    font-size: 18px;
    transition: var(--transition-base);
}

.product-remove a:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.coupon {
    display: flex;
    gap: 10px;
    flex: 1;
}

.coupon input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 14px;
}

.coupon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.cart-collaterals {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.cart_totals {
    margin-bottom: 25px;
}

.cart_totals h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.cart_totals table {
    margin: 0;
    border: none;
}

.cart_totals td,
.cart_totals th {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.wc-proceed-to-checkout {
    margin: 25px 0;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--border-radius-full);
    transition: var(--transition-base);
}

.checkout-button:hover {
    background: var(--secondary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}

.cart-trust-badges {
    margin-top: 25px;
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.trust-item span {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 404页面样式 ===== */
.error-404-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-404-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.error-number {
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 5px 5px 0 rgba(26, 75, 140, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease;
}

.error-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
    animation: fadeIn 0.6s ease 0.2s both;
}

.error-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease 0.4s both;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 50px;
    animation: fadeIn 0.6s ease 0.6s both;
}

.error-search h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.error-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-full);
    font-size: 16px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition-base);
}

.error-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 30px rgba(26, 75, 140, 0.2);
}

.error-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.error-search button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.error-links {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease 0.8s both;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition-base);
}

.quick-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    background: var(--primary-color);
    color: white;
}

.quick-link i {
    font-size: 32px;
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.quick-link:hover i {
    color: white;
}

.quick-link span {
    font-weight: 600;
}

/* ===== 语言/货币切换器 ===== */
.language-switcher,
.currency-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    cursor: pointer;
}

.active-lang,
.current-currency {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
}

.language-dropdown,
.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 20px var(--shadow-color);
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 100;
}

.language-dropdown.show,
.currency-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li,
.currency-dropdown li {
    padding: 0;
}

.language-dropdown a,
.currency-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition-base);
}

.language-dropdown a:hover,
.currency-dropdown a:hover {
    background: var(--background-light);
    color: var(--secondary-color);
}

/* ===== 快速查看模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    transition: var(--transition-base);
}

.close-modal:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

/* ===== 通知消息 ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-full);
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease, notificationFadeOut 0.3s ease 2.7s forwards;
}

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

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

/* ===== 加载动画 ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* ===== 动画定义 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(230, 126, 34, 0.2);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationFadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .col-md-1 { width: 8.33%; }
    .col-md-2 { width: 16.66%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33%; }
    .col-md-5 { width: 41.66%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.33%; }
    .col-md-8 { width: 66.66%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.33%; }
    .col-md-11 { width: 91.66%; }
    .col-md-12 { width: 100%; }
    
    .header-search {
        max-width: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .col-sm-1 { width: 8.33%; }
    .col-sm-2 { width: 16.66%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.33%; }
    .col-sm-5 { width: 41.66%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.33%; }
    .col-sm-8 { width: 66.66%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.33%; }
    .col-sm-11 { width: 91.66%; }
    .col-sm-12 { width: 100%; }
    
    .header-top {
        display: none;
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .site-logo {
        flex: 0 0 auto;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0;
        flex: 0 0 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow-color);
        z-index: 1000;
    }
    
    .primary-menu.toggled {
        display: block;
    }
    
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .shop-toolbar {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .coupon {
        width: 100%;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-number {
        font-size: 120px;
    }
    
    .error-title {
        font-size: 28px;
    }
    
    .widget_recently_viewed_products li,
    .widget_products li {
        gap: 10px;
    }
    
    .widget_recently_viewed_products img,
    .widget_products img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .col-xs-1 { width: 8.33%; }
    .col-xs-2 { width: 16.66%; }
    .col-xs-3 { width: 25%; }
    .col-xs-4 { width: 33.33%; }
    .col-xs-5 { width: 41.66%; }
    .col-xs-6 { width: 50%; }
    .col-xs-7 { width: 58.33%; }
    .col-xs-8 { width: 66.66%; }
    .col-xs-9 { width: 75%; }
    .col-xs-10 { width: 83.33%; }
    .col-xs-11 { width: 91.66%; }
    .col-xs-12 { width: 100%; }
    
    .container {
        padding: 0 20px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .error-number {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .price-filter-form {
        flex-wrap: wrap;
    }
    
    .price-filter-form input[type="text"] {
        width: calc(50% - 25px);
    }
}

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .product-actions,
    .back-to-top,
    .shop-sidebar,
    .header-top,
    .header-search,
    .header-actions,
    .footer-widgets-area,
    .features-section,
    .newsletter-form {
        display: none !important;
    }
    
    .site-main {
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== 暗黑模式 ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a1a1a;
        --background-white: #2d2d2d;
        --text-color: #e0e0e0;
        --text-light: #a0a0a0;
        --border-color: #404040;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.5);
    }
    
    body {
        background-color: #121212;
    }
    
    .site-header,
    .main-navigation,
    .product-card,
    .blog-card,
    .feature-card,
    .shop-sidebar,
    .cart-table-wrapper,
    .cart-collaterals,
    .shop-header,
    .quick-link,
    .modal-content {
        background: #2d2d2d;
    }
    
    .product-card,
    .blog-card,
    .feature-card,
    .shop-sidebar {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    input[type="text"],
    input[type="search"],
    input[type="email"],
    textarea {
        background: #3d3d3d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .widget_product_categories a,
    .widget_rating_filter a,
    .widget_layered_nav a {
        color: #e0e0e0;
    }
    
    .widget_product_categories .count,
    .widget_layered_nav .count {
        background: #3d3d3d;
        color: #a0a0a0;
    }
    
    .widget_product_tag_cloud a {
        background: #3d3d3d;
        color: #e0e0e0;
    }
    
    .widget_product_search button {
        background: var(--primary-color);
    }
    
    .error-404-wrapper {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .quick-link {
        background: #2d2d2d;
    }
    
    .shop-widget {
        border-bottom-color: #404040;
    }
    
    .shop-widget-title {
        color: #e0e0e0;
        border-bottom-color: #404040;
    }
}

/* ===== WooCommerce 特定样式 ===== */
.woocommerce-loop-product__title {
    font-size: 16px !important;
}

.price {
    color: var(--secondary-color) !important;
    font-weight: 700 !important;
}

.button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: var(--border-radius-full) !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: var(--transition-base) !important;
}

.button:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3) !important;
}

.woocommerce-product-gallery__image img {
    border-radius: var(--border-radius-lg);
}

.quantity .qty {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--border-radius-full) !important;
    padding: 10px !important;
}

/* 星星评分样式 */
.star-rating {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.star-rating span {
    color: #ffc107;
}

/* 错误提示 */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: var(--border-radius-md) !important;
    border-top: 3px solid var(--secondary-color) !important;
    background: var(--background-white) !important;
    color: var(--text-color) !important;
    box-shadow: 0 5px 20px var(--shadow-color) !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    color: var(--secondary-color) !important;
}




/* ===== 菜单和导航元素样式 ===== */

/* 主导航菜单项 */
.main-navigation .primary-menu li {
    position: relative;
    margin: 0;
}

.main-navigation .primary-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-navigation .primary-menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(230, 126, 34, 0.05);
}

/* 当前菜单项 */
.main-navigation .primary-menu .current-menu-item > a,
.main-navigation .primary-menu .current-page-ancestor > a,
.main-navigation .primary-menu .current_page_item > a {
    color: var(--secondary-color);
    position: relative;
}

.main-navigation .primary-menu .current-menu-item > a::after,
.main-navigation .primary-menu .current-page-ancestor > a::after,
.main-navigation .primary-menu .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
}

/* 有子菜单的菜单项 */
.main-navigation .primary-menu .menu-item-has-children {
    position: relative;
}

.main-navigation .primary-menu .menu-item-has-children > a {
    padding-right: 35px;
}

.main-navigation .primary-menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.main-navigation .primary-menu .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 子菜单样式 */
.main-navigation .primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    border: 1px solid var(--border-color);
}

.main-navigation .primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .primary-menu .sub-menu li {
    display: block;
    margin: 0;
}

.main-navigation .primary-menu .sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    text-transform: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navigation .primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation .primary-menu .sub-menu a:hover {
    background-color: var(--background-light);
    padding-left: 25px;
}

/* 二级子菜单 */
.main-navigation .primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

/* ===== 页面标题和归档样式 ===== */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .archive-description {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* 归档标题 */
.archive-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.category-list a {
    display: inline-block;
    padding: 8px 20px;
    background: var(--background-light);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== 示例页面样式 ===== */

/* 页面内容 */
.page-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 30px;
}

.page-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--background-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ===== 归档页面样式 ===== */

/* 归档列表 */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.archive-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.archive-item .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.archive-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.archive-item .post-content {
    padding: 20px;
}

.archive-item .post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.archive-item .post-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.archive-item .post-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 按月归档 */
.archive-month {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 30px;
}

.archive-month h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

.archive-month ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-month li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.archive-month li:last-child {
    border-bottom: none;
}

.archive-month a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.archive-month a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.archive-month .post-count {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 用户账户相关样式 ===== */

/* 登录/注册链接 */
.header-user-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.header-user-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 用户菜单 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu .user-name {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.user-menu:hover .user-name {
    background: rgba(255, 255, 255, 0.15);
}

.user-menu .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color) !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-dropdown a:hover {
    background: var(--background-light);
    color: var(--secondary-color) !important;
    padding-left: 25px;
}

.user-dropdown i {
    width: 20px;
    margin-right: 8px;
    color: var(--secondary-color);
}

/* 注销链接 */
.logout-link {
    color: #e74c3c !important;
}

.logout-link:hover {
    color: #c0392b !important;
}

/* ===== 站点管理链接 ===== */

/* 管理栏（在前端显示的管理链接） */
.admin-bar-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-bar-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.admin-bar-links a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.admin-bar-links .edit-link {
    background: var(--primary-color);
    color: white;
}

.admin-bar-links .edit-link:hover {
    background: var(--primary-dark);
}

/* 管理面板中的链接 */
.wp-admin-bar {
    font-family: var(--font-primary);
}

/* ===== 购物车和结账相关 ===== */

/* 购物车页面 */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 30px;
}

.woocommerce-cart .return-to-shop .button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-cart .return-to-shop .button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 结账页面 */
.woocommerce-checkout .woocommerce-info {
    background: var(--background-light);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.woocommerce-checkout .woocommerce-info a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== 其他操作链接 ===== */

/* 操作链接通用样式 */
.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--background-light);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.action-link i {
    font-size: 14px;
}

/* ===== 博客文章样式 ===== */

/* 博客文章列表 */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* 单篇文章 */
.single-post .post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.single-post .nav-previous a,
.single-post .nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--background-light);
    border-radius: 30px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.single-post .nav-previous a:hover,
.single-post .nav-next a:hover {
    background: var(--secondary-color);
    color: white;
}

/* 评论区域 */
.comments-area {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 16px;
}

.comment-metadata {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    background: var(--background-light);
    border-radius: 30px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.reply a:hover {
    background: var(--secondary-color);
    color: white;
}

/* 评论表单 */
.comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.comment-form .form-submit {
    margin-top: 10px;
}

.comment-form .submit {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== 未分类文章样式 ===== */

/* 未分类文章提示 */
.uncategorized-posts {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    text-align: center;
}

.uncategorized-posts i {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.uncategorized-posts h3 {
    margin-bottom: 15px;
}

.uncategorized-posts p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ===== 侧边栏小工具中的菜单样式 ===== */

/* 小工具中的菜单 */
.widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_nav_menu li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.widget_nav_menu li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.widget_nav_menu li:hover::before {
    transform: translateX(5px);
}

.widget_nav_menu a {
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget_nav_menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.widget_nav_menu .sub-menu {
    margin-top: 10px;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px dashed var(--border-color);
}

/* ===== 日历小工具样式 ===== */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.widget_calendar th {
    background: var(--background-light);
    font-weight: 600;
}

.widget_calendar a {
    color: var(--secondary-color);
    font-weight: 600;
}

.widget_calendar #today {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.widget_calendar #today a {
    color: white;
}

/* ===== 最近评论小工具样式 ===== */
.widget_recent_comments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_comments li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.widget_recent_comments li:last-child {
    border-bottom: none;
}

.widget_recent_comments .comment-author-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.widget_recent_comments a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.widget_recent_comments a:hover {
    color: var(--secondary-color);
}

/* ===== 归档小工具样式 ===== */
.widget_archive ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_archive li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_archive a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.widget_archive a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.widget_archive .count {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .main-navigation .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    
    .main-navigation .primary-menu .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    .main-navigation .primary-menu .menu-item-has-children > a::after {
        content: '\f107';
    }
    
    .main-navigation .primary-menu .menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .comments-area {
        padding: 20px;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-menu .user-dropdown {
        position: fixed;
        top: auto;
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: auto;
    }
}