/* ============================================================
   凯士比 KSB - 主样式表
   Guangzhou KSB Fluid Technology Co., Ltd.
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0055a5;
    --primary-dark: #003d7a;
    --primary-light: #e6f0fa;
    --accent: #e8731a;
    --accent-dark: #c45f10;
    --text: #2c3e50;
    --text-light: #6c757d;
    --bg: #ffffff;
    --bg-alt: #f4f7fa;
    --card: #ffffff;
    --border: #e0e6ed;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- HEADER ---------- */
header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    opacity: 1;
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 46px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Current page indicator */
.nav-links a[aria-current="page"],
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.55), rgba(0, 85, 165, 0.40)),
        url('../images/hero-bg-zhuye.jpg') center/cover no-repeat;
    padding-top: 72px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 115, 26, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 115, 26, 0.4);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 115, 26, 0.5);
}

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

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

/* ---------- HERO STATS ---------- */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-stat .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 100px 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .overline {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ---------- CARDS & GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: white;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.about-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

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

.about-list li i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- PRODUCTS ---------- */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

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

/* ---------- PRODUCTS GRID (products.html) ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ---------- PRODUCT CAROUSEL ---------- */
.products-carousel {
    overflow: hidden; /* 裁剪轮播轨道，避免产生文档级横向滚动 */
}

.products-stage {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.products-viewport {
    max-width: 540px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    touch-action: pan-y;
}

.products-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.products-track.no-transition {
    transition: none !important;
}

.products-track .product-card {
    flex: 0 0 100%;
    min-width: 0;
}

.products-track .product-card .product-img {
    height: 300px;
    aspect-ratio: auto;
}

.products-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

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

.product-img {
    height: 220px;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    position: relative;
}

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

.product-info {
    padding: 1.2rem;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.product-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

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

/* ---------- HONORS ---------- */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.honor-item {
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.honor-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary), #0077dd);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.honor-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- CONTACT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-text p {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---------- FORM ---------- */
form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form status message */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #1a2332;
    color: #b0bec5;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bec5;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

/* ---------- MODAL ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
    overflow: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.modal-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-model {
    color: var(--primary) !important;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.product-parameters {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.product-parameters th,
.product-parameters td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.product-parameters th {
    width: 34%;
    color: var(--text-dark);
    background: #f8fafc;
    font-weight: 600;
}

.product-parameters td {
    color: var(--text-light);
}

.product-parameters .modal-empty {
    color: var(--text-light);
    text-align: center;
}

/* ---------- BACK TO TOP ---------- */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- PAGE HERO (for subpages) ---------- */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- CERTIFICATES PAGE ---------- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto;
    border-radius: 2px;
}

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

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

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

.cert-img-wrap {
    height: 260px;
    aspect-ratio: 3 / 4;
    padding: 16px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    width: auto;
    height: auto;
}

.cert-label {
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cert-label i {
    color: var(--accent);
    font-size: 0.9rem;
}

.badge-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.2rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.badge-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* Modal for certificates page */
.modal-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.modal-caption {
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- PATENT PAGINATION ---------- */
.modal-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

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

.page-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    min-width: 50px;
    text-align: center;
}

/* ---------- CAROUSEL CONTROLS ---------- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 2;
    box-shadow: var(--shadow);
}

.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.15);
}

.carousel-dot:hover {
    background: var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .products-stage {
        max-width: 100%;
    }

    .products-viewport {
        max-width: 100%;
    }

    .products-track .product-card .product-img {
        height: 240px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .carousel-arrow--prev { left: 6px; }
    .carousel-arrow--next { right: 6px; }

    .carousel-controls {
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .hero-stat .num {
        font-size: 1.6rem;
    }

    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .honor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .page-hero {
        padding: 120px 0 40px;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .cert-img-wrap {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }
    .badge-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- COPY TOAST（复制微信号提示） ---------- */
.copy-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: copyToastIn 0.25s ease;
}

@keyframes copyToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
