/* ============================================
   生物耗材试剂公司网站 - 主样式表
   设计方向：专业、可信赖、现代科技感
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0369a1;
    --primary-dark: #075985;
    --primary-light: #e0f2fe;
    --accent: #0ea5e9;
    --accent-warm: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-section: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg { opacity: 0.7; }

/* --- Navbar --- */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.logo:hover { color: var(--text); }

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

.logo-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--primary-dark);
}

.logo-slogan {
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 500;
    background: var(--primary-light);
}

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

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #075985 0%, #0369a1 40%, #0ea5e9 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}

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

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

.btn-accent:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Hero Search --- */
.hero-search {
    margin-top: 40px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 6px;
    display: flex;
    max-width: 520px;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-family: var(--font);
}

.hero-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.hero-search button {
    background: #fff;
    color: var(--primary-dark);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    transition: all var(--transition);
}

.hero-search button:hover {
    background: var(--primary-light);
}

/* --- Section Styles --- */
.section {
    padding: 72px 0;
}

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

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

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

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Advantages Grid --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.advantage-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--primary);
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.advantage-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}

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

.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.category-sub-tag {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 3px 10px;
    border-radius: 20px;
}

/* --- Brand Logos --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.brand-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.brand-logo-placeholder {
    width: 72px;
    height: 72px;
    background: var(--bg-section);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    padding: 6px;
}

.brand-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.brand-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.brand-badge {
    display: inline-block;
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
    font-weight: 500;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--primary-dark);
    padding: 40px 0;
}

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

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-item h3 span {
    color: var(--accent-warm);
}

.stat-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #075985, #0ea5e9);
    padding: 64px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Products Page --- */
.page-header {
    background: linear-gradient(135deg, #075985 0%, #0369a1 100%);
    padding: 48px 0;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

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

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li a {
    display: block;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 6px;
    transition: all var(--transition);
}

.sidebar-list li a:hover,
.sidebar-list li a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.product-search {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.product-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font);
}

.product-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    transition: background var(--transition);
}

.product-search button:hover {
    background: var(--primary-dark);
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.product-brand-tag {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.product-meta-label {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 60px;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-card-footer .btn {
    padding: 7px 16px;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin: 0 auto 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
}

/* --- About Page --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.about-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.cert-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cert-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.cert-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cert-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.contact-info-card {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-info-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

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

.contact-detail h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--bg);
}

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

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

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

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: rgba(255,255,255,0.75);
    padding: 56px 0 0;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-about p {
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
}

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

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

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

.footer-col ul li a:hover {
    color: #fff;
}

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

.footer-contact svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.35);
}

/* --- Tools Page --- */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tool-card-header { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border-light); }
.tool-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card-header h2 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.tool-card-header p { font-size: 13px; color: var(--text-muted); }
.tool-body { padding: 24px 28px; }
.tool-formula { background: var(--bg-section); border-radius: var(--radius); padding: 10px 16px; font-size: 15px; font-weight: 500; color: var(--primary-dark); text-align: center; margin-bottom: 20px; font-family: 'Courier New', monospace; }
.tool-hint { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }
.tool-inputs { display: flex; flex-direction: column; gap: 14px; }
.tool-input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.tool-input-group input, .tool-input-group select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; font-family: var(--font); color: var(--text); }
.tool-input-group input:focus, .tool-input-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.tool-input-row { display: flex; gap: 8px; align-items: center; }
.tool-input-row input { flex: 1; }
.tool-input-row select { width: 110px; flex-shrink: 0; }
.tool-unit { font-size: 13px; color: var(--text-muted); white-space: nowrap; min-width: 45px; }
.tool-input-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-calc-btn { width: 100%; justify-content: center; margin-top: 18px; padding: 11px; }
.tool-result { display: none; margin-top: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 16px 20px; text-align: center; }
.tool-result-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.tool-result-value { display: block; font-size: 22px; font-weight: 700; color: #16a34a; }
.tool-error { color: #dc2626; font-size: 13px; }
@media (max-width: 768px) { .tools-grid { grid-template-columns: 1fr; } .tool-input-row-2col { grid-template-columns: 1fr; } }

/* --- Brand Logo Box --- */
.brand-logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-box span {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-link {
    display: inline-block;
    font-size: 12.5px;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
}

.brand-link:hover { color: var(--accent); }

/* --- Resource Grid --- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.resource-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.resource-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-card-logo span { color: #fff; font-size: 15px; font-weight: 700; }

.resource-card-info { flex: 1; min-width: 0; }

.resource-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-type { font-size: 11.5px; color: var(--text-muted); }

.resource-card-arrow { color: var(--text-muted); flex-shrink: 0; }
.resource-card:hover .resource-card-arrow { color: var(--primary); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
}

.faq-question:hover { background: var(--bg-subtle); }
.faq-question svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .advantages-grid,
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .navbar-inner { height: 60px; }
    
    .mobile-toggle { display: flex; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 12px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.open { display: flex; }
    
    .nav-link { padding: 12px 16px; }
    
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 22px; }
    
    .advantages-grid,
    .categories-grid { grid-template-columns: 1fr; }
    
    .brands-grid { grid-template-columns: 1fr; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item h3 { font-size: 28px; }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar { position: static; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 24px; }
}
