/* ========================================
   琳发五金官网 - 公共样式表
   广州市琳发金属制品有限公司
   ======================================== */

:root {
    --red: #c62828;
    --red-dark: #8b0000;
    --red-light: #ffebee;
    --gold: #f9a825;
    --gold-light: #fff8e1;
    --dark: #1a1a1a;
    --gray: #4b5563;
    --light-bg: #fafafa;
    --border: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
    transition: box-shadow 0.25s;
}
.navbar.scrolled { box-shadow: 0 3px 20px rgba(0,0,0,0.1); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; object-fit: contain; }
.nav-logo-text { font-size: 1.05rem; font-weight: 800; color: var(--dark); letter-spacing: 1px; }
.nav-logo-sub { font-size: 0.7rem; color: var(--gray); font-weight: 400; letter-spacing: 0; display: block; }
.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--red); background: var(--red-light); }
.nav-links a.active-link { font-weight: 700; }
.nav-cta {
    background: var(--red) !important;
    color: white !important;
    padding: 9px 22px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: 0.2s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 999; }
.mobile-overlay.active { display: block; }

/* ─── HERO (index) ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 50%, #fffde7 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(198,40,40,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(249,168,37,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.hero-logo-wrap { margin-bottom: 28px; }
.hero-logo-wrap img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(198,40,40,0.25));
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-light);
    color: var(--red-dark);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 24px;
    border: 1px solid rgba(198,40,40,0.2);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero h1 { font-size: 3.8rem; font-weight: 900; margin-bottom: 18px; color: var(--dark); line-height: 1.15; }
.hero h1 .highlight { color: var(--red); }
.hero h1 .highlight-gold { color: var(--gold); }
.hero p { font-size: 1.15rem; color: var(--gray); max-width: 520px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-num span { font-size: 1.1rem; font-weight: 700; }
.stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 4px; }

/* ─── PAGE HERO (about/products) ─── */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #3d0000 60%, #1a1a1a 100%);
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 72px;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(198,40,40,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 { font-size: 2.8rem; font-weight: 900; color: white; margin-bottom: 12px; position: relative; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 600px; margin: 0 auto; position: relative; }

/* ─── BUTTONS ─── */
.btn {
    padding: 13px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--red); color: white; box-shadow: 0 8px 24px rgba(198,40,40,0.3); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #7a4100; box-shadow: 0 8px 24px rgba(249,168,37,0.35); }
.btn-gold:hover { background: #f57f17; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red-light); }
.btn-sm {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 18px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}
.btn-sm:hover { background: var(--red); color: white; }

/* ─── SECTIONS ─── */
section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}
.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-light);
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}
.section-title { font-size: 2.3rem; font-weight: 800; margin-bottom: 14px; color: var(--dark); }
.section-title .accent { color: var(--red); }
.section-desc { font-size: 1.05rem; color: var(--gray); max-width: 580px; margin-bottom: 40px; }
.section-title-bar {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title-bar::before {
    content: '';
    width: 5px; height: 28px;
    background: var(--red);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ─── CARDS ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 24px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--red);
    opacity: 0;
    transition: 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: rgba(198,40,40,0.3); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { font-weight: 700; margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--gray); font-size: 0.93rem; }

/* ─── BRAND WALL ─── */
.brand-wall { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 40px; }
.brand-item {
    padding: 12px 28px;
    background: #f9fafb;
    border-radius: 10px;
    font-weight: 700;
    color: var(--gray);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.brand-item:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ─── PRODUCT CARDS ─── */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: rgba(198,40,40,0.3); }
.product-img-area {
    height: 180px;
    background: linear-gradient(135deg, #fff5f5, #fffde7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.product-img-area img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-img-area img { transform: scale(1.05); }
.product-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: white;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}
.product-tag.gold { background: var(--gold); color: #7a4100; }
.product-info { padding: 16px 18px 20px; }
.product-info h3 { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.product-info h3 a { text-decoration: none; color: inherit; }
.product-info h3 a:hover { color: var(--red); }
.product-info .spec { color: var(--gray); font-size: 0.85rem; margin-bottom: 10px; }
.product-info .price { font-weight: 800; font-size: 1.05rem; color: var(--red); }
.product-info .price a { color: var(--red); text-decoration: none; }
.product-info .price a:hover { text-decoration: underline; }
.product-info .price small { font-weight: 500; font-size: 0.78rem; color: var(--gray); }

/* ─── SOLUTIONS (dark section) ─── */
.section-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.section-bg-inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-bg .section-label { background: rgba(198,40,40,0.3); color: #ff8a80; }
.section-bg .section-title { color: white; }
.section-bg .section-desc { color: rgba(255,255,255,0.65); }
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.solution-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: 0.25s;
}
.solution-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(198,40,40,0.4); transform: translateY(-4px); }
.solution-icon {
    font-size: 2rem;
    background: rgba(198,40,40,0.2);
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}
.solution-card h3 { color: white; font-weight: 700; margin-bottom: 6px; }
.solution-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ─── NEWS ─── */
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: 0.25s;
}
.news-item:hover { border-color: rgba(198,40,40,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.news-item .date {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.news-item h4 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.news-item h4 a { text-decoration: none; color: inherit; }
.news-item h4 a:hover { color: var(--red); }
.news-item p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }

/* ─── FAQ ─── */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: 0.2s;
    cursor: pointer;
}
.faq-item:hover { border-color: rgba(198,40,40,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.faq-item h4 { font-weight: 700; color: var(--red-dark); display: flex; align-items: center; gap: 10px; }
.faq-item h4::before { content: 'Q'; background: var(--red); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.faq-item p { color: var(--gray); margin-top: 8px; padding-left: 32px; font-size: 0.94rem; }

/* ─── CONTACT ─── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-family: inherit;
    transition: 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(198,40,40,0.08);
}
.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    transition: 0.2s;
}
.info-card:hover { border-color: rgba(198,40,40,0.3); }
.info-icon {
    width: 46px; height: 46px;
    background: var(--red-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.info-card strong { display: block; font-size: 0.9rem; color: var(--dark); margin-bottom: 2px; }
.info-card span { color: var(--gray); font-size: 0.9rem; }

/* ─── ABOUT PAGE ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 64px 24px 80px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: 0.2s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-card .stat-num { font-size: 2.4rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-card .stat-num sup { font-size: 1rem; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 6px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.about-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    opacity: 0;
    transition: 0.25s;
}
.about-card:hover { border-color: rgba(198,40,40,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.about-card:hover::before { opacity: 1; }
.about-card h3 { color: var(--red-dark); margin-bottom: 12px; font-size: 1.2rem; }
.about-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.badge {
    background: var(--red-light);
    color: var(--red-dark);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(198,40,40,0.15);
}
.badge.gold { background: var(--gold-light); color: #7a4100; border-color: rgba(249,168,37,0.3); }
.timeline { position: relative; padding-left: 32px; margin-bottom: 56px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--red), var(--gold)); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px; top: 6px;
    width: 14px; height: 14px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { font-size: 0.78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.timeline-item h4 { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.timeline-item p { color: var(--gray); font-size: 0.92rem; }
.full-width-img { width: 100%; margin: 48px 0; }
.full-width-img img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); display: block; }
.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.honor-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.2s;
}
.honor-item:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(249,168,37,0.12); }
.honor-icon { font-size: 1.8rem; flex-shrink: 0; }
.honor-item p { color: var(--gray); font-size: 0.9rem; font-weight: 600; }

/* ─── PRODUCTS PAGE ─── */
.products-container { max-width: 1360px; margin: 0 auto; padding: 40px 24px 80px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-label { font-size: 0.88rem; font-weight: 600; color: var(--gray); margin-right: 4px; }
.filter-btn {
    padding: 7px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: white; }
.search-wrap { margin-left: auto; position: relative; }
.search-wrap input {
    padding: 8px 16px 8px 36px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    font-size: 0.88rem;
    background: white;
    width: 220px;
    transition: 0.2s;
    font-family: inherit;
}
.search-wrap input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,40,40,0.08); }
.search-wrap::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; }
.table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
}
.product-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.product-table thead tr { background: linear-gradient(135deg, #1a1a1a, #3d0000); }
.product-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.product-table th:first-child { padding-left: 20px; }
.product-table td { padding: 14px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.product-table td:first-child { padding-left: 20px; }
.product-table tbody tr:last-child td { border-bottom: none; }
.product-table tbody tr { transition: 0.15s; }
.product-table tbody tr:hover { background: #fff5f5; }
.product-table tbody tr.hidden { display: none; }
.cell-img { width: 80px; text-align: center; }
.cell-img img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.cell-name { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.cell-spec { color: var(--gray); font-size: 0.83rem; margin-top: 3px; line-height: 1.5; }
.cell-mat { color: var(--gray); font-size: 0.85rem; }
.cell-price { color: var(--red); font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.cell-price a {
    color: var(--red);
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}
.cell-price a:hover {
    color: var(--red-dark);
    text-decoration: underline;
}
.cell-moq {
    display: inline-block;
    background: var(--red-light);
    color: var(--red-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}
.cat-fastener { background: #e3f2fd; color: #0d47a1; }
.cat-tool { background: var(--gold-light); color: #7a4100; }
.cat-bitset { background: var(--red-light); color: var(--red-dark); }
.cat-pneumatic { background: #e8f5e9; color: #1b5e20; }
.cat-autokit { background: #f3e5f5; color: #6a1b9a; }
.table-summary {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--gray);
}
.table-summary strong { color: var(--dark); }
.scroll-highlight { animation: rowHL 1.2s ease-out; }
@keyframes rowHL { 0% { background: #fff3e0; } 100% { background: transparent; } }
.cta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; flex-wrap: wrap; gap: 16px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    border: 1.5px solid rgba(198,40,40,0.3);
    padding: 10px 24px;
    border-radius: 40px;
    transition: 0.2s;
    background: white;
}
.back-link:hover { background: var(--red); color: white; }
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #7a4100;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    border: 1.5px solid transparent;
}
.download-link:hover { background: #f57f17; color: white; }

/* ─── TOAST ─── */
.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    border-left: 3px solid var(--gold);
    z-index: 2000;
}
.toast.show { opacity: 1; }

/* ─── 首页产品卡片图片放大 ─── */
.product-img-area img.card-zoomable {
    cursor: zoom-in;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-img-area img.card-zoomable:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* ─── 图片放大 Lightbox（products.html + index.html 共用） ─── */
.cell-img img { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.cell-img img:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.88); z-index: 10000; align-items: center; justify-content: center;
    flex-direction: column; animation: lbFadeIn 0.25s ease; }
.lightbox.active { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5); animation: lbZoomIn 0.3s ease;
    transform-origin: center center; transition: transform 0.15s ease-out;
    cursor: grab; user-select: none; -webkit-user-drag: none; }
.lightbox img.dragging { cursor: grabbing; transition: none; }
@keyframes lbZoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-zoom-hint { color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-top: 10px;
    text-align: center; pointer-events: none; transition: opacity 0.4s; }
.lightbox-zoom-hint.hidden { opacity: 0; }

.lightbox-caption { color: #fff; margin-top: 8px; font-size: 0.95rem; text-align: center;
    max-width: 600px; line-height: 1.5; }

.lightbox-close { position: absolute; top: 24px; right: 32px; width: 44px; height: 44px;
    background: rgba(255,255,255,0.15); border: none; border-radius: 50%; cursor: pointer;
    font-size: 1.4rem; color: #fff; display: flex; align-items: center; justify-content: center;
    transition: 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ─── FOOTER ─── */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 30px;
    font-size: 0.88rem;
}
footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
footer a:hover { color: white; }

/* ─── MOBILE ─── */

/* ── 平板 / 小窗口过渡 (~1100px) ── */
@media (max-width: 1100px) {
    .navbar { padding: 10px 24px; }
    .nav-logo-text { font-size: 0.92rem; }
    .nav-logo-sub { font-size: 0.65rem; }
    .nav-links { gap: 2px; }
    .nav-links a { font-size: 0.84rem; padding: 6px 10px; }
    .nav-cta { padding: 7px 16px !important; font-size: 0.82rem !important; }
    .hero h1 { font-size: 3rem; }
    .showcase-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
    .product-info h3 { font-size: 0.92rem; word-break: break-word; line-height: 1.35; }
    .product-info .spec { font-size: 0.8rem; }
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
    .solution-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
    .news-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .contact-wrapper { grid-template-columns: 1fr 1fr; gap: 28px; }
    .section-title { font-size: 2rem; }
    .page-hero h1 { font-size: 2.4rem; }
}

/* ── 平板竖屏 / 大手机 (~900px) ── */
@media (max-width: 900px) {
    .navbar { padding: 10px 16px; }
    .nav-links { gap: 0; }
    .nav-links a { font-size: 0.78rem; padding: 5px 8px; }
    .nav-cta { padding: 6px 12px !important; font-size: 0.76rem !important; letter-spacing: 0; }
    .nav-logo-text { font-size: 0.85rem; }
    .nav-logo-sub { display: none; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 18px; margin-top: 36px; }
    .stat-num { font-size: 1.8rem; }
    .showcase-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
    .product-img-area { height: 150px; }
    .product-info { padding: 12px 14px 16px; }
    .product-info h3 { font-size: 0.88rem; }
    .section-title { font-size: 1.75rem; }
    .section-desc { font-size: 0.95rem; max-width: 480px; }
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .card { padding: 22px 18px; }
    .solution-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .solution-card { padding: 20px 18px; }
    .news-list { grid-template-columns: 1fr; gap: 16px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .brand-wall { gap: 10px; }
    .brand-item { padding: 8px 16px; font-size: 0.85rem; }
    .grid-2col { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .honor-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-wrap { margin-left: 0; width: 100%; }
    .search-wrap input { width: 100%; box-sizing: border-box; }
    .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
    .table-summary { font-size: 0.8rem; padding: 12px 16px; }
}

/* ── 移动端 (~768px) ── */
@media (max-width: 768px) {
    .navbar { padding: 10px 16px; }
    .nav-logo img { height: 36px; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 72%;
        height: 100vh;
        flex-direction: column;
        background: white;
        padding: 90px 24px 40px;
        box-shadow: -6px 0 30px rgba(0,0,0,0.15);
        transition: 0.28s ease;
        gap: 4px;
        z-index: 1001;
        align-items: flex-start;
    }
    .nav-links.active { right: 0; }
    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: 10px;
        display: block;
        text-align: left;
    }
    .nav-links a:hover, .nav-links a.active-link { background: var(--red-light); }
    .nav-cta {
        margin-top: 12px;
        text-align: center;
        display: block;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    .hamburger { display: flex; }
    .mobile-overlay.active { display: block; }

    /* Hero */
    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    .hero p { font-size: 0.92rem; max-width: 400px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
    .hero-stats { gap: 20px; margin-top: 32px; padding-top: 24px; }
    .stat-num { font-size: 1.6rem; }
    .stat-label { font-size: 0.75rem; }

    /* Sections */
    section { padding: 50px 16px; }
    .section-label { font-size: 0.75rem; padding: 4px 12px; }
    .section-title { font-size: 1.55rem; }
    .section-desc { font-size: 0.88rem; max-width: 360px; }
    .section-title-bar { font-size: 1.3rem; }
    .page-hero { padding: 48px 16px; margin-top: 64px; }
    .page-hero h1 { font-size: 1.7rem; }

    /* Product cards */
    .showcase-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .product-card { max-width: 420px; margin: 0 auto; }
    .product-img-area { height: 200px; }
    .product-info { padding: 16px 18px 18px; }
    .product-info h3 { font-size: 1rem; }
    .btn-sm { display: block; text-align: center; margin-top: 8px; }

    /* Cards */
    .cards-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .card { max-width: 420px; margin: 0 auto; padding: 22px 18px; }

    /* Solutions */
    .solution-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .solution-card { padding: 20px 18px; }

    /* Contact */
    .contact-form input, .contact-form textarea { padding: 12px 14px; font-size: 0.9rem; }
    .info-card { padding: 14px; }
    .info-icon { width: 38px; height: 38px; font-size: 1.2rem; }

    /* About page */
    .container { padding: 50px 16px 60px; }
    .grid-2col { grid-template-columns: 1fr; gap: 18px; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .honor-grid { grid-template-columns: 1fr; gap: 12px; }
    .about-card { padding: 22px 18px; }
    .about-card h3 { font-size: 1.05rem; }
    .about-card p { font-size: 0.88rem; }

    /* Products table */
    .products-container { padding: 24px 12px 50px; }
    .product-table th, .product-table td { padding: 9px 6px; font-size: 0.78rem; white-space: nowrap; }
    .cell-img { width: 55px; }
    .cell-img img { width: 45px; height: 45px; border-radius: 6px; }
    .cell-name { font-size: 0.85rem; white-space: normal; }
    .cell-spec { font-size: 0.75rem; }
    .cell-price { font-size: 0.85rem; }
    .cat-badge { font-size: 0.68rem; padding: 2px 8px; }

    /* Footer */
    footer { padding: 24px 16px; font-size: 0.8rem; }
}

/* ── 小手机 (~480px) ── */
@media (max-width: 480px) {
    .nav-logo-text { font-size: 0.8rem; }
    .hero h1 { font-size: 1.65rem; }
    .hero-logo-wrap img { height: 56px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .section-title { font-size: 1.35rem; }
    .product-info h3 { font-size: 0.94rem; }
    .stat-num { font-size: 1.35rem; }
    .brand-item { padding: 6px 12px; font-size: 0.78rem; }
    .product-table th, .product-table td { padding: 7px 5px; font-size: 0.72rem; }
    .cell-img { width: 45px; }
    .cell-img img { width: 36px; height: 36px; }
    .info-card { flex-direction: column; text-align: center; gap: 8px; }
}

/* ========================================
   美化增强 — 滚动动画 / 进度条 / 悬浮按钮 / 增强页脚
   ======================================== */

/* ─── 原生平滑滚动 ─── */
html { scroll-behavior: smooth; }

/* ─── 顶部滚动进度条 ─── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--gold));
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 8px rgba(198,40,40,0.4);
}

/* ─── 滚动渐入动画 ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.reveal-left { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 卡片网格逐个延迟动画 */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.54s; }

/* ─── 增强产品卡片 hover ─── */
.product-card { position: relative; }
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.3s;
    pointer-events: none;
}
.product-card:hover::after {
    box-shadow: 0 0 0 2px rgba(198,40,40,0.15), 0 20px 50px rgba(198,40,40,0.12);
}
.product-card:hover .product-tag { transform: scale(1.08); }
.product-tag { transition: transform 0.25s; }

/* ─── 增强卡片 hover 光效 ─── */
.card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(198,40,40,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 16px;
}
.card:hover::after { opacity: 1; }

/* ─── Hero 标题渐变流光 ─── */
.hero h1 .highlight {
    background: linear-gradient(90deg, var(--red), #ff5252, var(--red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ─── 悬浮询价按钮 ─── */
.float-inquiry {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(198,40,40,0.35);
    z-index: 900;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: floatPulse 2.5s ease-in-out infinite;
}
.float-inquiry:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 32px rgba(198,40,40,0.45);
}
@keyframes floatPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(198,40,40,0.35), 0 0 0 0 rgba(198,40,40,0.3); }
    50% { box-shadow: 0 6px 24px rgba(198,40,40,0.35), 0 0 0 12px rgba(198,40,40,0); }
}

/* ─── 返回顶部按钮 ─── */
.back-to-top {
    position: fixed;
    bottom: 28px; left: 28px;
    width: 48px; height: 48px;
    background: rgba(26,26,26,0.85);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--red); transform: translateY(-3px); }

/* ─── 增强页脚 ─── */
.footer-enhanced {
    background: #0f0f0f;
    color: rgba(255,255,255,0.6);
    padding: 48px 24px 24px;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.footer-col p { font-size: 0.85rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.footer-contact-item .fc-icon { flex-shrink: 0; font-size: 1rem; }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: white; }
.footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); }

/* ─── 增强页脚响应式 ─── */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .float-inquiry { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.3rem; }
    .back-to-top { bottom: 20px; left: 20px; width: 42px; height: 42px; font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .float-inquiry { bottom: 16px; right: 16px; }
    .back-to-top { bottom: 16px; left: 16px; }
}

/* ─── reduced-motion 无障碍 ─── */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .float-inquiry, .hero h1 .highlight { animation: none !important; }
    html { scroll-behavior: auto; }
}
