/* ============================================================
   广昊达科技 (GHD Technology) - 主样式表 v2.0
   B2B 工厂独立站 | 工业风设计 | 专业大气
   目标：视觉质量 95/100
   ============================================================ */

/* ============================================================
   0. Google Fonts 已被墙，使用系统字体栈
   ============================================================ */
@import url=""; /* disabled - Google Fonts blocked in China */

/* ============================================================
   1. CSS Variables / Design Tokens
   ============================================================ */
:root {
    /* ---- Brand Palette ---- */
    --c-primary:       #0b1f3a;   /* 深海蓝 - 主色：信任、工业、稳重 */
    --c-primary-light:  #163a5c;   /* 亮蓝：悬停、次要信息 */
    --c-primary-deep:  #061222;   /* 极深蓝：footer 背景 */
    --c-accent:        #e8720c;   /* 工业橙 - CTA、强调 */
    --c-accent-light:  #ff8c1a;   /* 亮橙：悬停发光 */
    --c-accent-glow:   rgba(232,114,12,0.18);
    --c-accent-subtle: #fff5eb;   /* 浅橙底：badge、高亮背景 */

    /* ---- Neutrals ---- */
    --c-white:     #ffffff;
    --c-off:       #f5f7fa;       /* 页面浅灰背景 */
    --c-line:      #e8ecf1;       /* 分割线 */

    /* ===== LEGACY ALIASES (template backward compat) ===== */
    --color-primary:      var(--c-primary);
    --color-primary-light: var(--c-primary-light);
    --color-primary-deep: var(--c-primary-deep);
    --color-accent:       var(--c-accent);
    --color-accent-light: var(--c-accent-light);
    --color-white:        var(--c-white);
    --color-off-white:    var(--c-off);
    --color-off:          var(--c-off);
    --color-light-gray:   var(--c-line);
    --color-gray:         var(--c-muted);
    --color-dark-gray:    var(--c-text);
    --color-mid-gray:     var(--c-muted);
    --color-text:         var(--c-text);
    --color-text-light:   var(--c-text-light);
    --color-dark:         var(--c-dark);
    --color-danger:       var(--c-danger);
    --color-success:      var(--c-success);
    --color-warning:      var(--c-warning);
    --color-info:         var(--c-info);
    --color-mid:          var(--c-muted);
    --color-light:        var(--c-off);
    /* spacing */
    --space-xs:  var(--s-xs);
    --space-sm:  var(--s-sm);
    --space-md:  var(--s-md);
    --space-lg:  var(--s-lg);
    --space-xl:  var(--s-xl);
    --space-2xl: var(--s-2xl);
    --space-3xl: var(--s-3xl);
    --space-4xl: var(--s-4xl);
    /* radius */
    --radius-sm: var(--r-sm);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --radius-xl: var(--r-xl);
    /* transitions */
    --transition-fast:   var(--t-fast);
    --transition-normal: var(--t-normal);
    --transition-slow:   var(--t-slow);
    --c-muted:     #94a3b8;       /* 辅助灰色 */
    --c-text:      #1e293b;       /* 主文本 */
    --c-text-light:#64748b;       /* 副文本 */
    --c-dark:      #0f172a;       /* 极深文本 */

    /* ---- Functional ---- */
    --c-success:   #16a34a;
    --c-warning:   #f59e0b;
    --c-danger:    #dc2626;
    --c-info:      #2563eb;

    /* ---- Typography ---- */
    --ff-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --ff-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --ff-mono: 'SF Mono', Consolas, 'Courier New', monospace;

    /* ---- Spacing ---- */
    --s-xs: 0.25rem;   /* 4px  */
    --s-sm: 0.5rem;    /* 8px  */
    --s-md: 1rem;      /* 16px */
    --s-lg: 1.5rem;    /* 24px */
    --s-xl: 2rem;      /* 32px */
    --s-2xl: 3rem;     /* 48px */
    --s-3xl: 4rem;     /* 64px */
    --s-4xl: 6rem;     /* 96px */

    /* ---- Layout ---- */
    --w-max: 1320px;
    --w-narrow: 960px;
    --header-h: 80px;
    --header-h-scroll: 64px;

    /* ---- Radius ---- */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-card:   0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-btn:    0 2px 8px rgba(232,114,12,0.25);
    --shadow-dropdown: 0 12px 36px rgba(0,0,0,0.12);
    --shadow-modal:  0 24px 64px rgba(0,0,0,0.20);

    /* ---- Transitions ---- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.15s var(--ease);
    --t-normal: 0.3s var(--ease);
    --t-slow: 0.5s var(--ease);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--c-primary-light); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--c-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--s-md); color: var(--c-text-light); line-height: 1.8; }

/* ============================================================
   4. Layout Helpers
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--w-max);
    margin: 0 auto;
    padding: 0 var(--s-lg);
}

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

/* ============================================================
   5. Section
   ============================================================ */
.section {
    padding: var(--s-4xl) 0;
    position: relative;
}

.section--off    { background: var(--c-off); }
.section--primary { background: var(--c-primary); color: var(--c-white); }
.section--primary h2,
.section--primary h3 { color: var(--c-white); }
.section--primary p  { color: rgba(255,255,255,0.75); }

.section__header {
    text-align: center;
    margin-bottom: var(--s-3xl);
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    background: var(--c-accent-subtle);
    padding: var(--s-xs) var(--s-md);
    border-radius: var(--r-full);
    margin-bottom: var(--s-md);
}

.section__title {
    display: block;
    margin-bottom: var(--s-sm);
}

.section__subtitle {
    color: var(--c-text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: var(--s-sm) auto 0;
}

/* ============================================================
   6. Divider (orange accent line under section titles)
   ============================================================ */
.section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
    margin: var(--s-sm) auto 0;
}

.section--primary .section__title::after {
    background: var(--c-accent-light);
}

/* ============================================================
   7. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all var(--t-normal);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--c-accent);
    color: var(--c-white);
    border-color: var(--c-accent);
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
    background: var(--c-accent-light);
    border-color: var(--c-accent-light);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,114,12,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
    background: var(--c-white);
    color: var(--c-primary);
    border-color: var(--c-white);
    transform: translateY(-2px);
}

.btn--outline-dark {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn--outline-dark:hover {
    background: var(--c-primary);
    color: var(--c-white);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--c-text-light);
    border-color: transparent;
    padding: 0.5rem 1rem;
}
.btn--ghost:hover {
    color: var(--c-primary);
    background: var(--c-off);
}

.btn--lg  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--sm  { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ============================================================
   8. Header
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
    z-index: 1000;
    transition: height var(--t-normal), box-shadow var(--t-normal);
}

.header--scrolled {
    height: var(--header-h-scroll);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo-img {
    width: 44px;
    height: 44px;
    transition: transform var(--t-normal);
}

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

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

.header__logo-text > span:first-child {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: -0.02em;
}

.header__logo-text > small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--c-text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- Nav ---- */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
}

.nav__link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text);
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--c-accent);
    background: var(--c-accent-subtle);
}

/* ---- Lang Switch ---- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    margin-left: var(--s-md);
}

.lang-switch__btn {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--r-full);
    color: var(--c-text-light);
    border: 1.5px solid var(--c-line);
    transition: all var(--t-fast);
}

.lang-switch__btn:hover,
.lang-switch__btn--active {
    color: var(--c-white);
    background: var(--c-accent);
    border-color: var(--c-accent);
}

/* ---- Mobile Toggle ---- */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--s-sm);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: all var(--t-fast);
}

/* ============================================================
   9. Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(11,31,58,0.88) 0%,
        rgba(11,31,58,0.65) 50%,
        rgba(11,31,58,0.45) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--s-4xl) 0;
    color: var(--c-white);
}

.hero__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-accent-light);
    background: rgba(255,140,26,0.15);
    padding: var(--s-xs) var(--s-md);
    border-radius: var(--r-full);
    margin-bottom: var(--s-lg);
    border: 1px solid rgba(255,140,26,0.25);
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--c-white);
    margin-bottom: var(--s-lg);
    letter-spacing: -0.03em;
}

.hero__title span {
    display: block;
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin-bottom: var(--s-2xl);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-md);
    margin-bottom: var(--s-3xl);
}

/* ---- Hero Stats ---- */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-xl);
    padding-top: var(--s-2xl);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.hero__stat-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--c-white);
    letter-spacing: -0.02em;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: var(--s-xs);
    font-weight: 500;
}

/* ============================================================
   10. Product Cards
   ============================================================ */
.card-grid {
    display: grid;
    gap: var(--s-xl);
}

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

.product-card {
    background: var(--c-white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    transition: all var(--t-normal);
    position: relative;
}

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

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--c-off);
}

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

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

.product-card__badge {
    position: absolute;
    top: var(--s-md);
    left: var(--s-md);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-white);
    background: var(--c-accent);
    padding: var(--s-xs) var(--s-sm);
    border-radius: var(--r-full);
    z-index: 2;
}

.product-card__body {
    padding: var(--s-lg);
}

.product-card__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent);
    margin-bottom: var(--s-xs);
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: var(--s-xs);
    line-height: 1.4;
}

.product-card__material {
    font-size: 0.85rem;
    color: var(--c-text-light);
}

/* ============================================================
   11. Generic Card (Equipment & Materials section)
   ============================================================ */
.card {
    background: var(--c-white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    transition: all var(--t-normal);
}

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

.card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--c-off);
}

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

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

.card__body {
    padding: var(--s-lg);
}

.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
}

.card__text {
    font-size: 0.95rem;
    color: var(--c-text-light);
    line-height: 1.7;
}

/* ============================================================
   12. About Grid (Factory Strength section)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    align-items: center;
}

.about-grid__image {
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--c-off);
}

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

.about-grid__content h2 {
    margin-bottom: var(--s-md);
}

.about-grid__content p {
    margin-bottom: var(--s-lg);
}

/* ---- Capability List ---- */
.capability-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--s-xl);
}

.capability-list li {
    position: relative;
    padding: var(--s-sm) 0 var(--s-sm) var(--s-xl);
    font-size: 0.95rem;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-line);
}

.capability-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
}

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

/* ============================================================
   13. Stats Bar (dark section)
   ============================================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-xl);
    text-align: center;
}

.stat-item__value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--c-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-item__value span {
    font-size: 0.5em;
    font-weight: 600;
    opacity: 0.7;
}

.stat-item__label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: var(--s-sm);
    font-weight: 500;
}

/* ============================================================
   14. Tabs (Product category filter)
   ============================================================ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
    justify-content: center;
    margin-bottom: var(--s-2xl);
}

.tabs__btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-light);
    background: var(--c-off);
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all var(--t-fast);
}

.tabs__btn:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background: var(--c-accent-subtle);
}

.tabs__btn--active {
    color: var(--c-white);
    background: var(--c-accent);
    border-color: var(--c-accent);
}

/* ---- Tab Panels ---- */
.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* ============================================================
   15. Footer
   ============================================================ */
.footer {
    background: var(--c-primary-deep);
    color: rgba(255,255,255,0.7);
    padding: var(--s-4xl) 0 var(--s-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: var(--s-2xl);
    margin-bottom: var(--s-2xl);
}

.footer__brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: var(--s-xs);
}

.footer__brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: var(--s-lg);
}

.footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent-light);
    margin-bottom: var(--s-lg);
}

.footer__links li {
    margin-bottom: var(--s-sm);
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--t-fast);
}

.footer__links a:hover {
    color: var(--c-accent-light);
}

.footer__contact-item {
    display: flex;
    gap: var(--s-sm);
    margin-bottom: var(--s-md);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer__contact-item strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--s-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer__social {
    display: flex;
    gap: var(--s-sm);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--t-fast);
}

.footer__social a:hover {
    background: var(--c-accent);
    color: var(--c-white);
}

/* ============================================================
   16. Floating Buttons (WhatsApp, Inquiry, Back-to-top)
   ============================================================ */
.floating-btns {
    position: fixed;
    bottom: var(--s-xl);
    right: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
    z-index: 900;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-full);
    font-size: 1.3rem;
    color: var(--c-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all var(--t-normal);
    border: none;
    cursor: pointer;
}

.floating-btn--wa   { background: #25d366; }
.floating-btn--chat { background: #07c160; }
.floating-btn--inq  { background: var(--c-accent); }
.floating-btn--top  { background: var(--c-primary); }

.floating-btn:hover {
    transform: scale(1.1);
}

/* ============================================================
   17. Forms
   ============================================================ */
.form-group {
    margin-bottom: var(--s-lg);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--s-xs);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--c-text);
    background: var(--c-white);
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-glow);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   18. Breadcrumb
   ============================================================ */
.breadcrumb {
    display: flex;
    gap: var(--s-sm);
    align-items: center;
    font-size: 0.85rem;
    color: var(--c-text-light);
    padding: var(--s-lg) 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--c-text-light);
}

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

.breadcrumb .sep {
    color: var(--c-muted);
}

/* ============================================================
   19. Page Hero (sub pages)
   ============================================================ */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + var(--s-3xl)) 0 var(--s-3xl);
    background: var(--c-primary);
    color: var(--c-white);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,140,26,0.12) 0%, transparent 60%);
    z-index: 0;
}

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

.page-hero h1 {
    color: var(--c-white);
    margin-bottom: var(--s-sm);
}

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

/* ============================================================
   20. Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .nav__list {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        bottom: 0;
        background: var(--c-white);
        flex-direction: column;
        padding: var(--s-xl);
        gap: var(--s-xs);
        overflow-y: auto;
        box-shadow: var(--shadow-dropdown);
    }

    .nav__list.open { display: flex; }

    .nav__link {
        font-size: 1.1rem;
        padding: var(--s-md) var(--s-lg);
    }

    .lang-switch { margin-left: 0; margin-top: var(--s-lg); }

    .nav__toggle { display: flex; }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-lg);
    }

    .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

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

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-lg);
    }

    .card-grid--4,
    .card-grid--3 { grid-template-columns: 1fr; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--s-md);
        text-align: center;
    }

    .section { padding: var(--s-3xl) 0; }

    .page-hero {
        padding: calc(var(--header-h) + var(--s-2xl)) 0 var(--s-2xl);
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn { width: 100%; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .stats-bar   { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   21. Fade-in Animation (scroll triggered)
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   22. Back-to-top visible
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: var(--s-xl);
    right: var(--s-xl);
    width: 48px;
    height: 48px;
    border-radius: var(--r-full);
    background: var(--c-primary);
    color: var(--c-white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-normal);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

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

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

/* ============================================================
   23. Inquiry Form Specific
   ============================================================ */
.inquiry-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--c-white);
    padding: var(--s-2xl);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-line);
}

/* ============================================================
   24. Product Detail
   ============================================================ */
.product-detail__gallery {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-off);
}

.product-detail__gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-detail__info h1 {
    margin-bottom: var(--s-sm);
}

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-md);
    margin: var(--s-lg) 0;
    padding: var(--s-lg);
    background: var(--c-off);
    border-radius: var(--r-md);
}

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

.product-detail__meta-item strong {
    color: var(--c-dark);
}

/* ============================================================
   25. Case Detail
   ============================================================ */
.case-detail__cover {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: var(--s-2xl);
}

.case-detail__cover img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* ============================================================
   26. Search Results
   ============================================================ */
.search-box {
    display: flex;
    gap: var(--s-sm);
    max-width: 600px;
    margin: 0 auto var(--s-2xl);
}

.search-box__input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color var(--t-fast);
}

.search-box__input:focus {
    border-color: var(--c-accent);
}

/* ============================================================
   27. Pagination
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--s-sm);
    margin-top: var(--s-2xl);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--s-md);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--c-line);
    color: var(--c-text);
    transition: all var(--t-fast);
}

.pagination a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.pagination .current {
    background: var(--c-accent);
    color: var(--c-white);
    border-color: var(--c-accent);
}

/* ============================================================
   28. 404 Page
   ============================================================ */
.page-404 {
    text-align: center;
    padding: calc(var(--header-h) + var(--s-4xl)) 0 var(--s-4xl);
}

.page-404 h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: var(--s-md);
}

.page-404 p {
    font-size: 1.1rem;
    margin-bottom: var(--s-2xl);
}

/* ============================================================
   29. Utilities
   ============================================================ */
.mt-1 { margin-top: var(--s-md); }
.mt-2 { margin-top: var(--s-lg); }
.mt-3 { margin-top: var(--s-xl); }
.mt-4 { margin-top: var(--s-2xl); }
.mb-1 { margin-bottom: var(--s-md); }
.mb-2 { margin-bottom: var(--s-lg); }
.mb-3 { margin-bottom: var(--s-xl); }
.mb-4 { margin-bottom: var(--s-2xl); }

/* ============================================================
   30. Print
   ============================================================ */
@media print {
    .header, .footer, .floating-btns, .back-to-top { display: none; }
    .section { padding: 20px 0; }
}

/* ============================================================
   31. Missing Components (added in v2.0)
   ============================================================ */

/* ---- Breadcrumb List ---- */
.breadcrumb__list {
    display: flex;
    gap: var(--s-sm);
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb__list li {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: 0.85rem;
    color: var(--c-text-light);
}

.breadcrumb__list li a {
    color: var(--c-text-light);
}

.breadcrumb__list li a:hover {
    color: var(--c-accent);
}

.breadcrumb__list .sep {
    color: var(--c-muted);
    font-size: 0.8rem;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-md);
    align-items: center;
    padding-bottom: var(--s-lg);
    margin-bottom: var(--s-xl);
}

.filter-bar__select {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-white);
    color: var(--c-text);
    cursor: pointer;
    outline: none;
    transition: border-color var(--t-fast);
    min-width: 160px;
}

.filter-bar__select:focus {
    border-color: var(--c-accent);
}

/* ---- Page Hero Title/Subtitle ---- */
.page-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: var(--s-sm);
}

.page-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- WhatsApp / WeChat floating buttons ---- */
.floating-btn--wa:hover   { background: #1ebe57; }
.floating-btn--chat:hover { background: #06ad56; }
.floating-btn--inq:hover  { background: var(--c-accent-light); }

/* ---- Form error state ---- */
.form-control--error {
    border-color: var(--c-danger) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

/* ---- Nav toggle active state ---- */
.nav__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile nav open ---- */
@media (max-width: 768px) {
    .nav__list.open {
        display: flex !important;
    }
}

/* ---- Hidden utility (for tab panels) ---- */
.hidden { display: none !important; }

/* ---- inquiry-form button ---- */
.inquiry-form .btn {
    width: 100%;
    margin-top: var(--s-md);
}

/* ---- Ensure hero text renders correctly on all screen sizes ---- */
@media (max-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-lg);
    }
    .hero__title span {
        background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .page-hero {
        padding: calc(var(--header-h) + var(--s-2xl)) 0 var(--s-2xl);
    }
    .page-hero__title { font-size: 1.8rem; }
}

/* ---- Stats bar mobile ---- */
@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-lg);
    }
    .section__title::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Product grid responsive fix ---- */
@media (max-width: 900px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .card-grid--4,
    .card-grid--3 { grid-template-columns: 1fr; }
}

/* ---- About grid image rounding ---- */
.about-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-lg);
}

/* ---- Ensure if .section--dark has proper contrast ---- */
.section--primary .section__subtitle {
    color: rgba(255,255,255,0.6);
}

/* ---- back-to-top button hover ---- */
.back-to-top:hover {
    background: var(--c-accent);
    transform: translateY(-3px);
}
