/*
Theme Name: 远途机械设备
Theme URI: https://yuantu-machinery.com
Author: YuanTu Machinery
Author URI: https://yuantu-machinery.com
Description: 远途机械设备企业官网主题 v1.0.38 - Customizer设置与前端断连修复
Version: 1.0.38
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuantu
Tags: business, corporate, machinery, bilingual, responsive
*/

/* ===================================================
   CSS Reset & Base
=================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a1a1a;
    --primary-dark: #111111;
    --primary-light: #333333;
    --accent: #FFC107;
    --accent-hover: #E5AC00;
    --text-dark: #1a1a1a;
    --text-mid: #444;
    --text-light: #777;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-section: #f5f5f5;
    --border-color: #dce3ea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius: 4px;
    --radius-md: 8px;
    --transition: 0.3s ease;
    --font-cn: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    --font-en: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --nav-height: 80px;
    --topbar-height: 36px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

body.lang-en {
    font-family: var(--font-en);
}

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

ul, ol {
    list-style: none;
}

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

/* ===================================================
   Layout Helpers
=================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 12px;
}

/* ===================================================
   Header Wrapper & Top Bar
=================================================== */
#site-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar {
    background: #1a1a1a;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.top-bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar-welcome {
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
}

.secondary-nav {
    flex-shrink: 0;
}

.secondary-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.secondary-menu li {
    position: relative;
}

.secondary-menu a {
    display: block;
    padding: 4px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.secondary-menu a:hover {
    color: #FFC107;
}

.secondary-menu li:not(:last-child) a {
    border-right: 1px solid rgba(255,255,255,0.15);
}

/* ===================================================
   Header & Navigation (Main)
=================================================== */
#site-header {
    position: relative;
    height: var(--nav-height);
    background: #FFC107;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
    background: #FFC107;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .cn {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-text .en {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Custom Logo Image - 后台可控大小和位置 */
.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    max-width: var(--logo-max-width, 250px);
    flex-shrink: 0;
    margin-top: var(--logo-margin-top, 0px);
}
.site-logo .custom-logo-link img,
.site-logo .custom-logo {
    max-height: calc(var(--nav-height) - 25px) !important;
    max-width: var(--logo-max-width, 250px) !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}
/* Logo 居中模式 */
:root[style*="--logo-alignment:center"] .header-inner {
    justify-content: center;
}
:root[style*="--logo-alignment:center"] .header-inner #primary-navigation,
:root[style*="--logo-alignment:center"] .header-inner .lang-switcher {
    display: none;
}
@media (max-width: 768px) {
    :root[style*="--logo-alignment:center"] .header-inner #primary-navigation.open,
    :root[style*="--logo-alignment:center"] .header-inner .mobile-menu-toggle {
        display: flex;
    }
}

/* Navigation Menu */
#primary-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: var(--nav-text-color, rgba(0,0,0,0.75));
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    background: var(--nav-bg-color, transparent);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.nav-menu a:hover {
    color: var(--nav-text-color, var(--primary));
    background: var(--nav-hover-bg-color, rgba(0,0,0,0.08));
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: var(--nav-text-color, var(--primary));
    background: var(--nav-active-bg-color, rgba(0,0,0,0.12));
}

/* Dropdown Arrow */
.dropdown-arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.nav-menu li:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu - 从页眉底部滑出，金黄色背景 */
.nav-menu li.menu-item-has-children {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #FFC107;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

.nav-menu li.menu-item-has-children:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉展开时父菜单高亮 */
.nav-menu li.menu-item-has-children:hover > a {
    background: rgba(0,0,0,0.12);
}

/* Dropdown items - 金黄色背景适配深色文字 */
.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: rgba(0,0,0,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--primary);
    color: var(--accent);
    font-weight: 600;
}

/* Dropdown with Image - 金黄色版 */
.dropdown-menu.has-image {
    display: flex;
    flex-wrap: wrap;
    min-width: 500px;
    padding: 15px;
    gap: 10px;
    background: #FFC107;
}

.dropdown-menu.has-image .dropdown-item {
    flex: 1 1 calc(50% - 5px);
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    min-height: 120px;
    background: rgba(255,255,255,0.3);
}

.dropdown-menu.has-image .dropdown-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.5);
}

.dropdown-menu.has-image .dropdown-item-image {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.dropdown-menu.has-image .dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-menu.has-image .dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0,0,0,0.6);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--accent);
}

.lang-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(0,0,0,0.08);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ===================================================
   Hero Slider - 全屏无遮罩高清模式
=================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: var(--slider-height, 600px);
    max-height: var(--slider-height, 600px);
    overflow: hidden;
    margin-top: calc(var(--topbar-height) + var(--nav-height));
}

@supports not (height: 100dvh) {
    .hero-slider {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 图片全屏自适应 */
.slide-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

/* 图片全屏自适应 - 修复模糊问题 */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 确保图片覆盖整个区域，保持比例 */
.slide-bg img,
.slide-bg picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 手机端图片位置微调，防截取关键内容 */
@media (max-width: 768px) {
    .slide-bg img {
        object-position: center 30%;
    }
}

/* 无图片时的渐变背景 */
.slide:nth-child(1) .slide-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #3d3d3d 70%, #1a1a1a 100%);
}

.slide:nth-child(2) .slide-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a08 40%, #4a4010 70%, #1a1a1a 100%);
}

.slide:nth-child(3) .slide-bg {
    background: linear-gradient(135deg, #0f1f2f 0%, #1a2a3a 50%, #0f1f2f 100%);
}

/* 移除遮罩层 */
.slide-overlay {
    display: none;
}

/* 移除工业图案 */
.slide::before {
    display: none;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
    text-align: center;
    color: white;
}

.slide-content .tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.3s ease;
}

.slide.active .slide-content .tag {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s 0.5s ease;
}

.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.slide-content p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.7s ease;
}

.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.slide-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.9s ease;
}

.slide.active .slide-btns {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

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

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

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.arrow-btn {
    pointer-events: all;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.arrow-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ===================================================
   Stats Banner
=================================================== */
.stats-banner {
    background: #1a1a1a;
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 12px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
}

/* ===================================================
   About Section (Company Profile)
=================================================== */
.about-section {
    padding: 90px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image .img-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(255,255,255,0.6);
    gap: 12px;
}

.about-image .img-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

.about-image-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: var(--accent);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge .years {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .text {
    font-size: 0.75rem;
    opacity: 0.9;
    white-space: nowrap;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-mid);
    margin-bottom: 16px;
    line-height: 1.85;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.feature-item::before {
    content: '✓';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ===================================================
   Culture Section
=================================================== */
.culture-section {
    padding: 90px 0;
    background: var(--bg-white);
}

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

.culture-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

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

.culture-card:hover::before {
    transform: scaleX(1);
}

.culture-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.culture-card:hover .culture-icon {
    background: var(--primary);
}

.culture-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--primary);
    transition: fill var(--transition);
}

.culture-card:hover .culture-icon svg {
    fill: white;
}

.culture-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.culture-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===================================================
   News Section - 新闻动态
=================================================== */
.news-section {
    padding: 90px 0;
    background: var(--bg-section);
}

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

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

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

.news-thumb-link {
    display: block;
}

.news-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-section);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--text-light);
    opacity: 0.4;
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h3 a {
    color: inherit;
}

.news-content h3 a:hover {
    color: var(--accent);
}

.news-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.news-link:hover {
    gap: 8px;
    color: var(--accent-hover);
}

/* ===================================================
   Custom Products Showcase (后台可编辑)
=================================================== */
.custom-products-section {
    padding: 90px 0;
    background: #fff;
}

.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.custom-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.custom-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.custom-product-img-link {
    display: block;
    text-decoration: none;
}

.custom-product-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f5f5f5;
    overflow: hidden;
}

.custom-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.custom-product-card:hover .custom-product-img img {
    transform: scale(1.06);
}

.custom-product-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    color: #bbb;
}

.custom-product-img-placeholder svg {
    width: 60px;
    height: 60px;
}

.custom-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 16px 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.custom-product-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.custom-product-info {
    padding: 16px 18px;
    text-align: center;
}

.custom-product-info h3 {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}

.custom-product-info h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.custom-product-info h3 a:hover {
    color: var(--accent);
}

/* ===================================================
   Products Section
=================================================== */
.products-section {
    padding: 90px 0;
    background: var(--bg-section);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-mid);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img .product-icon {
    color: var(--primary-light);
    opacity: 0.4;
}

.product-img .product-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--primary);
}

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

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

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

.product-info {
    padding: 20px 22px 22px;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.spec-tag {
    padding: 3px 10px;
    background: var(--bg-section);
    border-radius: 2px;
    font-size: 0.75rem;
    color: var(--text-mid);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.product-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ===================================================
   Why Choose Us Section
=================================================== */
.whyus-section {
    padding: 90px 0;
    background: #111111;
    color: white;
}

.whyus-section .section-title h2 {
    color: white;
}

.whyus-section .section-title p {
    color: rgba(255,255,255,0.65);
}

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

.whyus-item {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.whyus-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.whyus-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.whyus-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.whyus-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ===================================================
   Contact Section
=================================================== */
.contact-section {
    padding: 90px 0;
    background: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-mid);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--bg-section);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.contact-item-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-item-text span {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: var(--bg-section);
    padding: 36px;
    border-radius: var(--radius-md);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: white;
    transition: border-color var(--transition);
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.form-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.35);
}

/* ===================================================
   Footer - 金黄色配色与页眉一致
=================================================== */
#site-footer {
    background: #FFC107;
    color: rgba(0,0,0,0.75);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo-icon {
    background: #1a1a1a;
}

.footer-brand .logo-text .cn {
    color: #1a1a1a;
}

.footer-brand .logo-text .en {
    color: rgba(0,0,0,0.55);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(0,0,0,0.6);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(0,0,0,0.65);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.15);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.5);
}

.footer-bottom a {
    color: rgba(0,0,0,0.6);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #1a1a1a;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===================================================
   News Archive Page
=================================================== */
.news-archive-section {
    padding: 60px 0 90px;
    background: var(--bg-white);
}

.news-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-cat-btn {
    padding: 8px 20px;
    background: var(--bg-section);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: all var(--transition);
}

.news-cat-btn:hover,
.news-cat-btn.active {
    background: var(--primary);
    color: white;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.news-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-archive-thumb-link {
    display: block;
}

.news-archive-thumb {
    height: 200px;
    overflow: hidden;
    background: var(--bg-section);
}

.news-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-archive-card:hover .news-archive-thumb img {
    transform: scale(1.05);
}

.news-archive-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-archive-placeholder svg {
    width: 64px;
    height: 64px;
    fill: var(--text-light);
    opacity: 0.4;
}

.news-archive-content {
    padding: 24px;
}

.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-archive-date,
.news-archive-cat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-archive-cat {
    padding: 2px 10px;
    background: var(--bg-section);
    border-radius: 10px;
}

.news-archive-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-archive-content h2 a {
    color: inherit;
}

.news-archive-content h2 a:hover {
    color: var(--accent);
}

.news-archive-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.news-archive-link:hover {
    gap: 8px;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    background: var(--bg-section);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: all var(--transition);
}

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

/* No News */
.no-news {
    text-align: center;
    padding: 80px 20px;
}

.no-news svg {
    fill: var(--text-light);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-news p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===================================================
   Single News Page
=================================================== */
.single-news-section {
    padding: 60px 0 90px;
    background: var(--bg-white);
}

.single-news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}

.single-news-header {
    margin-bottom: 30px;
}

.single-news-category {
    margin-bottom: 16px;
}

.single-news-category a {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.single-news-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.single-news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-news-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
}

.single-news-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-mid);
}

.single-news-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 30px 0 15px;
}

.single-news-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 12px;
}

.single-news-content p {
    margin-bottom: 16px;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-news-content ul,
.single-news-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.single-news-content li {
    list-style: disc;
    margin-bottom: 8px;
}

.single-news-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 600;
    color: var(--text-mid);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border-radius: 50%;
    color: var(--text-mid);
    transition: all var(--transition);
}

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

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Single News Sidebar */
.single-news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.related-news-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.related-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-news-list a {
    display: flex;
    gap: 12px;
}

.related-news-thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.related-news-info {
    flex: 1;
}

.related-news-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.related-news-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-list a:hover h4 {
    color: var(--accent);
}

.sidebar-contact p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ===================================================
   Responsive News
=================================================== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-news-layout {
        grid-template-columns: 1fr;
    }
    
    .single-news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .single-news-header h1 {
        font-size: 1.5rem;
    }
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .whyus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 65px;
    }

    /* 顶部辅助栏 - 移动端隐藏 */
    .top-bar {
        display: none;
    }

    /* 移动端 hero/页面内容偏移修正（无顶栏时） */
    .hero-slider {
        margin-top: var(--nav-height);
        height: var(--slider-height, 400px);
        max-height: var(--slider-height, 400px);
    }
    /* 确保 page-hero 在手机上紧贴 header */
    .page-hero, .page-hero.has-bg-image { margin-top: 0; }
    @supports not (height: 100dvh) {
        .hero-slider {
            height: 60vh;
            min-height: 60vh;
            max-height: 60vh;
        }
    }
    .page-hero,
    .shop-hero {
        margin-top: var(--nav-height);
    }

    .nav-menu,
    #primary-navigation {
        display: none;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }

    #primary-navigation.open {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFC107;
        padding: 16px 0;
        border-top: 1px solid rgba(0,0,0,0.12);
        z-index: 1001;
        overflow-y: auto;
    }

    #primary-navigation.open .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 24px;
    }

    #primary-navigation.open .nav-menu > li {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    #primary-navigation.open .nav-menu > li:last-child {
        border-bottom: none;
    }

    #primary-navigation.open .nav-menu a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* 移动端二级菜单 */
    #primary-navigation.open .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.05);
        padding: 5px 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    #primary-navigation.open li.menu-item-has-children:hover > .dropdown-menu,
    #primary-navigation.open li.menu-item-has-children > .dropdown-menu.open {
        display: block;
    }

    #primary-navigation.open .dropdown-menu .dropdown-item {
        padding: 10px 16px 10px 36px;
        font-size: 0.92rem;
        color: rgba(0,0,0,0.7);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-badge {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50dvh;
        min-height: 50dvh;
        max-height: 50dvh;
    }
    @supports not (height: 100dvh) {
        .hero-slider {
            height: 50vh;
            min-height: 50vh;
            max-height: 50vh;
        }
    }
    .slide-content {
        padding: 0 16px;
    }
    .slide-content h1 {
        font-size: 1.4rem;
    }
    .slide-content p {
        font-size: 0.85rem;
    }
    .slide-content .tag {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    .slide-content .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .slide-btns {
        gap: 10px;
    }

    .products-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .slide-content {
        padding: 0 24px;
    }
}

/* ===================================================
   Page Hero (for inner pages)
=================================================== */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a {
    color: var(--accent);
    transition: color 0.3s;
}

.page-hero .breadcrumb a:hover {
    color: white;
}

.page-hero .breadcrumb span {
    opacity: 0.5;
}

/* ===================================================
   News Section (Homepage)
=================================================== */
.news-section {
    padding: 90px 0;
    background: var(--bg-white);
}

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

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

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

.news-thumb-link {
    display: block;
}

.news-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-section);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--text-light);
    opacity: 0.4;
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h3 a {
    color: inherit;
}

.news-content h3 a:hover {
    color: var(--accent);
}

.news-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.news-link:hover {
    gap: 8px;
    color: var(--accent-hover);
}

/* Product Card Links */
.product-card .product-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--border-color) 100%);
}

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

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

.product-card .product-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    opacity: 0.4;
}

.product-card .product-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--primary);
}

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

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info h3 a {
    color: inherit;
}

.product-info h3 a:hover {
    color: var(--accent);
}

/* ===================================================
   Responsive News Grid
=================================================== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* ===================================================
   Page Templates
=================================================== */
.page-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    margin-top: calc(var(--topbar-height) + var(--nav-height));
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.breadcrumb a {
    color: rgba(255,255,255,0.55);
}

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

.page-content {
    padding: 60px 0;
}

/* ===================================================
   Utility
=================================================== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

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

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

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

#back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* Notice / Alert */
.notice {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.notice-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.notice-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

/* ===================================================
   Page Hero with Background Image
=================================================== */
.page-hero.has-bg-image {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.75) 100%),
                var(--hero-bg) center/cover no-repeat;
    padding: 140px 0 80px;
}

.page-hero.has-bg-image .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.page-hero .hero-badge {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.page-hero .hero-cat {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-hero .hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 20px;
}

.page-hero .hero-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-hero .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-hero .meta-cat {
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    color: var(--accent);
}

.page-hero .hero-badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.page-hero .breadcrumb .sep {
    opacity: 0.5;
}

.page-hero .breadcrumb .current {
    color: rgba(255,255,255,0.7);
}

/* ===================================================
   News Archive Page Enhanced
=================================================== */
.news-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-section);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-tag .tag-icon {
    display: flex;
}

.news-archive-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
}

.news-archive-card.featured .news-archive-thumb {
    height: 380px;
}

.news-archive-card.featured .news-archive-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.news-archive-card.featured h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.news-archive-card.featured p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    transition: all var(--transition);
}

.news-read-more:hover {
    gap: 12px;
    color: var(--accent-hover);
}

.news-cat-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-archive-card {
    position: relative;
}

.news-archive-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-archive-card h3 a {
    color: inherit;
}

.news-archive-card h3 a:hover {
    color: var(--accent);
}

.no-news-empty,
.no-products-empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-news-empty h3,
.no-products-empty h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.no-news-empty p,
.no-products-empty p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===================================================
   Single News Enhanced
=================================================== */
.single-news-featured {
    margin-bottom: 30px;
}

.single-news-featured .featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}

.single-news-featured img {
    width: 100%;
    height: auto;
}

.single-news-featured .featured-caption {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.single-news-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-mid);
}

.single-news-body p {
    margin-bottom: 20px;
}

.single-news-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 16px;
}

.single-news-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 14px;
}

.single-news-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

.single-news-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--text-mid);
}

.tag-item {
    padding: 4px 12px;
    background: var(--bg-section);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-mid);
    transition: all var(--transition);
}

.tag-item:hover {
    background: var(--primary);
    color: white;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-post {
    padding: 20px;
    background: var(--bg-section);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-post:hover {
    background: var(--primary);
    color: white;
}

.nav-post:hover .nav-direction,
.nav-post:hover .nav-title {
    color: white;
}

.nav-post.next {
    text-align: right;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.nav-title {
    color: var(--text-dark);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Enhanced */
.sidebar-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-mid);
    transition: color var(--transition);
}

.category-list a:hover {
    color: var(--accent);
}

.cat-count {
    background: var(--bg-section);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.sidebar-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.sidebar-contact h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-contact p {
    color: rgba(255,255,255,0.8);
}

.related-news-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
}

.related-news-thumb .thumb-placeholder svg {
    width: 32px;
    height: 32px;
    fill: var(--text-light);
    opacity: 0.3;
}

.no-related {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================================
   Products Page Enhanced
=================================================== */
.products-page-section {
    padding: 60px 0 90px;
    background: var(--bg-white);
}

.product-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    margin: 0 4px;
    background: var(--bg-section);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-mid);
    transition: all var(--transition);
}

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

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

.product-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
}

.product-card.featured .product-img {
    height: 400px;
}

.product-card.featured .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}

.product-card.featured h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-card.featured p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.product-card .product-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-section);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-mid);
}

.spec-tag svg {
    opacity: 0.6;
}

.product-card .product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    transition: gap var(--transition);
}

.product-card .product-link:hover {
    gap: 10px;
}

/* ===================================================
   Product Detail Enhanced
=================================================== */
.product-detail-section {
    padding: 60px 0 90px;
    background: var(--bg-white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery .gallery-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-section);
    margin-bottom: 24px;
}

.product-gallery .gallery-main img {
    width: 100%;
    height: auto;
}

.gallery-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--border-color) 100%);
    color: var(--text-light);
}

.gallery-placeholder svg {
    width: 80px;
    height: 80px;
    fill: currentColor;
    opacity: 0.3;
    margin-bottom: 12px;
}

.gallery-placeholder span {
    font-size: 0.9rem;
}

.product-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-section);
    border-radius: var(--radius);
}

.spec-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
}

.spec-icon svg {
    width: 20px;
    height: 20px;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

.detail-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.detail-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-section);
    color: var(--text-mid);
    border-radius: 4px;
    font-size: 0.85rem;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 30px;
}

.detail-specs-table {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
}

.detail-specs-table h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

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

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

.detail-specs-table tr:last-child {
    border-bottom: none;
}

.detail-specs-table th,
.detail-specs-table td {
    padding: 12px 0;
    text-align: left;
}

.detail-specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-specs-table td {
    color: var(--text-mid);
}

.detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detail-actions .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

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

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

.product-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.product-features svg {
    width: 20px;
    height: 20px;
    fill: #4caf50;
}

/* Related Products */
.related-products-section {
    padding: 60px 0 90px;
    background: var(--bg-section);
}

.related-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-products-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.view-all {
    color: var(--accent);
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

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

.related-product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

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

.related-product-card a {
    display: block;
}

.related-product-img {
    height: 160px;
    overflow: hidden;
    background: var(--bg-section);
}

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

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

.related-product-card h4 {
    padding: 16px 16px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-link {
    display: block;
    padding: 0 16px 16px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================================================
   Responsive Enhanced
=================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .news-archive-card.featured,
    .product-card.featured {
        grid-template-columns: 1fr;
    }
    
    .news-archive-card.featured .news-archive-thumb,
    .product-card.featured .product-img {
        height: 280px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero.has-bg-image {
        padding: 80px 0 40px;
    }
    
    .page-hero .hero-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-filter-bar,
    .product-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-tag,
    .filter-btn {
        white-space: nowrap;
    }
    
    .products-grid,
    .news-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .product-quick-specs {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .page-hero.has-bg-image { padding: 60px 0 24px; }
    .page-hero { padding: 60px 0 24px; }
    .hero-slider { --slider-height: 350px !important; }
}

/* ===================================================
   WooCommerce - 商店页 (Shop Archive)
=================================================== */

/* Shop Hero */
.shop-hero {
    position: relative;
    margin-top: calc(var(--topbar-height) + var(--nav-height));
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #1a1a1a 100%);
    text-align: center;
    color: white;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,193,7,0.08) 0%, transparent 60%);
}

.shop-hero .container {
    position: relative;
    z-index: 1;
}

.shop-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.shop-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* Shop Layout */
.shop-layout {
    padding: 50px 24px 80px;
}

/* Filter Bar */
.shop-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.shop-filter-bar .filter-btn {
    padding: 9px 22px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-mid);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.shop-filter-bar .filter-btn:hover,
.shop-filter-bar .filter-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

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

/* Product Card */
.shop-product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.shop-product-img-link {
    display: block;
}

.shop-product-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-section);
}

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

.shop-product-card:hover .shop-product-img img {
    transform: scale(1.06);
}

.shop-product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-light);
}

/* Badge */
.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

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

.shop-badge.featured {
    background: var(--accent);
    color: var(--primary);
}

/* Product Info */
.shop-product-info {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-product-cat {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.shop-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.shop-product-title a {
    color: inherit;
    transition: color var(--transition);
}

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

.shop-product-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

/* Product Bottom Row */
.shop-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.shop-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.shop-product-price del {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    margin-right: 6px;
}

.shop-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.shop-add-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}

.shop-add-cart-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
}

.shop-add-cart-btn svg {
    transition: transform var(--transition);
}

.shop-add-cart-btn:hover svg {
    transform: translateX(2px);
}

/* Product Card - Image Overlay */
.shop-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.shop-img-overlay span {
    padding: 8px 20px;
    background: var(--accent);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform var(--transition);
}

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

.shop-product-card:hover .shop-img-overlay span {
    transform: translateY(0);
}

/* Product Card - Action Buttons */
.shop-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.shop-detail-btn,
.shop-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.shop-detail-btn {
    background: var(--primary);
    color: white;
}

.shop-detail-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.shop-inquiry-btn {
    background: var(--accent);
    color: var(--primary);
}

.shop-inquiry-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.shop-detail-btn svg,
.shop-inquiry-btn svg {
    transition: transform var(--transition);
}

.shop-detail-btn:hover svg,
.shop-inquiry-btn:hover svg {
    transform: scale(1.15);
}

/* ===== Shop Grid v2 - 商城风格 ===== */
.shop-page-layout {
    padding: 40px 0 80px;
}
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.shop-filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-chip {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    transition: all 0.2s;
    text-decoration: none;
}
.filter-chip:hover,
.filter-chip.active {
    background: #FFC107;
    color: #1a1a1a;
}
.shop-sort select {
    padding: 8px 32px 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
}
.shop-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* 商品卡片 v2 */
.shop-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.shop-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.shop-product-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #fafafa;
}
.shop-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.shop-product-card:hover .shop-product-img img {
    transform: scale(1.08);
}
.shop-product-info {
    padding: 16px;
}
.shop-product-cat {
    display: inline-block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 6px;
}
.shop-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}
.shop-product-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.shop-product-title a:hover {
    color: #FFC107;
}
.shop-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 14px;
}
.shop-product-price del {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}
.shop-product-price ins {
    text-decoration: none;
}
.shop-product-actions {
    display: flex;
    gap: 8px;
}
.shop-add-cart-btn,
.shop-buy-now-btn,
.shop-detail-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.shop-add-cart-btn {
    background: #FFC107;
    color: #1a1a1a;
}
.shop-add-cart-btn:hover {
    background: #ffb300;
    color: #1a1a1a;
}
.shop-buy-now-btn {
    background: #1a1a1a;
    color: #fff;
}
.shop-buy-now-btn:hover {
    background: #333;
    color: #fff;
}
.shop-detail-btn {
    background: #f5f5f5;
    color: #555;
}
@media (max-width: 768px) {
    .shop-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .shop-product-info {
        padding: 12px;
    }
    .shop-product-actions {
        flex-direction: column;
    }
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== 促销横幅 ===== */
.product-promo-banner {
    position: relative;
    padding: 14px 0;
    margin: 0;
}
.promo-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.promo-tag {
    display: inline-block;
    padding: 4px 16px;
    background: #e53935;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.promo-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}
.product-promo-banner.has-bg {
    min-height: 60px;
}
.product-promo-banner.has-bg .promo-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== 产品详情页 - 数量选择器 + 按钮 ===== */
.quantity-wrap {
    margin-bottom: 16px;
}
.quantity-wrap label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.qty-minus,
.qty-plus {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-minus:hover,
.qty-plus:hover {
    background: #eee;
}
.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.action-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.btn-add-cart,
.btn-buy-now {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-add-cart {
    background: #FFC107;
    color: #1a1a1a;
}
.btn-add-cart:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.4);
}
.btn-buy-now {
    background: #1a1a1a;
    color: #fff;
}
.btn-buy-now:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 480px) {
    .action-btn-group {
        flex-direction: column;
    }
}

/* ===== 商城分页 ===== */
.shop-pagination {
    margin-top: 40px;
    text-align: center;
}
.shop-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-pagination .page-numbers li {
    display: inline;
}
.shop-pagination a,
.shop-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.shop-pagination a {
    background: #f5f5f5;
    color: #555;
}
.shop-pagination a:hover {
    background: #FFC107;
    color: #1a1a1a;
}
.shop-pagination span.current {
    background: #1a1a1a;
    color: #fff;
}

/* ---- WooCommerce 提示框 ---- */
.woocommerce-notices-wrapper {
    margin-bottom: 0;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* WooCommerce Pagination */
.woocommerce-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* ===== WooCommerce 通知提示 ===== */
.woocommerce-notices-wrapper {
    position: relative;
    z-index: 10;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin: 0 auto !important;
    padding: 16px 24px !important;
    list-style: none !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.woocommerce-message {
    background: #f0fff0;
    color: #2e7d32;
    border-bottom: 1px solid #c8e6c9;
}
.woocommerce-error {
    background: #fff0f0;
    color: #c62828;
    border-bottom: 1px solid #ffcdd2;
}
.woocommerce-info {
    background: #fff8e1;
    color: #f57f17;
    border-bottom: 1px solid #ffecb3;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    font-weight: 600;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.woocommerce-message a { background: #2e7d32; color: #fff; }
.woocommerce-error a { background: #c62828; color: #fff; }
.woocommerce-info a { background: #f57f17; color: #fff; }
.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover { opacity: 0.85; }
.woocommerce-message li,
.woocommerce-error li,
.woocommerce-info li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
}

.woocommerce-pagination li {
    display: inline-block;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--bg-section);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-mid);
    font-weight: 500;
    transition: all var(--transition);
}

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

/* No Products */
.woocommerce-no-products-found {
    text-align: center;
    padding: 80px 20px;
}

.woocommerce-info {
    text-align: center;
    padding: 24px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    color: var(--text-mid);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ===================================================
   WooCommerce - 产品详情页 (Single Product)
=================================================== */

/* Product Hero */
.product-detail-hero {
    margin-top: var(--nav-height);
    padding: 28px 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
}

.product-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: calc(var(--topbar-height) + var(--nav-height) + 10px);
}

@media (max-width: 768px) {
    .product-breadcrumb {
        padding-top: calc(var(--nav-height) + 10px);
    }
}

.product-breadcrumb a {
    color: var(--text-mid);
    transition: color var(--transition);
}

.product-breadcrumb a:hover {
    color: var(--accent);
}

.product-breadcrumb .sep {
    color: var(--border-color);
}

.product-breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* Product Detail Body */
.product-detail-body {
    padding: 60px 0;
    background: white;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Product Gallery */
.product-gallery-col {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.product-main-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.product-main-image img.zoomable:hover {
    transform: scale(1.02);
}

.product-img-placeholder {
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    color: var(--text-light);
    gap: 16px;
}

.product-sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Gallery Thumbnails */
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    padding: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255,193,7,0.3);
}

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

/* Product Info Column */
.product-info-cat {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-info-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Price Box */
.product-price-box {
    padding: 20px 24px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.price-regular del {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.price-sale {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

/* Short Description */
.product-short-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-short-desc p {
    margin-bottom: 8px;
}

/* Meta Row */
.product-meta-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item {
    font-size: 0.9rem;
}

.product-meta-item strong {
    color: var(--text-mid);
    margin-right: 6px;
}

.stock-status.in-stock {
    color: #27ae60;
    font-weight: 600;
}

.stock-status.out-stock {
    color: #e74c3c;
    font-weight: 600;
}

/* Product Attributes */
.product-attributes {
    margin-bottom: 24px;
}

.product-attr-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.product-attr-row:last-child {
    border-bottom: none;
}

.attr-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-mid);
}

.attr-value {
    color: var(--text-dark);
}

/* Actions */
.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 双按钮容器 */
.product-actions-inner {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* WooCommerce 原生的 .cart form */
.product-actions .cart {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 数量输入框 */
.product-actions .quantity {
    display: flex;
    align-items: center;
}

.product-actions .quantity input.qty {
    width: 64px;
    height: 48px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: #fff;
    transition: border-color var(--transition);
}

.product-actions .quantity input.qty:focus {
    border-color: var(--accent);
    outline: none;
}

/* 加入购物车按钮 - 金色主按钮 */
.product-actions .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    line-height: 1.4;
}

.product-actions .single_add_to_cart_button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.45);
    color: var(--primary);
}

/* 库存状态选择器（variable product） */
.product-actions .variations_form {
    width: 100%;
}

.product-actions .variations {
    margin-bottom: 10px;
}

.product-actions .variations select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

/* 自定义价格询价按钮 - 深色风格 */
.btn-inquiry-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-inquiry-custom:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #fff;
}

.btn-inquiry-custom svg {
    transition: transform var(--transition);
}

.btn-inquiry-custom:hover svg {
    transform: scale(1.1);
}

.btn-out-stock {
    padding: 14px 32px;
    background: #eee;
    color: #999;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    font-family: inherit;
}

/* ===================================================
   Product Tabs (Description / Specs / Inquiry)
=================================================== */
.product-description-section {
    padding: 60px 0 80px;
    background: var(--bg-section);
}

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

.product-tab-nav {
    display: flex;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.product-tab-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

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

/* Long Description */
.product-long-desc {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-mid);
}

.product-long-desc h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 14px;
}

.product-long-desc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 22px 0 10px;
}

.product-long-desc p {
    margin-bottom: 14px;
}

.product-long-desc ul,
.product-long-desc ol {
    margin: 12px 0;
    padding-left: 24px;
}

.product-long-desc li {
    list-style: disc;
    margin-bottom: 6px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table thead th {
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
}

.specs-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.specs-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.specs-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.specs-table tbody tr:nth-child(even) td {
    background: rgba(0,0,0,0.015);
}

.specs-table tbody tr:hover td {
    background: rgba(255,193,7,0.06);
}

.specs-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-mid);
    width: 35%;
}

.specs-table tbody td:last-child {
    color: var(--text-dark);
}

.no-specs {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Inquiry Form */
.inquiry-form-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.inquiry-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.inquiry-form {
    max-width: 650px;
}

/* ===================================================
   Related Products (WooCommerce)
=================================================== */
.related-products-section {
    padding: 80px 0;
    background: white;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.related-product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

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

.related-img-link {
    display: block;
}

.related-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-section);
}

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

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

.related-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-light);
}

.related-info {
    padding: 16px 20px 20px;
}

.related-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.related-price del {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    margin-right: 6px;
}

.related-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.related-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-info h4 a {
    color: var(--text-dark);
    transition: color var(--transition);
}

.related-info h4 a:hover {
    color: var(--accent);
}

/* ===================================================
   WooCommerce Responsive
=================================================== */
@media (max-width: 1024px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-gallery-col {
        position: static;
    }
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 50px 0;
    }
    .shop-hero h1 {
        font-size: 1.8rem;
    }
    .shop-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .shop-product-img {
        height: 200px;
    }
    .shop-product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .shop-add-cart-btn {
        width: 100%;
        justify-content: center;
    }
    .product-detail-body {
        padding: 30px 0;
    }
    .product-info-title {
        font-size: 1.5rem;
    }
    .product-tab-nav {
        overflow-x: auto;
    }
    .tab-btn {
        padding: 14px 20px;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    .product-tab-content {
        padding: 24px 20px;
    }
    .product-actions,
    .product-actions-inner {
        flex-direction: column;
    }
    .product-actions .cart {
        flex-direction: column;
        align-items: stretch;
    }
    .product-actions .single_add_to_cart_button,
    .btn-inquiry-custom {
        width: 100%;
        justify-content: center;
    }
    .related-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .shop-product-grid {
        grid-template-columns: 1fr;
    }
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-grid {
        gap: 30px;
    }
    .product-price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===================================================
   WooCommerce - 通用页面样式 (Cart/Checkout/MyAccount)
=================================================== */

/* Page Hero */
.wc-page-hero {
    margin-top: var(--nav-height);
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
    color: white;
}

.wc-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.wc-page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* Breadcrumb */
.wc-breadcrumb {
    padding: 16px 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
}

.wc-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.wc-breadcrumb a {
    color: var(--text-mid);
    transition: color var(--transition);
}

.wc-breadcrumb a:hover {
    color: var(--accent);
}

.wc-breadcrumb .sep {
    color: var(--border-color);
}

.wc-breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* Page Section */
.wc-page-section {
    padding: 60px 0 90px;
    background: var(--bg-white);
}

/* Empty State */
.wc-empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.wc-empty-icon {
    margin-bottom: 24px;
}

.wc-empty-cart h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.wc-empty-cart p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===================================================
   WooCommerce - 购物车表格 (Cart Table)
=================================================== */

.wc-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.wc-cart-table-wrap {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.wc-cart-table thead {
    background: var(--bg-section);
}

.wc-cart-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.wc-cart-table tbody td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.wc-cart-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-cart-table .product-thumbnail {
    width: 100px;
}

.wc-cart-table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.wc-cart-table .product-name {
    font-weight: 600;
    color: var(--primary);
}

.wc-cart-table .product-name a {
    color: var(--primary);
    transition: color var(--transition);
}

.wc-cart-table .product-name a:hover {
    color: var(--accent);
}

.wc-cart-table .product-price,
.wc-cart-table .product-subtotal {
    font-weight: 600;
    color: var(--primary);
}

.wc-cart-table .product-quantity .qty {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.9rem;
    font-family: inherit;
}

.wc-cart-table .product-quantity .qty:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

.wc-cart-table .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fce4ec;
    color: #c62828;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
}

.wc-cart-table .product-remove .remove:hover {
    background: #c62828;
    color: white;
}

/* Cart Actions Row */
.wc-cart-actions-row td {
    padding: 20px !important;
    background: var(--bg-section);
}

.wc-cart-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wc-coupon {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 350px;
}

.wc-coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.wc-coupon-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

/* Cart Sidebar */
.wc-cart-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.wc-cart-totals {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.wc-cart-totals h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.wc-cart-totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wc-cart-totals th,
.wc-cart-totals td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.wc-cart-totals th {
    text-align: left;
    color: var(--text-mid);
    font-weight: 500;
}

.wc-cart-totals td {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.wc-cart-totals .order-total th,
.wc-cart-totals .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 16px;
}

/* Proceed to Checkout */
.wc-proceed-checkout {
    margin-top: 20px;
}

.wc-checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px !important;
    font-size: 1.05rem !important;
}

.wc-checkout-btn svg {
    transition: transform var(--transition);
}

.wc-checkout-btn:hover svg {
    transform: translateX(4px);
}

/* ===================================================
   WooCommerce - 结算页面 (Checkout)
=================================================== */

.wc-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
}

.wc-checkout-section {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.wc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.wc-section-title svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* Checkout Form Fields */
.wc-form-fields .form-row {
    margin-bottom: 16px;
}

.wc-form-fields label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
}

.wc-form-fields label .required {
    color: #e74c3c;
}

.wc-form-fields .input-text,
.wc-form-fields select,
.wc-form-fields textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: white;
    font-family: inherit;
    transition: border-color var(--transition);
}

.wc-form-fields .input-text:focus,
.wc-form-fields select:focus,
.wc-form-fields textarea:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

.wc-form-fields select {
    height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='16' height='16' fill='%23444' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.wc-form-fields textarea {
    min-height: 100px;
    resize: vertical;
}

/* WooCommerce form-row layout (two-column on larger screens) */
.wc-form-fields .form-row-first,
.wc-form-fields .form-row-last {
    width: 48%;
}

.wc-form-fields .form-row-first {
    float: left;
}

.wc-form-fields .form-row-last {
    float: right;
}

.wc-form-fields .form-row-wide {
    clear: both;
    width: 100%;
}

.wc-form-fields:after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .wc-form-fields .form-row-first,
    .wc-form-fields .form-row-last {
        width: 100%;
        float: none;
    }
}

/* Checkout - Payment */
#payment {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

#payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

#payment ul.payment_methods li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#payment ul.payment_methods label {
    font-weight: 600;
    cursor: pointer;
}

#payment .place-order {
    margin-top: 16px;
}

#place_order {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

#place_order:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.45);
}

/* ===================================================
   WooCommerce - 我的账户 (My Account)
=================================================== */

.wc-account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Account Sidebar */
.wc-account-sidebar {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.wc-account-avatar {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.wc-account-avatar h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 12px 0 4px;
}

.wc-account-avatar .user-email {
    font-size: 0.82rem;
    opacity: 0.75;
}

.wc-account-nav {
    padding: 12px 0;
}

.wc-account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.92rem;
    color: var(--text-mid);
    border-left: 3px solid transparent;
    transition: all var(--transition);
}

.wc-account-nav-link:hover,
.wc-account-nav-link.is-active {
    background: rgba(255,193,7,0.1);
    color: var(--primary);
    border-left-color: var(--accent);
    font-weight: 600;
}

.wc-logout-link {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 16px;
    color: #c62828;
}

.wc-logout-link:hover {
    color: #c62828;
    border-left-color: #c62828;
    background: rgba(198,40,40,0.05);
}

/* Account Content */
.wc-account-content {
    min-height: 400px;
}

.wc-account-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 32px;
}

.wc-account-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.wc-account-card p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table thead th {
    background: var(--bg-section);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    border-bottom: 2px solid var(--border-color);
}

.woocommerce-orders-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Addresses */
.woocommerce-Address {
    padding: 20px;
    background: var(--bg-section);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.woocommerce-Address .edit {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* ===================================================
   WooCommerce - 登录/注册 (Auth Forms)
=================================================== */

.wc-auth-layout {
    max-width: 520px;
    margin: 0 auto;
}

.wc-auth-form-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Auth Tabs */
.wc-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wc-auth-tab {
    padding: 16px 24px;
    border: none;
    background: var(--bg-section);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.wc-auth-tab:hover {
    background: #e8e8e8;
}

.wc-auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: inset 0 -3px 0 var(--accent);
}

/* Auth Panels */
.wc-auth-panel {
    display: none;
    padding: 36px;
}

.wc-auth-panel.active {
    display: block;
}

/* Auth Form Groups */
.wc-auth-form-group {
    margin-bottom: 20px;
}

.wc-auth-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-mid);
}

.wc-auth-form-group label .required {
    color: #e74c3c;
}

.wc-auth-form-group .input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color var(--transition);
}

.wc-auth-form-group .input-text:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}

.wc-auth-form-row {
    margin-bottom: 20px;
}

.wc-auth-form-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
    cursor: pointer;
}

.wc-auth-form-actions {
    margin-bottom: 20px;
}

.wc-auth-form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
}

.wc-auth-form-footer {
    text-align: center;
}

.wc-auth-form-footer a {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color var(--transition);
}

.wc-auth-form-footer a:hover {
    color: var(--accent);
}

/* ===================================================
   WooCommerce - 通知消息 (Notices)
=================================================== */

.wc-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.92rem;
    animation: noticeSlideIn 0.3s ease;
}

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

.wc-notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.wc-notice-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.wc-notice-success .wc-notice-icon {
    color: #2e7d32;
}

.wc-notice-error {
    background: #fce4ec;
    color: #7f0000;
    border: 1px solid #ef9a9a;
}

.wc-notice-error .wc-notice-icon {
    color: #c62828;
}

.wc-notice-info,
.wc-notice-notice {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.wc-notice-info .wc-notice-icon,
.wc-notice-notice .wc-notice-icon {
    color: #1565c0;
}

.wc-notice a {
    font-weight: 600;
    text-decoration: underline;
}

.wc-notice-success a { color: #1b5e20; }
.wc-notice-error a { color: #7f0000; }
.wc-notice-info a,
.wc-notice-notice a { color: #0d47a1; }

/* ===================================================
   WooCommerce - 响应式 (Responsive)
=================================================== */

@media (max-width: 1024px) {
    .wc-cart-layout {
        grid-template-columns: 1fr;
    }

    .wc-cart-sidebar {
        position: static;
    }

    .wc-account-layout {
        grid-template-columns: 1fr;
    }

    .wc-account-sidebar {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .wc-page-hero {
        padding: 40px 0 30px;
    }

    .wc-page-hero h1 {
        font-size: 1.6rem;
    }

    .wc-cart-table thead {
        display: none;
    }

    .wc-cart-table tbody td {
        display: block;
        text-align: right;
        padding: 12px 16px;
    }

    .wc-cart-table tbody td::before {
        content: attr(data-title) ": ";
        float: left;
        font-weight: 600;
        color: var(--text-mid);
    }

    .wc-cart-table .product-thumbnail {
        text-align: center;
    }

    .wc-cart-table .product-thumbnail::before {
        display: none;
    }

    .wc-cart-actions {
        flex-direction: column;
    }

    .wc-coupon {
        max-width: 100%;
        width: 100%;
    }

    .wc-checkout-section {
        padding: 20px;
    }

    .wc-auth-panel {
        padding: 24px;
    }

    .wc-account-card {
        padding: 20px;
    }

    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table tbody td {
        display: block;
        text-align: right;
        padding: 10px 12px;
    }

    .woocommerce-orders-table tbody td::before {
        content: attr(data-title) ": ";
        float: left;
        font-weight: 600;
        color: var(--text-mid);
    }

    .shop-product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wc-cart-layout,
    .wc-checkout-layout,
    .wc-account-layout {
        gap: 20px;
    }

    .wc-page-section {
        padding: 40px 0 60px;
    }

    .wc-auth-form-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ===================================================
   Custom Products Responsive
=================================================== */
@media (max-width: 1024px) {
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .custom-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .custom-products-section {
        padding: 60px 0;
    }
}
