/* css/style.css */
:root {
    --primary-color: #1a5276;
    --primary-dark: #154360;
    --accent-color: #f1c40f;
    --accent-hover: #d4ac0d;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 4px;
    --radius-lg: 8px;
    --max-width: 1200px;
    --header-height: 100px;
    --font-family: "Segoe UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-md: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-xxl: 40px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题基础层级（组件类可覆盖） */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: var(--font-size-xxl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-xl); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--font-size-lg); font-weight: 600; }
h4 { font-size: var(--font-size-base); font-weight: 600; }
h5 { font-size: var(--font-size-sm); font-weight: 500; }
h6 { font-size: var(--font-size-xs); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0; }

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

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

ul, ol {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    background: var(--primary-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Home page: fixed nav with transparent state over hero banner */
body.home-page .nav {
    position: fixed;
    background: transparent;
    box-shadow: none;
    will-change: background, box-shadow;
}

body.home-page .nav.nav-scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Transparent nav: light text for menu items */
body.home-page .nav.nav-transparent .nav-menu > li > a {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

body.home-page .nav.nav-transparent .nav-menu > li.active > a {
    color: white;
}

body.home-page .nav.nav-transparent .nav-logo {
    color: white;
}

body.home-page .nav.nav-transparent .nav-logo-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* 透明导航态：select 白字由下方新规则统一处理 */

/* Mobile toggle button color when transparent */
body.home-page .nav.nav-transparent .mobile-toggle {
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo in nav */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: white;
}

.nav-logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-logo-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 26px;
}

.nav-logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

/* Nav menu */
.nav-menu {
    display: flex;
    height: 100%;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-lg);
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-md);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-menu > li > a:hover {
    color: white;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu > li:hover > a::after {
    width: 60%;
    background: var(--accent-color);
}

.nav-menu > li.active > a {
    color: white;
}

.nav-menu > li.active > a::after {
    width: 60%;
    background: var(--accent-color);
}

.nav-menu > li > a .arrow {
    margin-left: 4px;
    font-size: 10px;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

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

.nav-dropdown li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Language switcher (原生 select) — 旧版 .nav-language > a 规则已移除，统一由下方新规则处理 */

/* Dropdown */
.nav-language {
    margin-left: var(--spacing-lg);
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-language #lang-switcher {
    height: 38px;
    min-width: 130px;
    padding: 0 30px 0 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background-color: rgba(255,255,255,0.95);
    color: var(--primary-color, #1a5276);
    font-size: var(--font-size-sm, 14px);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a5276' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.2s ease;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-language #lang-switcher:hover,
.nav-language #lang-switcher:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.nav-language #lang-switcher option {
    color: var(--text-primary, #333);
    background: var(--bg-white, #fff);
    padding: 8px;
}

/* 透明导航态：白色背景 + 深色字，保持高对比度 */
body.home-page .nav.nav-transparent .nav-language #lang-switcher {
    color: var(--primary-color, #1a5276);
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.95);
}

/* 滚动后导航态：白色背景 + 深色字 */
body.home-page .nav.nav-scrolled .nav-language #lang-switcher {
    color: var(--primary-color, #1a5276);
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.95);
}

/* 非首页：白色背景 + 深色字，确保清晰度 */
.nav:not(.nav-transparent) .nav-language #lang-switcher {
    color: var(--primary-color, #1a5276);
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.95);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: var(--spacing-sm);
    margin-left: auto;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: translateZ(0);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

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

.hero-dot.active {
    background: var(--accent-color);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* Section Common */
.section {
    padding: var(--spacing-xxl) 0;
}

/* Home page: extra top padding for sections after hero to account for fixed nav */
body.home-page main > .section {
    padding-top: calc(var(--header-height) + var(--spacing-xxl));
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: var(--font-size-xxl);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding: 0 var(--spacing-xl);
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.section-header h2::before { left: -40px; }
.section-header h2::after { right: -40px; }

.section-header p {
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-base);
}

/* Product Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.product-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    background: var(--bg-white);
}

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

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

/* ===== 基础卡片样式（列表页 + 详情页共用） ===== */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-card-img {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* contain：完整显示整张封面图（规格表不被裁切），留白形成“白画布+灰底相框”效果 */
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background: #fff;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card-img .placeholder-img {
    width: 80px;
    height: 80px;
    background: var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.product-card-body {
    padding: var(--spacing-md);
    text-align: center;
}

.product-card-title {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.product-card-title:hover {
    color: var(--primary-color);
}

/* ===== 列表页专属样式（仅 .product-grid 内的卡片） ===== */
.product-grid .product-card {
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: cardFadeIn 0.6s ease backwards;
}

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

.product-grid .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 82, 118, 0.18);
}

/* 卡片顶部装饰条 */
.product-grid .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
}

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

.product-grid .product-card:active {
    transform: translateY(-2px);
    transition-duration: 0.15s;
}

/* 卡片错落入场动画延迟 */
.product-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-grid .product-card:nth-child(6) { animation-delay: 0.3s; }
.product-grid .product-card:nth-child(n+7) { animation-delay: 0.35s; }

.product-grid .product-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-grid .product-card-img {
    position: relative;
    height: 340px;
}

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

/* 图片底部渐变遮罩（优雅的信息层） */
.product-grid .product-card-img::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background: linear-gradient(to top, rgba(26, 82, 118, 0.85) 0%, rgba(26, 82, 118, 0) 100%);
    transition: height 0.4s ease;
    pointer-events: none;
}

.product-grid .product-card:hover .product-card-img::after {
    height: 40%;
}

.product-grid .product-card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-grid .product-card-title {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 2);
    transition: color 0.3s ease;
    font-weight: 600;
    color: var(--text-primary);
}

.product-grid .product-card:hover .product-card-title {
    color: var(--primary-color);
}

/* 卡片底部装饰分隔线 + Explore 链接 */
.product-grid .product-card-divider {
    width: 30px;
    height: 2px;
    background: var(--border-color);
    margin: 0 auto 12px 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 1px;
}

.product-grid .product-card:hover .product-card-divider {
    width: 60px;
    background: var(--primary-color);
}

.product-grid .product-card-explore {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.product-grid .product-card-explore .arrow {
    transition: transform 0.3s ease;
}

.product-grid .product-card:hover .product-card-explore {
    color: var(--primary-color);
}

.product-grid .product-card:hover .product-card-explore .arrow {
    transform: translateX(4px);
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

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

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

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

.about-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* CSS @property for stat number animation */
@property --n {
    syntax: '<integer>';
    inherits: false;
    initial-value: 0;
}

/* Stats — 深蓝主色重点块，黄色数字点缀 */
.stats-section {
    background: var(--primary-color);
    padding: calc(var(--spacing-xxl) * 1.35) 0;
}

.stats-section .section-header h2 {
    color: #fff;
}

.stats-section .section-header h2::before,
.stats-section .section-header h2::after {
    background: var(--accent-color);
}

.stats-section .section-header p {
    color: rgba(255,255,255,0.75);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg) var(--spacing-md);
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number-val {
    counter-reset: n var(--n);
    animation: stat-count-up 2s ease-out forwards;
}

.stat-number-val::after {
    content: counter(n);
}

/* Scroll-triggered animation (Chrome/Edge 115+, Safari 26+) */
@supports (animation-timeline: view()) {
    .stat-number-val {
        animation-timeline: view();
        animation-range: entry 10% cover 40%;
    }
}

.stat-suffix {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.85);
}

@keyframes stat-count-up {
    to { --n: var(--target); }
}

/* Partners Section */
.partners-section {
    background: var(--bg-light);
    padding: var(--spacing-xxl) 0;
}

.partners-section .section-header p {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.partners-image-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.partners-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.partners-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* Poster Section */
/* Honors Focus Carousel */
.honors-section {
    background: linear-gradient(180deg, #edf1f5 0%, #dde6ee 100%);
    overflow: hidden;
}

.case-section {
    background: linear-gradient(180deg, #eef2f5 0%, #f8f9fa 100%);
    overflow: hidden;
}

.honors-carousel {
    position: relative;
    width: 100%;
    height: 460px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 中心卡片：高度固定，宽度按图片实际比例自适应（图片完整显示不裁剪） */
.honors-item {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 400px;
    width: max-content;
    max-width: 560px;
    margin-top: -200px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.6s ease,
                z-index 0s linear 0.3s;
    cursor: pointer;
    will-change: transform, opacity;
}

.honors-item-inner {
    position: relative;
    width: max-content;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transform-origin: center center;
}

.honors-item-inner img {
    display: block;
    height: 400px;
    width: auto;
    max-width: 560px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* Caption for case items */
.honors-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.honors-item-caption h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.honors-item.position-center .honors-item-caption {
    opacity: 1;
}

/* Center item: 基于自身宽度居中 */
.honors-item.position-center {
    transform: translateX(-50%) scale(1) rotate(0deg);
    z-index: 10;
    opacity: 1;
}

.honors-item.position-center .honors-item-inner {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.honors-item.position-center .honors-item-inner img {
    transform: scale(1.02);
}

/* Left-1: 自身宽度居中后向左偏移 220px */
.honors-item.position-left-1 {
    transform: translateX(calc(-50% - 220px)) scale(0.72) rotate(-7deg);
    z-index: 5;
    opacity: 0.85;
}

.honors-item.position-left-1 .honors-item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Left-2: 向左偏移 360px */
.honors-item.position-left-2 {
    transform: translateX(calc(-50% - 360px)) scale(0.52) rotate(-12deg);
    z-index: 3;
    opacity: 0.55;
}

.honors-item.position-left-2 .honors-item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* Right-1: 自身宽度居中后向右偏移 220px */
.honors-item.position-right-1 {
    transform: translateX(calc(-50% + 220px)) scale(0.72) rotate(7deg);
    z-index: 5;
    opacity: 0.85;
}

.honors-item.position-right-1 .honors-item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-90deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Right-2: 向右偏移 360px */
.honors-item.position-right-2 {
    transform: translateX(calc(-50% + 360px)) scale(0.52) rotate(12deg);
    z-index: 3;
    opacity: 0.55;
}

.honors-item.position-right-2 .honors-item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-90deg, rgba(0,0,0,0.5), rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* Hidden items (too far away) */
.honors-item.position-hidden {
    transform: translateX(-50%) scale(0.3);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Navigation arrows */
.honors-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 82, 118, 0.85);
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.honors-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.honors-prev { left: 16px; }
.honors-next { right: 16px; }

/* Dots indicator */
.honors-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.honors-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 82, 118, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.honors-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
}

.honors-dot:hover {
    background: rgba(26, 82, 118, 0.6);
}

/* Case Section */
.case-section {
    background: var(--primary-color);
}

.case-section .section-header h2 {
    color: white;
}

.case-section .section-header h2::before,
.case-section .section-header h2::after {
    background: white;
}

.case-section .section-header p {
    color: rgba(255,255,255,0.7);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.case-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

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

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

.case-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.case-card-overlay h3 {
    font-size: var(--font-size-lg);
}

.case-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.case-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.news-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow);
}

.news-card-img {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    background: var(--bg-gray);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.news-card-body {
    flex: 1;
}

.news-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.news-card-title:hover {
    color: var(--primary-color);
}

.news-card-meta {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.news-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   增量样式：新闻详情页（补充 style.css）
   ========================================================= */

/* 1. 侧边栏新闻列表（替换原“联系我们”区域） */
.sidebar-news-list {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.sidebar-news-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: var(--bg-light);
}

.sidebar-news-item a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.sidebar-news-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sidebar-news-title {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: var(--primary-color);
}

/* 2. 新闻正文补充（完善原有的 .news-detail-content） */
.news-detail-content h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.news-detail-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.news-detail-content h3 {
    font-size: var(--font-size-lg);
    margin: var(--spacing-lg) 0 var(--spacing-md);
    color: var(--text-primary);
}

.news-detail-content ul,
.news-detail-content ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-detail-content ul li {
    list-style: disc;
}

.news-detail-content ol li {
    list-style: decimal;
}

/* 3. 相关新闻模块 */
.related-news {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.related-news h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.related-news-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.related-news-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.related-news-item .related-thumb {
    width: 100%;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
}

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

.related-news-item .related-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-item:hover .related-title {
    color: var(--primary-color);
}


/* Links Section */
.links-section {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.links-section h4 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.links-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.links-list a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.links-list a:hover {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

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

.cta-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cta-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.cta-text h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 2px;
}

.cta-text p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.cta-search {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.cta-search input {
    flex: 1;
    height: 44px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: var(--font-size-base);
    outline: none;
}

.cta-search button {
    height: 44px;
    padding: 0 var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.cta-search button:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.footer-col h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-links a::before {
    content: '›';
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    min-width: 0;
}

.footer-contact-item span:last-child {
    overflow-wrap: anywhere;
    min-width: 0;
}

.footer-contact-item .icon {
    color: var(--primary-color);
    width: 16px;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Sidebar Float */
.float-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.float-sidebar-item {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 10px;
    color: var(--text-secondary);
}

.float-sidebar-item:first-child {
    border-radius: var(--radius) 0 0 0;
}

.float-sidebar-item:last-child {
    border-radius: 0 0 0 var(--radius);
}

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

.float-sidebar-item .icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.float-sidebar-item .label {
    font-size: 10px;
    line-height: 1;
}

.float-sidebar-item svg {
    display: block;
}

/* WhatsApp 品牌绿 */
.float-sidebar-item-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}
.float-sidebar-item-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

/* Tawk 站点主色 */
.float-sidebar-item-tawk {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.float-sidebar-item-tawk:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* 实时聊天与淘宝之间增大间距，区分沟通渠道与电商入口 */
/* 用 ~ 而非 +，因为 tawk 按钮与淘宝按钮之间可能隔着 <script> 标签 */
.float-sidebar-item-tawk ~ .float-sidebar-item-taobao {
    margin-top: 10px;
}

/* 淘宝品牌橙 */
.float-sidebar-item-taobao {
    background: #FF4400;
    border-color: #FF4400;
    color: #fff;
}
.float-sidebar-item-taobao:hover {
    background: #cc3600;
    border-color: #cc3600;
    color: #fff;
}
.float-sidebar-item-taobao .icon {
    font-weight: bold;
    line-height: 1;
}

/* 拼多多品牌红 */
.float-sidebar-item-pinduoduo {
    background: #E02E24;
    border-color: #E02E24;
    color: #fff;
}
.float-sidebar-item-pinduoduo:hover {
    background: #b3241c;
    border-color: #b3241c;
    color: #fff;
}
.float-sidebar-item-pinduoduo .icon {
    font-weight: bold;
    line-height: 1;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.back-to-top.show {
    display: flex;
}

/* Page Banner */
.page-banner {
    height: 420px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-banner-content h1 {
    font-size: 38px;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-banner-content .breadcrumb {
    font-size: var(--font-size-sm);
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.page-banner-content .breadcrumb a {
    color: white;
}

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

/* Page Content Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.page-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.page-sidebar {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: fit-content;
}

.page-sidebar-title {
    padding: var(--spacing-md);
    background: var(--bg-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.page-sidebar-menu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-sidebar-menu li a:hover,
.page-sidebar-menu li a.active {
    background: var(--primary-color);
    color: white;
}

/* Product List Page */
.product-list-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.product-sidebar {
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
    align-self: start;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height) - var(--spacing-lg));
}

.product-sidebar h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    flex-shrink: 0;
}

/* 分类树容器：独立滚动 */
.product-category-tree-wrap {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.product-category-tree-wrap::-webkit-scrollbar { width: 6px; }
.product-category-tree-wrap::-webkit-scrollbar-track { background: transparent; }
.product-category-tree-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.product-category-tree-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.product-category-tree {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    list-style: none;
}

.product-category-tree > li { list-style: none; }

/* All Categories 项 */
.product-category-tree > li.cat-all-item > a {
    display: block;
    padding: 10px var(--spacing-md);
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--primary-color);
}
.product-category-tree > li.cat-all-item > a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

/* 父分类行：分类名 + 数字徽章按钮 */
.product-category-tree > li > .cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
}
.product-category-tree > li:last-child > .cat-row { border-bottom: none; }

.product-category-tree > li > .cat-row > .cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px var(--spacing-md);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    color: var(--primary-color);
    min-width: 0;
    overflow: hidden;
}
.product-category-tree > li > .cat-row > .cat-link:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}
.product-category-tree > li > .cat-row > .cat-link .cat-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    padding-top: 1px;
}

/* 数字徽章按钮：垂直布局（子分类数 / 产品数 / 三角） */
.cat-badge {
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 4px 4px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
    font-family: inherit;
    min-width: 26px;
    width: 26px;
    line-height: 1;
}
.cat-badge:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}
.cat-badge:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}
/* 无子分类的纯展示徽章 */
.cat-badge-no-children {
    cursor: default;
    background: transparent;
}
.cat-badge-no-children:hover {
    background: transparent;
    color: var(--text-secondary);
}

/* 子分类数（小字，灰色） */
.cat-count-sub {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.2;
    font-weight: 500;
    min-width: 14px;
    text-align: center;
}

/* 产品数（稍大，主色） */
.cat-count-prod {
    font-size: 12px;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
}
.cat-badge:hover .cat-count-prod { color: var(--primary-dark); }
.cat-badge-no-children .cat-count-prod { color: var(--text-light); font-weight: 600; }

/* CSS border 三角形 */
.cat-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    margin-top: 1px;
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), border-top-color 0.2s ease;
}
.cat-badge:hover .cat-arrow { border-top-color: var(--primary-color); }
/* 展开时三角旋转 180°（朝下），带轻微回弹 */
.product-category-tree > li.open > .cat-row .cat-badge .cat-arrow {
    transform: rotate(180deg);
    border-top-color: var(--primary-color);
}

/* 父分类选中态：左侧竖条 + 浅色背景 */
.product-category-tree > li.has-active > .cat-row {
    background: rgba(26, 82, 118, 0.06);
    border-left: 3px solid var(--primary-color);
}
.product-category-tree > li.has-active > .cat-row > .cat-link {
    color: var(--primary-dark);
}
.product-category-tree > li.has-active > .cat-row .cat-count-prod {
    color: var(--primary-dark);
}
.product-category-tree > li.has-active > .cat-row .cat-badge {
    background: rgba(26, 82, 118, 0.08);
}

/* 子分类列表：max-height + opacity 展开动画 */
.product-subcategory {
    list-style: none;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.24s ease;
}
.product-category-tree > li.open > .product-subcategory {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease 0.04s;
}

.product-subcategory li { list-style: none; }

.product-subcategory li a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 6px var(--spacing-md) 6px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
    position: relative;
    transition: var(--transition);
    /* 子项初始状态：下移 + 透明（展开时由 .open 触发动画） */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.product-subcategory li:last-child a { border-bottom: none; }

/* 父分类展开时，子项依次淡入上滑（stagger 错开延迟） */
.product-category-tree > li.open > .product-subcategory > li > a {
    opacity: 1;
    transform: translateY(0);
}
.product-category-tree > li.open > .product-subcategory > li:nth-child(1) > a { transition-delay: 0.04s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(2) > a { transition-delay: 0.08s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(3) > a { transition-delay: 0.12s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(4) > a { transition-delay: 0.16s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(5) > a { transition-delay: 0.20s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(6) > a { transition-delay: 0.24s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(7) > a { transition-delay: 0.28s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(8) > a { transition-delay: 0.32s; }
.product-category-tree > li.open > .product-subcategory > li:nth-child(n+9) > a { transition-delay: 0.36s; }

.product-subcategory li a::before {
    content: '›';
    position: absolute;
    left: 12px;
    top: 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s ease;
}
.product-subcategory li a:hover::before {
    transform: translateX(2px);
}

.product-subcategory li a .cat-name-sub {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    padding-top: 1px;
}

/* 子分类行的产品数：固定 26px 宽，靠右，跟父分类徽章视觉一致 */
.product-subcategory li a .cat-count-prod {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    background: transparent;
    padding: 0;
    border-left: 1px solid var(--border-color);
    border-radius: 0;
    line-height: 1.5;
    flex-shrink: 0;
    width: 26px;
    min-width: 26px;
    text-align: center;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -6px -16px -6px 0;
    transition: var(--transition);
}

.product-subcategory li a:hover {
    color: var(--primary-color);
    background: rgba(26, 82, 118, 0.05);
}
.product-subcategory li a:hover .cat-count-prod {
    color: var(--primary-dark);
    background: rgba(26, 82, 118, 0.05);
}

/* 选中态：反白突出（高权重选择器，覆盖基础 hover 规则） */
.product-category-tree > li > .cat-row > .cat-link.active,
.product-subcategory li > a.active,
.product-category-tree > li.cat-all-item > a.active {
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 700;
}
.product-category-tree > li.cat-all-item > a.active {
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary-color) !important;
}
.product-category-tree a.active::before { color: #fff !important; }
/* 选中态子分类数字反白 */
.product-subcategory li > a.active .cat-count-prod {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-left-color: rgba(255,255,255,0.2);
}

/* 选中态 hover：保持深色背景（用全路径高权重选择器，覆盖 .cat-link:hover 的浅底） */
.product-category-tree > li > .cat-row > .cat-link.active:hover,
.product-subcategory li > a.active:hover {
    background: var(--primary-dark);
    color: #fff !important;
}
.product-category-tree > li.cat-all-item > a.active:hover {
    background: rgba(26, 82, 118, 0.15);
    color: var(--primary-dark) !important;
}
.product-subcategory li > a.active:hover .cat-count-prod {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.product-sidebar-contact {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.product-sidebar-contact h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    border: none;
    padding: 0;
}

.product-sidebar-contact p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.product-sidebar-contact p span {
    overflow-wrap: anywhere;
    min-width: 0;
}

/* Product Detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
}

.product-detail-gallery {
    position: relative;
}

.magnifier-wrapper {
    position: relative;
}

.product-detail-main-img {
    width: 100%;
    height: 420px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 4 L12 8 L15 8 L15 12 L17 12 L17 8 L20 8 Z M16 28 L12 24 L15 24 L15 20 L17 20 L17 24 L20 24 Z M4 16 L8 12 L8 15 L12 15 L12 17 L8 17 L8 20 Z M28 16 L24 12 L24 15 L20 15 L20 17 L24 17 L24 20 Z' fill='%231a5276'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%231a5276'/%3E%3C/svg%3E") 16 16, pointer;
    position: relative;
}

.product-detail-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.magnifier-lens {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid rgba(26, 82, 118, 0.9);
    background: rgba(26, 82, 118, 0.12);
    pointer-events: none;
    z-index: 10;
    will-change: transform;
}

.magnifier-result {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: white;
    background-repeat: no-repeat;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    pointer-events: none;
    overflow: hidden;
}

.product-detail-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thumb-nav {
    width: 28px;
    height: 64px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.product-detail-thumbs-wrapper.has-many .thumb-nav {
    display: flex;
}

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

.thumb-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-detail-thumbs {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 0 0 auto;
    /* 5 thumbs × 70px + 4 gaps × 8px + 4px horizontal padding = 386px */
    width: calc(5 * 70px + 4 * var(--spacing-sm) + 4px);
    max-width: 100%;
    padding: 4px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.product-detail-thumbs.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.product-detail-thumbs::-webkit-scrollbar {
    display: none;
}

.product-detail-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-detail-thumb:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-detail-thumb.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.product-detail-info h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.product-params {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
}

.product-param-row {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.product-param-row:nth-child(even) {
    background: var(--bg-light);
}

.product-param-name {
    width: 140px;
    color: var(--text-secondary);
    flex-shrink: 0;
    padding: 2px var(--spacing-sm);
    background: var(--bg-gray);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    margin-right: var(--spacing-md);
}

.product-param-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.product-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    background: #25d366;
    color: white;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.product-whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* CTA 按钮组（WhatsApp + Phone + Email） */
.product-cta-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: var(--spacing-md);
    align-items: center;
}

.product-cta-group .product-whatsapp-btn {
    margin-top: 0;
    padding: 8px 12px;
    font-size: 14px;
    gap: 4px;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

/* 电话按钮（主色轮廓） */
.product-cta-btn-phone {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.product-cta-btn-phone:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 邮箱按钮（文字链接） */
.product-cta-btn-email {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-cta-btn-email:hover {
    color: var(--primary-color);
}

/* Introduction & Inquiry */
.product-detail-full {
    grid-column: 1 / -1;
    margin-top: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.product-detail-full h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--primary-color);
    border-bottom: none;
    display: block;
}

.product-detail-full p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.inquiry-form {
    margin-top: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.inquiry-form h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--primary-color);
    border-bottom: none;
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    outline: none;
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-dark);
}

/* Related Products */
.related-products {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.related-products h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
    padding: 0 var(--spacing-xl);
}

.related-products h2::before,
.related-products h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.related-products h2::before { left: -40px; }
.related-products h2::after { right: -40px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Case Page */
.case-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
}

/* Contact Page */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
}

.contact-info-item {
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contact-info-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-info-item h3 {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.contact-info-item p {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Contact Main - Two Column */
.contact-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    align-items: stretch;
}

/* Left: Inquiry Form Card */
.contact-form-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    height: 100%;
    margin-top: 0;
}

.contact-form-card h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--primary-color);
    border-bottom: none;
    display: block;
}

.contact-form-card .contact-form-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-sm);
}

/* Right: Contact Detail Panel */
.contact-detail-panel {
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    height: 100%;
}

.contact-detail-panel h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-detail-item .icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.contact-detail-item .label {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-detail-item .value {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    overflow-wrap: anywhere;
}

.contact-detail-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: white;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: var(--spacing-lg);
    transition: var(--transition);
}

.contact-detail-whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xl);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

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

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-light);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
}

.news-card {
    position: relative;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.news-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-bg {
    transform: scale(1.08);
}

/* Gradient overlay: transparent at top, dark blue at bottom */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(26, 82, 118, 0.3) 0%,
        rgba(26, 82, 118, 0.60) 45%,
        rgba(21, 67, 96, 0.80) 100%);
    z-index: 2;
}

.news-card-body {
    position: relative;
    z-index: 3;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    margin-top: auto;
}

.news-card-cat {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.news-card-date {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--spacing-sm);
}

.news-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.news-card-title a {
    color: white;
}

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

.news-card-excerpt {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 2);
}

.news-card-more {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    transition: var(--transition);
}

.news-card-more:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Search Page */
.search-header {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.search-input-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.search-input-wrapper input {
    flex: 1;
    height: 48px;
    padding: 0 var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.search-input-wrapper button {
    height: 48px;
    padding: 0 var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.search-input-wrapper button:hover {
    background: var(--primary-dark);
}

.search-results-count {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.search-results {
    padding: var(--spacing-lg) 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.search-result-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.search-result-item:hover {
    box-shadow: var(--shadow);
}

.search-result-item-img {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    background: var(--bg-gray);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.search-result-item-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.search-result-item-type.type-product {
    background: #e3f2fd;
    color: #1976d2;
}

.search-result-item-type.type-news {
    background: #e8f5e9;
    color: #388e3c;
}

.search-result-item-type.type-case {
    background: #fff3e0;
    color: #f57c00;
}

.search-result-item-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.search-result-item-title:hover {
    color: var(--primary-color);
}

.search-result-item-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .honors-carousel {
        height: 360px;
    }
    .honors-item {
        width: max-content;
        max-width: 400px;
        height: 320px;
        margin-top: -160px;
    }
    .honors-item-inner img {
        height: 320px;
        max-width: 400px;
    }
    .honors-item.position-left-1 {
        transform: translateX(calc(-50% - 180px)) scale(0.68) rotate(-6deg);
    }
    .honors-item.position-right-1 {
        transform: translateX(calc(-50% + 180px)) scale(0.68) rotate(6deg);
    }
    .honors-item.position-left-2 {
        transform: translateX(calc(-50% - 300px)) scale(0.48) rotate(-10deg);
    }
    .honors-item.position-right-2 {
        transform: translateX(calc(-50% + 300px)) scale(0.48) rotate(10deg);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-main {
        grid-template-columns: 1fr;
    }
    .magnifier-result {
        display: none !important;
    }
    .magnifier-lens {
        display: none !important;
    }
    .product-detail-main-img {
        cursor: default;
    }
    /* 平板：横幅高度收紧 */
    .page-banner { height: 320px; }
    .page-banner-content h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    .search-result-item-img {
        width: 100%;
        height: 200px;
    }
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        height: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a {
        height: auto;
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* 手机：横幅进一步降低，保证标题与面包屑可读 */
    .page-banner { height: 240px; }
    .page-banner-content h1 { font-size: 26px; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--primary-dark);
    }
    .nav-dropdown li a {
        color: white;
        border-color: rgba(255,255,255,0.1);
    }
    .hero-banner { height: 100vh; min-height: 500px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: var(--font-size-sm); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .product-grid .product-card-img { height: 260px; }
    .product-grid .product-card-title { font-size: 14px; }
    .news-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 36px; }
    .stat-suffix { font-size: 30px; }
    .case-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .product-list-layout { grid-template-columns: 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; }
    /* 移动端：取消 sidebar sticky，避免挤压；分类树给限制高度独立滚动 */
    .product-sidebar {
        position: static;
        max-height: none;
    }
    .product-category-tree-wrap {
        max-height: 340px;
    }
    .product-detail-main { grid-template-columns: 1fr; }
    .product-detail-main-img { height: 300px; }
    .form-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .case-page-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-main { grid-template-columns: 1fr; }
    .cta-content { flex-direction: column; gap: var(--spacing-md); }
    .float-sidebar { display: none; }
    .section { padding: var(--spacing-xl) 0; }
    .honors-carousel {
        height: 300px;
    }
    .honors-item {
        width: max-content;
        max-width: 340px;
        height: 280px;
        margin-top: -140px;
    }
    .honors-item-inner img {
        height: 280px;
        max-width: 340px;
    }
    .honors-item.position-left-1 {
        transform: translateX(calc(-50% - 140px)) scale(0.6) rotate(-5deg);
    }
    .honors-item.position-right-1 {
        transform: translateX(calc(-50% + 140px)) scale(0.6) rotate(5deg);
    }
    .honors-item.position-left-2,
    .honors-item.position-right-2 {
        display: none;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sidebar-news-thumb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-grid .product-card-img { height: 300px; }
    .product-grid .product-card-title { font-size: 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 32px; }
    .stat-suffix { font-size: 26px; }
    .case-page-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    /* 小屏：横幅最小高度，避免占比过高 */
    .page-banner { height: 190px; }
    .page-banner-content h1 { font-size: 22px; }
    .honors-carousel {
        height: 260px;
    }
    .honors-item {
        width: max-content;
        max-width: 280px;
        height: 240px;
        margin-top: -120px;
    }
    .honors-item-inner img {
        height: 240px;
        max-width: 280px;
    }
    .honors-item.position-left-1 {
        transform: translateX(calc(-50% - 100px)) scale(0.55) rotate(-4deg);
    }
    .honors-item.position-right-1 {
        transform: translateX(calc(-50% + 100px)) scale(0.55) rotate(4deg);
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
    }
}