/* ========================================
   全局重置 & 变量定义
   ======================================== */
:root {
    --primary: #0A4D8C;
    --primary-light: #1565C0;
    --primary-dark: #063B6E;
    --accent: #FF8F00;
    --accent-light: #FFB300;
    --accent-dark: #E65100;
    --dark: #1a2b3c;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #cbd5e0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #38a169;
    --success-light: #48bb78;
    --danger: #e53e3e;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --font-sans: 'Noto Sans SC', 'Montserrat', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', 'Noto Sans SC', 'Noto Sans Arabic', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ========================================
   导航栏
   ======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
    box-shadow: 0 4px 12px rgba(10, 77, 140, 0.3);
}

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

.logo-main {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-700);
    letter-spacing: 11px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(10, 77, 140, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(10, 77, 140, 0.08);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero 首屏
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a4d8c 0%, #1565c0 40%, #0d6abd 70%, #1976d2 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,143,0,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,179,0,0.1) 0%, transparent 40%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 60px 24px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, #FFB300, #FF8F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(15px, 2vw, 18px);
    opacity: 0.85;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 143, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 143, 0, 0.45);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.stat-num {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 8px;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollMove 1.8s ease-in-out infinite;
}

@keyframes scrollMove {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ========================================
   通用 Section 样式
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-about {
    background: var(--gray-50);
}

.section-products {
    background: var(--white);
}

.section-message {
    background: linear-gradient(180deg, var(--gray-50) 0%, #eef4fb 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
}

/* ========================================
   企业介绍 — 简介
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 16px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.9;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.visual-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 77, 140, 0.1);
}

.vc-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.vc-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.vc-info span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   能力区块通用
   ======================================== */
.capability-block {
    margin-bottom: 70px;
}

.block-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-icon {
    font-size: 28px;
}

/* 生产能力卡片 */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cap-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.cap-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cap-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-300);
    line-height: 1;
}

.cap-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.cap-card p {
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 16px;
}

.cap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cap-list li {
    font-size: 13px;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}

.cap-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* 检测能力卡片 */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.test-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.test-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 77, 140, 0.15);
}

.test-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(10,77,140,0.08), rgba(255,143,0,0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    transition: var(--transition);
}

.test-photo-wrap {
    width: 100%;
    height: 180px;
    margin: 0 0 16px;
    border-radius: 12px;
    overflow: hidden;
}

.test-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.test-card-photo:hover .test-photo {
    transform: scale(1.05);
}

.test-card:hover .test-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: rotate(-5deg) scale(1.1);
}

.test-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.test-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* 荣誉卡片 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.honor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.honor-year {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    opacity: 0.9;
}

.honor-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.honor-body p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

.honor-badge {
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.honor-badge {
    background: rgba(10, 77, 140, 0.08);
    color: var(--primary);
}

/* ========================================
   产品中心
   ======================================== */
.product-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--gray-300);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(10, 77, 140, 0.3);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.product-card.hidden {
    display: none;
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    opacity: 0.85;
}

.product-emoji {
    font-size: 64px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.product-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
}

.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    padding: 3px 10px;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray-700);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

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

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

.product-msds {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   产品详情弹窗
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.modal-hero {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-hero .product-emoji {
    font-size: 80px;
}

.modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 32px;
}

.modal-info h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-info .modal-cat {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section p,
.modal-section li {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.9;
}

.modal-section ul {
    padding-left: 20px;
}

.modal-section ul li {
    list-style: disc;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    background: var(--gray-50);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
}

.spec-item .spec-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.spec-item .spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.modal-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--success-light);
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: var(--primary);
}

.download-btn.secondary:hover {
    background: var(--primary-light);
}

/* ========================================
   留言板
   ======================================== */
.message-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.message-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-submit {
    flex: 1;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

.form-success.show {
    display: flex;
    animation: slideDown 0.4s ease;
}

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

.success-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* 留言展示 */
.message-display {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    max-height: 700px;
    overflow-y: auto;
}

.display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.display-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.message-count {
    font-size: 13px;
    color: var(--gray-500);
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 50px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.message-item:hover {
    background: #eef4fb;
    border-left-color: var(--accent);
}

.message-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.author-info strong {
    font-size: 14px;
    color: var(--dark);
    display: block;
}

.author-info span {
    font-size: 12px;
    color: var(--gray-500);
}

.message-time {
    font-size: 12px;
    color: var(--gray-500);
}

.message-category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    background: rgba(10, 77, 140, 0.08);
    color: var(--primary);
}

.message-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
}

.message-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.message-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.message-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 143, 0, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.reply-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.reply-text {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.7;
}

.reply-time {
    font-size: 11px;
    color: var(--gray-500);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

.footer-brand .logo-main {
    color: var(--white);
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.7);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    margin: 16px 0 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}

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

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-contact .ci {
    font-size: 16px;
}

.footer-cert {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-badge {
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.icp-beian a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.icp-beian a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.admin-link {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    transition: var(--transition);
    padding: 4px 10px;
    border-radius: 6px;
}

.admin-link:hover {
    color: var(--accent);
    background: rgba(255,143,0,0.08);
}

/* ========================================
   导航栏右侧区域
   ======================================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-admin-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 77, 140, 0.3);
}

/* ========================================
   客服咨询悬浮组件
   ======================================== */
.cs-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.cs-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #FF6F00);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(255, 143, 0, 0.4);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.cs-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(255, 143, 0, 0.5);
}

.cs-fab.active {
    transform: scale(0.9);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 24px rgba(10, 77, 140, 0.4);
}

.cs-fab-icon {
    font-size: 28px;
    line-height: 1;
}

.cs-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* 脉冲动画 */
.cs-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 143, 0, 0.4);
    animation: csPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes csPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.cs-fab.active::before {
    animation: none;
    opacity: 0;
}

/* 客服面板 */
.cs-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-height: 560px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.cs-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cs-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.cs-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.cs-header-info strong {
    font-size: 16px;
    display: block;
}

.cs-status {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cs-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: csBlink 1.5s ease-in-out infinite;
}

@keyframes csBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cs-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-close:hover {
    background: rgba(255,255,255,0.3);
}

.cs-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cs-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    text-align: center;
}

.cs-section {
    margin-bottom: 20px;
}

.cs-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cs-contact-item:hover {
    background: #eef4fb;
    border-color: rgba(10, 77, 140, 0.15);
    transform: translateX(4px);
}

.cs-contact-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.cs-contact-text {
    display: flex;
    flex-direction: column;
}

.cs-contact-label {
    font-size: 12px;
    color: var(--gray-500);
}

.cs-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.cs-hours {
    font-size: 13px;
    color: var(--gray-700);
    padding: 8px 14px;
    background: var(--gray-50);
    border-radius: 8px;
}

.cs-faqs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs-faq-item {
    background: var(--gray-50);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.cs-faq-q {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.cs-faq-q:hover {
    color: var(--primary);
}

.cs-faq-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.cs-faq-item.expanded .cs-faq-arrow {
    transform: rotate(180deg);
}

.cs-faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 0 14px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.cs-faq-item.expanded .cs-faq-a {
    max-height: 200px;
    padding: 0 14px 12px;
}

.cs-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-quick-link {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cs-quick-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
}

.cs-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--gray-100);
    font-size: 11px;
    color: var(--gray-500);
}

/* ========================================
   动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 4px;
    }

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

    .nav-link {
        display: block;
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-admin-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 60px 0;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 32px;
    }

    .capability-grid,
    .test-grid,
    .honor-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .modal-specs {
        grid-template-columns: 1fr;
    }

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

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

    .message-form-wrap {
        padding: 24px;
    }

    .cs-widget {
        bottom: 20px;
        right: 16px;
    }

    .cs-fab {
        width: 52px;
        height: 52px;
    }

    .cs-fab-icon {
        font-size: 24px;
    }

    .cs-panel {
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(10, 77, 140, 0.06);
    border: 1px solid rgba(10, 77, 140, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.lang-current:hover {
    background: rgba(10, 77, 140, 0.1);
    border-color: var(--primary);
}

.lang-current svg {
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    padding: 4px;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.lang-option.active {
    background: rgba(10, 77, 140, 0.06);
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   RTL Support (Arabic)
   ======================================== */
html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-text h3 {
    padding-left: 0;
    padding-right: 16px;
}

html[dir="rtl"] .about-text h3::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .cap-list li {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .cap-list li::before {
    left: auto;
    right: 0;
    content: '◃';
}

html[dir="rtl"] .message-item {
    border-left: none;
    border-right: 3px solid var(--primary);
}

html[dir="rtl"] .message-item:hover {
    border-right-color: var(--accent);
}

html[dir="rtl"] .message-reply {
    border-left: none;
    border-right: 3px solid var(--accent);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

html[dir="rtl"] .product-cat-tag {
    left: auto;
    right: 14px;
}

html[dir="rtl"] .product-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-contact li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cs-contact-item:hover {
    transform: translateX(-4px);
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 4px;
    }
}
