/*
Theme Name: Raysko
Theme URI: https://www.raysko.com/
Author: Raysko
Author URI: https://www.raysko.com/
Description: Custom theme for Raysko website
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raysko
Tags: custom-background, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Design Tokens */
:root {
    --brand: #00a7d2;
    --brand-dark: #008cb0;
    --brand-deep: #0066b3;
    --brand-grad: linear-gradient(135deg, #00a7d2 0%, #008cb0 100%);
    --brand-grad-deep: linear-gradient(135deg, #0066b3 0%, #004480 100%);
    --ink: #222;
    --ink-soft: #333;
    --muted: #666;
    --muted-2: #777;
    --muted-3: #888;
    --muted-4: #999;
    --line: #e5e5e5;
    --line-soft: #eee;
    --bg: #f1f1f1;
    --bg-soft: #f8f9fa;
    --bg-white: #fff;
    --hero-grad: linear-gradient(180deg, #e8f6fc 0%, #d7ebf4 100%);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-brand: 0 8px 20px rgba(0, 167, 210, 0.25);
    --radius: 0;
    --radius-sm: 0;
    --radius-pill: 20px;
    --content-w: clamp(320px, 92vw, 1400px);
    --header-h: 70px;
    --topbar-h: 40px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    background-color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

ul {
    list-style: none;
}

.clear::after {
    content: "";
    display: block;
    clear: both;
}

.wd,
.container {
    width: var(--content-w);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: #f6986a;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    z-index: 1001;
}

.top-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-banner p {
    margin: 0;
    text-align: center;
}

.top-banner a {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0) 100%);
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 鼠标悬浮下拉菜单时，头部从透明渐变切换为白色实底，文字转为深色 */
.header:has(.head-nav .column:hover),
.header:has(.drop-down:hover) {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.header:has(.head-nav .column:hover) .head-nav .item,
.header:has(.drop-down:hover) .head-nav .item {
    color: #1a2a4a;
}

.header:has(.head-nav .column:hover) .head-nav .item::after,
.header:has(.drop-down:hover) .head-nav .item::after,
.header:has(.head-nav .column:hover) .head-nav .item:hover::after {
    background: var(--brand, #0066b3);
}

.head-wrap {
    width: var(--content-w);
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head-logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.head-logo a {
    display: block;
}

.head-rbox {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation */
.head-nav {
    display: flex;
    align-items: center;
}

.head-nav .nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.head-nav .column {
    position: relative;
}

/* Products 项不建立定位上下文，下拉菜单由 .head-nav 统一锚定，避免偏移 */
.head-nav .column.has-drop {
    position: static;
}

.head-nav .item {
    display: block;
    font-size: 13px;
    color: #fff;
    padding: 8px 0;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.head-nav .item:hover {
    color: #fff;
}

.head-nav .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.head-nav .column:hover .item::after,
.head-nav .column.current-menu-item .item::after,
.head-nav .column.current-menu-ancestor .item::after {
    width: 100%;
}

/* Dropdown Menu */
/* 下拉菜单锚定到铺满视口的 .header（position:absolute; left:0; width:100%），
   用 left:0 / right:0 铺满整个视口宽度，不再依赖某个导航项的位置，避免偏移与裁切 */
.header .drop-down {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    padding: 40px 0;
    z-index: 1000;
    border-top: 1px solid var(--line-soft);
    /* 用 visibility/opacity 过渡代替 display，切换更平滑且留出撤离时间 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

/* 透明桥接：让 Products 导航项的悬停区向下延伸，覆盖到下拉框顶部，避免鼠标下移时悬空中断 */
.head-nav .column.has-drop::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    /* 不可见，仅用于保持 :hover 连续 */
}

.header:has(.has-drop:hover) .drop-down,
.header .drop-down:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.header .drop-nav {
    /* 内容容器同样铺满整个视口宽度，不再限制在 --content-w(1200px)，
       避免分类列较多时菜单被挤窄、内容折叠/裁切而看不到 */
    width: 100%;
    padding: 0 clamp(20px, 4vw, 60px);
}

.header .drop-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.header .column_2 {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--line-soft);
}

/* ======================== Language Switcher ======================== */
.head-nav .lang-switch {
    position: relative;
}

.head-nav .lang-switch .item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.head-nav .lang-switch .lang-icon {
    font-size: 16px;
    line-height: 1;
}

.head-nav .lang-switch .lang-arrow {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.head-nav .lang-switch:hover .lang-arrow {
    transform: rotate(180deg);
}

/* 语言下拉菜单：小型下拉，定位在该菜单项下方 */
.head-nav .lang-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 1000;
    /* 透明桥接区：覆盖菜单项与下拉框之间的间隙，避免鼠标悬空中断 */
}

.head-nav .lang-switch::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

.head-nav .lang-switch:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.head-nav .lang-dropdown li {
    list-style: none;
}

.head-nav .lang-dropdown .lang-option {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.head-nav .lang-dropdown .lang-option:hover {
    background: var(--bg-soft);
    color: var(--brand);
}

.head-nav .lang-dropdown .lang-option.active {
    color: var(--brand);
    font-weight: 600;
}

.header .column_2:last-child {
    border-right: none;
}

.header .h2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-3);
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 36px;
    /* 允许长分类名换行，避免在等宽窄列中溢出 */
    padding: 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header .h2 a {
    color: var(--muted-3);
}

.header .h2 a:hover {
    color: var(--brand);
}

.header .item_2 {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.header .item_2:hover {
    background-color: transparent;
}

.header .item_2 .icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.header .item_2 .icon img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.header .item_2 .name {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    font-weight: 500;
}

.header .item_2:hover .name {
    color: var(--brand);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 80px 20px 40px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav .m-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav .m-item:hover {
    color: var(--brand);
}

/* Hero Section */
.hero {
    padding: 0;
    background: var(--hero-grad);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding-top: var(--header-h);
}

/* 纯图 Banner：去掉文字后的全宽切换 */
.hero--home {
    /* PC 横版图 1920x700，按比例计算高度。padding-top 避开 absolute header */
    padding-top: var(--header-h);
    min-height: 0;
    aspect-ratio: 1920 / 700;
    background: #1a1a1a;
    position: relative;
}
.hero--home .hero-bg-slider {
    /* PC 端 slider 从 header 下方开始，不覆盖 absolute header 区域。
       用 inset 简写一次性设置 top/right/bottom/left，避免 inset:auto 把
       已设置的四个值重置回 auto（否则绝对定位元素会折叠为 0x0）。 */
    inset: var(--header-h) 0 0 0;
}

/* Hero Background Slider */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    cursor: pointer;
    pointer-events: none;
}

.hero-bg-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Banner 浮动文字：PC 端在上方，不挡产品。
   按排版参考图：单行 banner 用普通字重(400)，多行 banner 中首行加粗(700)。
   .hero-bg-line 为每行容器，块级排列；.hero-bg-line--bold 加粗。 */
.hero-bg-text {
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 700px;
    width: 90%;
    text-align: center;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    color: #0a1628;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

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

.hero-bg-line {
    display: block;
}
.hero-bg-line--bold {
    font-weight: 700;
}
/* 超长单行文本：强制不换行，并缩小字号避免溢出容器 */
.hero-bg-line--nowrap {
    white-space: nowrap;
    font-size: 20px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0.35) 100%);
    pointer-events: none;
}

/* 装饰形状与内容层置于背景图之上 */
.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
    z-index: 1;
}

.hero .container {
    z-index: 2;
}


.hero .container {
    width: var(--content-w);
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.hero-product {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 50%;
}

.hero-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.hero p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Hero Decorative Elements */
.hero-shape-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand);
    border-radius: 50%;
    top: -120px;
    right: -80px;
    opacity: 0.12;
    pointer-events: none;
}

.hero-shape-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    background: #f6986a;
    border-radius: 50% 50% 50% 0;
    bottom: 60px;
    left: 80px;
    opacity: 0.2;
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero-shape-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #88cce0;
    border-radius: 0 50% 50% 50%;
    top: 180px;
    right: 380px;
    opacity: 0.25;
    transform: rotate(20deg);
    pointer-events: none;
}

/* Hero Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-slider-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section--soft {
    background: var(--bg-soft);
}

.section--bg {
    background: var(--bg);
}

.section-title {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted-3);
    font-size: 13px;
    margin-bottom: 45px;
}

/* Generic page title (left-aligned, not forced center) */
.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.product-card {
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e8f6fc 0%, #d7ebf4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 167, 210, 0.08) 0%, rgba(0, 140, 176, 0.04) 100%);
    border-radius: 50%;
    top: -20px;
    right: -20px;
}

.product-image img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.product-image img.cover {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-4);
}

.product-content {
    padding: 0;
    text-align: center;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ink-soft);
}

.product-title a {
    color: var(--ink-soft);
}

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

.product-desc {
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-link {
    display: inline-block;
    color: var(--brand);
    font-size: 13px;
    font-weight: 500;
    padding-top: 4px;
}

.product-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* View All Button */
.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn a {
    display: inline-block;
    padding: 10px 35px;
    border: 1px solid #ddd;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    background: #fff;
}

.view-all-btn a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* News Section */
.news-section {
    background-color: var(--bg);
}

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

.news-card {
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--muted-4);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.news-title a {
    color: var(--ink-soft);
}

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

.news-desc {
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.6;
}

/* Feature Section */
.section.feature-section.section--soft {
    background-color: var(--bg-soft);
}

.section.feature-section {
    background-color: #fff;
}

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

.feature-card {
    text-align: center;
    padding: 45px 30px;
    background: var(--bg-soft);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 167, 210, 0.12);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--brand-grad);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: var(--shadow-brand);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.feature-desc {
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.7;
}

/* Two Column Layout (about / contact) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col--top {
    align-items: start;
}

.two-col h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 25px;
}

.two-col p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Image placeholder */
.media-placeholder {
    background: var(--bg-soft);
    border-radius: var(--radius);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-4);
    font-size: 18px;
}

/* Stats Section */
.stats-section {
    background: #0a1628;
    padding: 80px 0;
}

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

.stat-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 10px;
}

.stat-label {
    color: #fff;
    font-size: 16px;
}

/* Category Cards (products page) */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.cat-card-head {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.cat-card-icon {
    width: 100px;
    height: 100px;
    background: var(--brand-grad-deep);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cat-card-icon .emoji {
    font-size: 40px;
}

.cat-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px 0;
}

.cat-card-sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.cat-card-body {
    padding: 25px;
}

.cat-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-card-body li {
    margin-bottom: 12px;
}

.cat-card-body li:last-child {
    margin-bottom: 0;
}

.cat-card-body a {
    color: var(--ink-soft);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cat-card-body a:hover {
    color: var(--brand);
}

.cat-card-body .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-deep);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.cat-card-body .coming {
    color: var(--muted-4);
    font-size: 14px;
    text-align: center;
}

/* Category tiles (archive-product.php) */
.cat-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cat-tile {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.cat-tile:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
    color: inherit;
}

.cat-tile-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-deep);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.cat-tile-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px 0;
}

.cat-tile-count {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Contact page */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
}

.contact-info-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--brand-deep);
}

/* Single Product */
.breadcrumb {
    padding: 20px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    margin-top: var(--header-h);
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--brand-deep);
}

.breadcrumb-list .current {
    color: var(--ink-soft);
}

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

.product-gallery {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 20px;
}

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

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

.product-info .excerpt {
    margin-bottom: 30px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--brand-deep);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

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

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--brand-deep);
    border: 2px solid var(--brand-deep);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

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

.product-meta {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.product-meta .label {
    font-weight: 600;
    color: var(--ink-soft);
}

.product-meta a {
    color: var(--brand-deep);
}

.product-desc-block {
    margin-top: 60px;
}

.product-desc-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 30px;
}

.product-desc-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 40px;
    text-align: center;
}

/* Archive list (blog) */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.archive-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.archive-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card-body {
    padding: 25px;
}

.archive-card-body h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.archive-card-body h2 a {
    color: var(--ink);
}

.archive-card-date {
    color: var(--muted-4);
    font-size: 14px;
    margin-bottom: 15px;
}

.archive-card-read {
    color: var(--brand-deep);
    font-weight: 500;
}

/* Single post */
.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--ink);
}

/* Page header (taxonomy dark hero) */
.page-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
    padding: 80px 0;
    text-align: center;
    padding-top: calc(var(--header-h) + 40px);
}

.page-header h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.page-header--light {
    background: var(--hero-grad);
    padding: 60px 0;
    padding-top: calc(var(--header-h) + 20px);
}

.page-header--light h1 {
    color: var(--ink-soft);
    font-size: 36px;
    font-weight: 600;
}

.page-header--light p {
    color: var(--muted);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--bg);
    color: var(--muted-2);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--muted-2);
    font-size: 12px;
}

.footer-col ul li a:hover {
    color: var(--brand);
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted-2);
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: right;
    color: var(--muted-3);
    font-size: 11px;
}

.subscribe-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.social-links a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.social-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Contact Us Button */
.contact-us-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.contact-us-btn a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand-grad);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 167, 210, 0.3);
    transition: all 0.3s ease;
}

.contact-us-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 210, 0.4);
    color: #fff;
}

.contact-us-btn .icon {
    font-size: 14px;
}

/* Pagination */
.pagination,
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    background: #fff;
}

.pagination .page-numbers.current {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.pagination .page-numbers:hover:not(.dots) {
    border-color: var(--brand);
    color: var(--brand);
}

/* Post navigation */
.post-navigation,
.post-navigation .nav-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.post-navigation a {
    color: var(--brand-deep);
    font-weight: 500;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--muted-4);
    margin-bottom: 4px;
}

/* ===== Button Variants ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.2;
}

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

.btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 210, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

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

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

.btn--light:hover {
    background: var(--bg-soft);
    color: var(--brand);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

/* ===== Section Header (with optional eyebrow) ===== */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-head--left {
    text-align: left;
    margin-left: 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
    padding: 4px 14px;
    background: rgba(0, 167, 210, 0.1);
    border-radius: var(--radius-pill);
}

.section-head .section-title {
    margin-bottom: 16px;
}

.section-head-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Hero Enhancements =====
   （原 .hero--home { min-height:600px; display:flex; align-items:center; } 已移除：
   纯背景图 banner 不需要 flex 居中，且 min-height:600px / display:flex 会破坏
   aspect-ratio 高度计算和 absolute slider 定位，导致移动端 slider 被折叠为 0x0。） */

.hero--home .hero-content {
    max-width: 56%;
}

.hero--home h1 {
    font-size: 52px;
    line-height: 1.15;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(0, 167, 210, 0.12);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-deep);
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-search {
    display: flex;
    margin-top: 28px;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.hero-search button {
    border: none;
    background: var(--brand-grad);
    color: #fff;
    padding: 0 26px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Industries Section ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.industry-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

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

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

.industry-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f6fc 0%, #d7ebf4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
    background: var(--brand-grad);
    transform: rotate(-6deg);
}

.industry-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.industry-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--brand-grad);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.cta-banner::before {
    width: 360px;
    height: 360px;
    top: -180px;
    right: -100px;
}

.cta-banner::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: 5%;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.cta-text p {
    font-size: 15px;
    opacity: 0.92;
    margin: 0;
}

.cta-banner--dark {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-quote-mark {
    font-size: 56px;
    line-height: 1;
    color: var(--brand);
    opacity: 0.25;
    font-family: Georgia, serif;
    margin-bottom: -10px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}

.testimonial-role {
    font-size: 12px;
    color: var(--muted-3);
}

/* ===== Stats Strip (dark) ===== */
.stats-strip {
    background: #0a1628;
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 167, 210, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.stats-strip .stats-grid {
    position: relative;
    z-index: 1;
}

.stats-strip .stat-num {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Spec Table (single product) ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table th {
    background: var(--bg-soft);
    color: var(--muted-3);
    font-weight: 600;
    width: 200px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.spec-table td {
    color: var(--ink-soft);
    background: #fff;
}

.spec-table tr:hover td {
    background: #fafcfd;
}

/* ===== Feature list (single product highlights) ===== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.feature-list .fl-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e8f6fc 0%, #d7ebf4 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-list .fl-title {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    font-size: 14px;
}

.feature-list .fl-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ===== Application scenarios ===== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.9) 100%);
    z-index: 0;
}

.scenario-card > * {
    position: relative;
    z-index: 1;
}

.scenario-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.scenario-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scenario-desc {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ===== Timeline (about page) ===== */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 0;
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding: 0 0 40px 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 6px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--brand);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -8px;
}

.timeline-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.timeline-year {
    display: inline-block;
    background: var(--brand-grad);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== Certifications / badges ===== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.badge-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--brand);
}

.badge-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #e8f6fc 0%, #d7ebf4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--brand-deep);
}

.badge-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-deep);
}

.badge-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ===== Global presence / offices ===== */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.office-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

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

.office-region {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.office-city {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-detail {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== FAQ accordion ===== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item[open] {
    border-color: var(--brand);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== News / blog compact ===== */
.news-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted-4);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-block;
    background: rgba(0, 167, 210, 0.1);
    color: var(--brand-deep);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Home Link Box（应用场景轮播 + 产品轮播 + 关于我们） ===== */
.link-box-section {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 40px 20px 0;
    overflow: hidden;
}

.link-box {
    list-style: none;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 520px;
}

/* 左块：应用场景，跨两行 */
.lb-column--scenes {
    grid-row: 1 / span 2;
}

/* 右上：产品轮播 */
.lb-column--products {
    grid-column: 2;
    grid-row: 1;
}

/* 右下：关于我们 */
.lb-column--about {
    grid-column: 2;
    grid-row: 2;
}

.lb-column {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
}

/* 子块内部标题 */
.lb-column-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 14px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.6) 0%, rgba(10, 22, 40, 0) 100%);
    pointer-events: none;
}

/* 产品/关于块标题用深色（浅底） */
.lb-column--products .lb-column-title,
.lb-column--about .lb-column-title {
    color: #1a2a4a;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 通用轮播容器 */
.lb-slider,
.lb-about-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.lb-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.lb-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.lb-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0s;
}

/* 右下角场景标签 */
.lb-slide-tag {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 16px;
    background: rgba(10, 22, 40, 0.72);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
    max-width: calc(100% - 32px);
}

.lb-about-card .lb-slide-tag {
    background: var(--brand, #0066b3);
}

/* 指示点 */
.lb-dots {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.lb-dots .lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.lb-dots .lb-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* 左右切换按钮 */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 22, 40, 0.5);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.lb-arrow:hover {
    background: rgba(10, 22, 40, 0.8);
}

.lb-arrow--prev {
    left: 16px;
}

.lb-arrow--next {
    right: 16px;
}

/* 关于我们卡片图片填满 */
.lb-about-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 产品块单张图 */
.lb-static-img {
    position: absolute;
    inset: 0;
    display: block;
    background-color: #f4f7fa;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Photo variant: a full-frame photograph. Use cover so the image fills the
   column instead of being letterboxed on the gray contain background. */
.lb-static-img--photo {
    background-color: #000;
    background-size: cover;
    background-position: center;
}

/* 响应式：窄屏堆叠 */
@media (max-width: 768px) {
    .link-box {
        grid-template-columns: 1fr;
        grid-template-rows: 280px 200px 200px;
        height: auto;
    }
    .lb-column--scenes {
        grid-row: 1;
    }
    .lb-column--products {
        grid-column: 1;
        grid-row: 2;
    }
    .lb-column--about {
        grid-column: 1;
        grid-row: 3;
    }
}

/* ===== Partners / logos strip ===== */
.partners-strip {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-3);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--brand);
    border-color: var(--brand);
}

.partners-intro {
    color: var(--muted-3);
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.partner-logo img {
    max-height: 30px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ===== Split / feature row (image + text) ===== */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-row--reverse .split-text {
    order: 2;
}

.split-media {
    background: linear-gradient(135deg, #e8f6fc 0%, #d7ebf4 100%);
    border-radius: var(--radius);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-3);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.split-media img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.split-eyebrow {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.split-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.25;
}

.split-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.split-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 26px;
}

.split-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 14px;
}

.split-list li::before {
    content: '\2713';
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Newsletter form (footer) ===== */
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 0;
}

.newsletter-form button {
    border: none;
    background: var(--brand);
    color: #fff;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: var(--brand-dark);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }

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

.hero-content,
.hero-product {
    animation: fadeUp 0.8s ease both;
}

.hero-product {
    animation-delay: 0.2s;
}

/* Responsive */
/* 容器宽度已由 --content-w 的 clamp() 接管，此处不再强制 width:100%，
   仅保留各网格的列数调整。 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    .head-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* 手机端 header 是 sticky，面包屑不需要 margin-top */
    .breadcrumb {
        margin-top: 0;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    /* 手机端：竖版图 1080x1350，按比例设置高度 */
    .hero--home {
        aspect-ratio: 1080 / 1350;
        min-height: 0;
        padding-top: 0;
        width: 100%;
    }

    /* 手机端 banner 文字在上方 */
    .hero-bg-text {
        top: 8%;
        font-size: 17px;
        line-height: 1.5;
        max-width: 88%;
    }
    /* 多行文字在手机端略缩小，避免两行挤占产品展示区 */
    .hero-bg-text--multi {
        font-size: 15px;
        line-height: 1.45;
    }
    /* 手机端超长单行再缩小，避免横向溢出 */
    .hero-bg-line--nowrap {
        font-size: 12px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-product {
        position: static;
        transform: none;
        max-width: 60%;
        margin: 30px auto 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 13px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .two-col,
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-grid,
    .news-grid,
    .feature-grid,
    .footer-grid,
    .cat-grid,
    .cat-tile-grid,
    .stats-grid,
    .archive-grid,
    .industries-grid,
    .testimonials-grid,
    .scenarios-grid,
    .split-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        gap: 30px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .split-row--reverse .split-text {
        order: 0;
    }

    .hero--home .hero-content {
        max-width: 100%;
    }

    .hero--home h1 {
        font-size: 34px;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 0 0 30px 50px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
        right: auto;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions a {
        text-align: center;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .contact-us-btn {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .top-banner {
        font-size: 11px;
        padding: 8px 0;
    }

    .top-banner p {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 22px;
    }

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

    .hero-stats {
        gap: 18px;
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .industries-grid,
    .testimonials-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .spec-table th,
    .spec-table td {
        padding: 12px 14px;
    }

    .spec-table th {
        display: block;
        width: 100%;
    }

    .spec-table td {
        display: block;
    }
}

/* ===== 方形样式覆盖：除浮动联系按钮与圆形元素外，所有块改为方角 ===== */

/* 覆盖字面 border-radius 数值 */
.menu-toggle span { border-radius: 0 !important; }
.hero-slider-dot.active { border-radius: 0 !important; }
.feature-card { border-radius: 0 !important; }
.subscribe-btn { border-radius: 0 !important; }
.industry-icon { border-radius: 0 !important; }
.feature-list .fl-icon { border-radius: 0 !important; }
.lb-dots .lb-dot.active { border-radius: 0 !important; }

/* 覆盖非浮动按钮的 --radius-pill 为方角 */
.view-all-btn a,
.hero-search,
.timeline-year,
.news-tag,
.subscribe-form input,
.btn,
.btn--pill,
.product-tag,
.spec-badge {
    border-radius: 0 !important;
}

/* 头部下拉菜单、产品卡片、link-box 等所有块统一方角 */
.header,
.drop-down,
.product-card,
.product-image,
.lb-column,
.lb-slide-tag,
.lb-arrow,
.cat-card,
.cat-tile,
.industry-card,
.testimonial-card,
.news-card,
.feature-card,
.team-card,
.section-head,
.split-media img,
.stat-card,
.pagination a,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    border-radius: 0 !important;
}
