/* ===============================================
   YINUO MEDICAL - Main Stylesheet
   Professional Medical Blue Theme
   =============================================== */

/* CSS Variables */
:root {
    /* 专业医疗蓝色配色方案 */
    --primary-blue: #0066B3;        /* 主蓝色 - 医疗行业标准 */
    --secondary-blue: #4A90E2;      /* 次蓝色 - 友好专业 */
    --dark-blue: #003D82;           /* 深蓝色 - 导航栏 */
    --light-blue: #E3F2FD;          /* 浅蓝色 - 背景 */
    --accent-blue: #2196F3;         /* 强调蓝色 */
    
    /* 中性色 */
    --text-dark: #333333;
    --text-light: #666666;
    --text-gray: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --border-light: #EEEEEE;
    
    /* 功能色 */
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    
    /* 间距 */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* 动画 */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* 字体 */
    --font-family: 'Arial', 'Helvetica', 'Microsoft YaHei', sans-serif;
}

/* ===============================================
   Global Styles
   =============================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 文字选择颜色 */
::selection {
    background-color: var(--primary-blue);
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* ===============================================
   Typography
   =============================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

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

a:hover {
    color: var(--secondary-blue);
}

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

/* ===============================================
   Header (sticky wrapper)
   =============================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(5, 21, 46, 0.08);
}

/* ── Top Bar ── */
.header-top {
    background: #F4F7FC;
    border-bottom: 1px solid #E8EEF7;
}

.header-top-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #3A4557;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.contact-chip:hover { color: #1A5FBF; }

.contact-chip svg {
    color: #1A5FBF;
    flex-shrink: 0;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: #B0BECF;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1.5px solid #E8EEF7;
    border-radius: 7px;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 220px;
    flex-shrink: 0;
}

.header-search:focus-within {
    border-color: #1A5FBF;
    box-shadow: 0 0 0 3px rgba(26, 95, 191, 0.08);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 12px;
    color: #0A1628;
    outline: none;
    min-width: 0;
}

.header-search input::placeholder { color: #B0BECF; }

.header-search button {
    background: #1A5FBF;
    border: none;
    padding: 0 12px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}

.header-search button:hover { background: #2B7FE8; }

/* ── Nav Bar ── */
.header-nav {
    background: white;
    border-bottom: 1px solid #E8EEF7;
}

.header-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 58px;
    display: flex;
    align-items: center;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-wrap:hover { text-decoration: none; }

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text { line-height: 1.25; }

.logo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #05152E;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-text span {
    font-size: 9.5px;
    color: #6B7A8D;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-wrap:hover .logo-text strong { color: #1A5FBF; }

/* Separator */
.nav-separator {
    width: 1px;
    height: 24px;
    background: #E8EEF7;
    margin: 0 20px;
    flex-shrink: 0;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    align-self: stretch;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
    gap: 2px;
    flex: 1;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-item > a {
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-size: 13.5px;
    font-weight: 500;
    color: #3A4557;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.18s;
    border-radius: 7px;
}

.nav-item > a:hover {
    color: #1A5FBF;
    background: rgba(26, 95, 191, 0.05);
    text-decoration: none;
}

.nav-item > a.active {
    color: #1A5FBF;
    font-weight: 600;
}

.nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 13px;
    right: 13px;
    height: 2px;
    background: #1A5FBF;
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #1A5FBF;
    z-index: 1100;
}

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

.dropdown-menu a {
    display: block;
    padding: 11px 18px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background: var(--light-blue);
    padding-left: 24px;
    color: #1A5FBF;
}

/* Get a Quote */
.btn-quote {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #1A5FBF;
    color: white !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-quote:hover {
    background: #2B7FE8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 191, 0.28);
    color: white !important;
}


/* ===============================================
   Modern Banner Section
   =============================================== */

.modern-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
                url('../images/factory.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-md) 0;
    overflow: hidden;
}

.modern-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 30px 30px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.factory-certs-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.products-section {
    display: flex;
    flex-direction: column;
}

.banner-section {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.banner-section:hover {
    transform: none;
}

.section-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.section-header h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 3px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Factory Section */
.factory-showcase img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.factory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Certifications Section */
.certifications-showcase {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.cert-text-item {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.cert-text-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Banner Carousel - Featured Products */
.banner-carousel-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 35px;
}

.banner-carousel-container {
    flex: 1;
    overflow: hidden;
}

.banner-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 12px;
}

.banner-carousel-item {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 0;
}

.banner-product-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-product-img {
    width: 100%;
    height: 140px;
    background: var(--bg-gray);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.banner-product-card h4 {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.banner-product-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.banner-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.banner-carousel-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

.banner-carousel-btn.prev {
    left: 0;
}

.banner-carousel-btn.next {
    right: 0;
}

.banner-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.banner-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.banner-carousel-dot.active {
    background: var(--primary-blue);
    width: 18px;
    border-radius: 3px;
}

/* Banner Content Section */
.banner-content-section {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    color: white;
    position: relative;
    z-index: 1;
}

.banner-content-section h1 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    font-weight: 700;
}

.banner-content-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.banner-buttons {
    display: none;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Products Carousel */
.featured-products-section {
    background: white;
    padding: var(--spacing-xl) 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.carousel-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-blue);
}

.featured-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 50px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

.carousel-product {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.carousel-img {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.carousel-product h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.carousel-product p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-md);
}

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

.carousel-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

/* ===============================================
   Buttons
   =============================================== */

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* ===============================================
   Breadcrumb Navigation
   =============================================== */

.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* ===============================================
   Container
   =============================================== */

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-blue);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

/* ===============================================
   Products Grid
   =============================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: var(--spacing-xl);
}

.product-category,
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-category::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 179, 0.1), transparent);
    transition: var(--transition-slow);
}

.product-category:hover::before,
.product-card:hover::before {
    left: 100%;
}

.product-category:hover,
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.product-category-icon,
.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    position: relative;
}

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

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

.product-category h3,
.product-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* 产品轮播 */
.product-carousel {
    display: none;
    margin-top: var(--spacing-md);
    overflow-x: auto;
    white-space: nowrap;
    padding: var(--spacing-sm) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-light);
}

.product-carousel::-webkit-scrollbar {
    height: 6px;
}

.product-carousel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-item {
    display: inline-block;
    width: 150px;
    margin-right: var(--spacing-md);
    text-align: center;
    white-space: normal;
    vertical-align: top;
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-3px);
}

.product-item-img {
    width: 100%;
    height: 120px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    overflow: hidden;
}

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

.product-item p {
    font-size: 0.875rem;
    margin: 0;
}

/* ===============================================
   Company Profile Section
   =============================================== */

.company-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    background: var(--light-blue);
    padding: var(--spacing-xl);
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
}

.company-profile-img {
    width: 100%;
    height: 350px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.company-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-profile-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

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

/* ===============================================
   Certificates Section
   =============================================== */

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

.certificates-carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    scrollbar-width: thin;
}

.certificate-item {
    min-width: 280px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.certificate-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.certificate-img {
    width: 100%;
    height: 320px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-item h4 {
    margin: 0;
    color: var(--text-dark);
}

/* ===============================================
   Map Section
   =============================================== */

.map-section {
    margin-bottom: var(--spacing-xl);
}

.map-container {
    width: 100%;
    height: 450px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===============================================
   Float Contact Buttons (bottom-right)
   =============================================== */

.float-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.float-btn.wa  { background: #25D366; color: white; }
.float-btn.mail { background: #1A5FBF; color: white; }

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

.qr-code {
    width: 180px;
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===============================================
   Footer
   =============================================== */

footer {
    background: #2C3E50;
    color: white;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    color: white;
}

.footer-section p {
    line-height: 1.8;
    color: #BDC3C7;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    padding-left: var(--spacing-xs);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #BDC3C7;
    font-size: 0.9rem;
}

/* ===============================================
   Page Layouts
   =============================================== */

.page-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.sidebar h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
    font-size: 1.25rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--light-blue);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: var(--spacing-sm);
}

.sidebar ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 20px;
}

.main-content {
    background: white;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* ===============================================
   News Section
   =============================================== */

.news-list {
    display: grid;
    gap: var(--spacing-lg);
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-lg);
    transition: var(--transition);
}

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

.news-item:hover {
    transform: translateX(5px);
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
}

.news-item h3:hover {
    color: var(--secondary-blue);
}

.news-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.news-meta::before {
    content: '📅';
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ===============================================
   Contact Form
   =============================================== */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.contact-info {
    background: var(--light-blue);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-top: var(--spacing-lg);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.contact-info p strong {
    color: var(--text-dark);
    display: inline-block;
    min-width: 120px;
}

/* ===============================================
   Product Detail Page
   =============================================== */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.product-detail-image {
    width: 100%;
    height: 500px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.product-specs {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin: var(--spacing-md) 0;
}

.product-specs h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.spec-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

/* ===============================================
   Product Category Sections
   =============================================== */

.product-category-section {
    padding-top: 80px;
    margin-top: -80px; /* 补偿padding,确保锚点定位准确 */
    margin-bottom: 60px;
}

.products-main-content {
    flex: 1;
    min-width: 0; /* 防止flex子元素溢出 */
}

.category-nav {
    list-style: none;
    padding: 0;
}

.category-nav li {
    margin-bottom: 8px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.category-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 20px;
}

.category-link.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
    border-left-color: var(--primary-blue);
}

/* ===============================================
   Utility Classes
   =============================================== */

.hidden {
    display: none !important;
}

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

.text-primary {
    color: var(--primary-blue);
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ===============================================
   Loading Animation
   =============================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 1024px) {
    /* Banner Grid - 1 column on tablet */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .factory-certs-group {
        gap: 10px;
    }

    .factory-showcase img {
        height: 100px;
    }

    .banner-section {
        padding: 12px;
    }

    .cert-text-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .banner-carousel-item {
        flex: 0 0 calc(50% - 6px);
    }

    .banner-product-img {
        height: 120px;
    }

    .banner-carousel-wrapper {
        padding: 0 30px;
    }

    .banner-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* Banner content responsive */
    .banner-content-section {
        padding: var(--spacing-sm) var(--spacing-md) 8px;
    }

    .banner-content-section h1 {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .banner-content-section p {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    /* Info bar responsive */
    .info-bar-contact {
        gap: 14px;
    }

    .info-bar-item {
        font-size: 0.75rem;
    }

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

    .sidebar {
        position: static;
        margin-bottom: 30px;
    }

    /* 在平板上显示为水平滚动的tab */
    .category-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-blue) var(--bg-light);
    }

    .category-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .category-link {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .category-link:hover,
    .category-link.active {
        border-left: none;
        border-bottom-color: var(--primary-blue);
        padding-left: 15px;
    }

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

@media (max-width: 768px) {
    /* Banner Grid - 1 column on mobile */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modern-banner {
        padding: var(--spacing-sm) 0;
    }

    .banner-section {
        padding: 12px;
    }

    .section-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .section-header h3 {
        font-size: 0.95rem;
    }

    .section-header p {
        font-size: 0.65rem;
    }

    .factory-showcase img {
        height: 90px;
        margin-bottom: 6px;
    }

    .certifications-showcase {
        gap: 6px;
        flex-direction: row;
    }

    .cert-text-item {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .banner-carousel-item {
        flex: 0 0 calc(50% - 6px);
    }

    .banner-product-img {
        height: 110px;
    }

    .banner-product-card h4 {
        font-size: 0.8rem;
    }

    .banner-product-card p {
        font-size: 0.7rem;
    }

    .showcase-info {
        padding: 6px;
    }

    .showcase-info h4 {
        font-size: 0.6rem;
    }

    .showcase-info p {
        font-size: 0.5rem;
    }

    /* Banner content responsive */
    .banner-content-section {
        padding: var(--spacing-sm) var(--spacing-md) 6px;
    }

    .banner-content-section h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .banner-content-section p {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

    .banner-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
        gap: var(--spacing-sm);
    }

    /* Top bar responsive */
    .header-top-inner {
        padding: 0 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-search {
        width: auto;
        flex: 1;
        min-width: 140px;
    }

    /* Nav responsive */
    .header-nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 8px 16px;
    }

    .logo-wrap {
        padding: 4px 0;
    }

    .logo-img {
        height: 30px;
    }

    .logo-text span {
        display: none;
    }

    .nav-separator {
        display: none;
    }

    .btn-quote {
        display: none;
    }

    /* Navigation menu */
    .main-nav {
        order: 10;
        width: 100%;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        border-top: 1px solid #E8EEF7;
        gap: 0;
    }

    .nav-item {
        display: block;
    }

    .nav-item > a {
        padding: 11px 16px;
        border-radius: 0;
        border-bottom: 1px solid #f0f2f5;
    }

    .nav-item > a.active::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: #f4f7fc;
        min-width: auto;
    }

    .dropdown-menu a {
        padding: 9px 28px;
        color: #4a5568;
        font-size: 0.82rem;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    /* Banner */
    .modern-banner {
        padding: var(--spacing-md) 0;
    }

    /* Company Profile */
    .company-profile {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Float contact on mobile */
    .float-contact {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .float-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .banner-content-section h1 {
        font-size: 1.35rem;
        margin-bottom: 5px;
    }

    .banner-content-section p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .banner-buttons {
        gap: 8px;
    }

    .certifications-showcase {
        gap: 4px;
        flex-direction: row;
    }

    .cert-text-item {
        font-size: 0.65rem;
        padding: 4px 6px;
    }

    .banner-carousel-item {
        flex: 0 0 100%;
    }

    .banner-product-img {
        height: 120px;
    }

    .banner-carousel-wrapper {
        padding: 0 28px;
    }

    .banner-carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .banner-product-card {
        padding: 10px;
    }

    .banner-product-card h4 {
        font-size: 0.75rem;
    }

    .banner-product-card p {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ===============================================
   Print Styles
   =============================================== */

@media print {
    header,
    .float-contact,
    .banner-buttons,
    footer {
        display: none !important;
    }

    .modern-banner {
        padding: 20px 0;
    }

    * {
        box-shadow: none !important;
    }
}