/* ============================================================
   TUOMAI 拓迈工具 - 前台样式（红黑白工业风）
   ============================================================ */
:root {
    --red: #DB011C;
    --red-dark: #BD0118;
    --ink: #0A0A0A;
    --dark: #0A0A0A;
    --gray-900: #333333;
    --gray-800: #5C5C5C;
    --gray-700: #717171;
    --gray-600: #858585;
    --gray-500: #999999;
    --gray-400: #ADADAD;
    --gray-300: #C2C2C2;
    --gray-200: #D6D6D6;
    --gray-100: #EBEBEB;
    --gray-50: #F4F4F4;
    --white: #FFFFFF;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    --Global: #DB011C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1240px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--gray-900); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--dark); color: var(--gray-400); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar-slogan { letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-links a { color: var(--gray-400); transition: color .2s; }
.topbar-links a:hover { color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--Global);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1.05; flex-shrink: 0; }
.logo-main {
    font-size: 30px; font-weight: 900; letter-spacing: 2px;
    color: var(--gray-100);
    font-family: "Arial Black", "Microsoft YaHei", sans-serif;
}
.logo-sub { font-size: 12px; letter-spacing: 6px; color: var(--gray-100); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 34px; flex: 1; }
.main-nav a {
    position: relative;
    font-size: 15.5px; font-weight: 700; color: var(--gray-100);
    padding: 26px 0; letter-spacing: 1px;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 18px;
    width: 0; height: 3px; background: var(--red); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #000000; }
.header-phone { text-align: right; line-height: 1.25; flex-shrink: 0; }
.header-phone-label { display: block; font-size: 12px; color: var(--gray-100); }
.header-phone strong { font-size: 19px; color: var(--gray-100); letter-spacing: .5px; }
.nav-toggle { display: none; }

/* ---------- 闪存消息 ---------- */
.flash {
    margin: 16px 0 0; padding: 12px 16px; font-size: 14px;
    border-left: 4px solid;
}
.flash-ok { background: #f0f9f1; border-color: #2e9e44; color: #1d6b2e; }
.flash-error { background: #fdf0f0; border-color: var(--red); color: #a30d1e; }

/* ---------- 首页横幅轮播 ---------- */
.hero { position: relative; height: min(76vh, 700px); min-height: 480px; background: var(--dark); overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .5) 50%, rgba(10, 10, 10, .12) 100%);
}
.hero-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    color: #fff;
}
.hero-content h1 {
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 900; line-height: 1.15; letter-spacing: 3px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-content p { margin: 20px 0 34px; font-size: clamp(15px, 1.6vw, 19px); color: var(--gray-300); max-width: 600px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border: none; cursor: pointer;
    background: rgba(10, 10, 10, .55); color: #fff; font-size: 20px;
    transition: background .2s;
}
.hero-arrow:hover { background: var(--red); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 34px; height: 4px; border: none; cursor: pointer; background: rgba(255, 255, 255, .35); transition: background .2s; }
.hero-dot.is-active, .hero-dot:hover { background: var(--red); }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--gray-100); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.section-title {
    position: relative; padding-left: 18px;
    font-size: 30px; font-weight: 900; letter-spacing: 2px; color: var(--ink);
}
.section-title::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 6px; background: var(--red); }
.section-more { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: 1px; white-space: nowrap; }
.section-more:hover { color: var(--red-dark); }
.empty-tip { padding: 60px 0; text-align: center; color: var(--gray-500); font-size: 15px; }
.empty-tip h2 { color: var(--ink); margin-bottom: 10px; }
.empty-tip .btn { margin-top: 22px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cat-card { background: #fff; border: 1px solid var(--gray-200); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-thumb { aspect-ratio: 1 / .82; overflow: hidden; background: var(--gray-100); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cat-card:hover .cat-thumb img { transform: scale(1.05); }
.cat-body { padding: 18px 20px 22px; border-top: 3px solid var(--red); }
.cat-body h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cat-body p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    background: #fff; border: 1px solid var(--gray-200);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.product-card .thumb { aspect-ratio: 1 / .85; background: var(--gray-100); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card .model { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; }
.product-card .name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; flex: 1; }
.product-card .cat-tag { font-size: 12px; color: var(--gray-500); }
.product-card .price { font-size: 18px; font-weight: 900; color: var(--ink); margin-top: 6px; }

/* ---------- 品牌区块 ---------- */
.brand-band { background: var(--dark); color: #fff; padding: 84px 0; }
.brand-band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: stretch; }
.brand-band-media { border-left: 6px solid var(--red); overflow: hidden; min-height: 320px; }
.brand-band-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-band-text { align-self: center; }
/* 首页品牌区块：虚化图片铺满整个 section 作背景（路径写在元素内联样式上，勿走 CSS 变量） */
.brand-band--bg { position: relative; overflow: hidden; }
.brand-band--bg .band-bg { position: absolute; top: -28px; right: -28px; bottom: -28px; left: -28px; background-size: cover; background-position: center; filter: blur(2px); transform: scale(1.02); }
.brand-band--bg .container { position: relative; z-index: 1; }
.brand-band-text h2 { font-size: 36px; font-weight: 900; letter-spacing: 3px; margin-bottom: 20px; }
.brand-band-text p { color: var(--gray-400); font-size: 15.5px; margin-bottom: 32px; max-width: 520px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--gray-200); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray-100); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: 12.5px; color: var(--red); font-weight: 700; letter-spacing: 1px; }
.news-body h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.news-body p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-row { display: grid; grid-template-columns: 320px 1fr; gap: 28px; background: #fff; border: 1px solid var(--gray-200); padding: 20px; transition: box-shadow .25s ease, transform .25s ease; }
.news-row:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-row-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body { display: flex; flex-direction: column; gap: 8px; }
.news-row-body time { font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 1px; }
.news-row-body h2 { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.news-row-body p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.news-more { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--red); letter-spacing: 1px; }

/* ---------- 订阅条 ---------- */
.subscribe-band { background: var(--red); color: #fff; padding: 52px 0; }
.subscribe-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.subscribe-text h2 { font-size: 28px; font-weight: 900; letter-spacing: 2px; margin-bottom: 6px; }
.subscribe-text p { color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.subscribe-form { display: flex; gap: 12px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
    width: 320px; max-width: 100%; padding: 13px 16px;
    border: none; font-size: 15px; background: #fff; color: var(--ink);
}
.subscribe-form input[type="email"]:focus { outline: 3px solid rgba(255, 255, 255, .5); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: var(--gray-500); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-logo { display: flex; flex-direction: column; line-height: 1.05; margin-bottom: 18px; }
.footer-logo .logo-main { color: var(--red); font-size: 28px; }
.footer-logo .logo-sub { color: var(--gray-300); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.footer-contact strong { color: #fff; font-size: 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gray-800); border-radius: 50%; color: var(--gray-500); transition: all .25s;
}
.footer-social a:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 2px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--gray-500); transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--gray-900); padding: 18px 0; font-size: 12.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;justify-content: space-around; }

/* ---------- 内页横幅 ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--dark) 0%, #1A1A1A 60%, #2A0508 100%);
    color: #fff; padding: 52px 0;
}
.page-hero-slim { padding: 26px 0; }
.page-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: 3px; margin-top: 14px; }
.page-hero p { color: var(--gray-400); margin-top: 8px; font-size: 15px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-500); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb strong { color: #fff; font-weight: 700; }
.page-hero .breadcrumb strong { color: var(--red); }

/* ---------- 筛选条 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.chip {
    padding: 9px 22px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
    border: 2px solid var(--gray-200); color: var(--gray-700); background: #fff;
    transition: all .2s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 产品详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.detail-media { border: 1px solid var(--gray-200); background: var(--gray-100); position: sticky; top: 100px; }
.detail-media img { width: 100%; }
.detail-info .model { color: var(--red); font-weight: 800; letter-spacing: 2px; font-size: 15px; }
.detail-info h1 { font-size: 30px; font-weight: 900; color: var(--ink); margin: 8px 0 14px; line-height: 1.3; }
.detail-info .cat-tag { display: inline-block; font-size: 12.5px; padding: 4px 12px; background: var(--gray-100); color: var(--gray-700); margin-bottom: 16px; transition: all .2s; }
.detail-info a.cat-tag:hover { background: var(--red); color: #fff; }
.price-big { font-size: 32px; font-weight: 900; color: var(--red); margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--gray-700); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-desc { max-width: 860px; }
.detail-desc .section-title { margin-bottom: 22px; }
.detail-desc p { font-size: 15px; color: var(--gray-700); line-height: 1.9; margin-bottom: 14px; }

/* ---------- 文章 ---------- */
.article { max-width: 820px; }
.article h1 { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.article-date { display: block; margin: 14px 0 24px; color: var(--red); font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.article-media { margin-bottom: 28px; }
.article-media img { width: 100%; }
.article-content p { font-size: 15.5px; color: var(--gray-700); line-height: 2; margin-bottom: 16px; }
.article-back { margin-top: 36px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
.about-media { border-left: 6px solid var(--red); }
.about-media img { width: 100%; }
.about-text h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.about-text p { font-size: 15px; color: var(--gray-700); line-height: 2; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { padding: 34px 16px; background: #fff; border-top: 4px solid var(--red); }
.stat-item strong { display: block; font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: 1px; }
.stat-item span { font-size: 13.5px; color: var(--gray-500); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--gray-200); border-top: 4px solid var(--red); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.value-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.8; }
.timeline { position: relative; max-width: 860px; padding-left: 36px; border-left: 3px solid var(--red); display: flex; flex-direction: column; gap: 34px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -44px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(219, 1, 28, .15); }
.timeline-year { display: block; font-size: 20px; font-weight: 900; color: var(--red); letter-spacing: 1px; }
.timeline-item p { margin-top: 4px; font-size: 14.5px; color: var(--gray-700); line-height: 1.8; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--gray-100); padding: 24px 26px; border-left: 5px solid var(--red); }
.info-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 2px; margin-bottom: 8px; }
.info-card .info-strong { font-size: 19px; font-weight: 900; color: var(--ink); margin-bottom: 4px; word-break: break-all; }
.info-card span { font-size: 13px; color: var(--gray-500); }
.contact-form { background: #fff; border: 1px solid var(--gray-200); padding: 34px; }
.contact-form h2 { font-size: 22px; font-weight: 900; color: var(--ink); margin-bottom: 24px; letter-spacing: 1px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--gray-700); margin-bottom: 16px; }
.contact-form label em { color: var(--red); font-style: normal; }
.contact-form input, .contact-form textarea {
    width: 100%; margin-top: 6px; padding: 11px 14px;
    border: 1px solid var(--gray-300); font-size: 14.5px; font-family: inherit;
    background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(219, 1, 28, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .cat-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-band-inner { grid-template-columns: 1fr; gap: 36px; }
    .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .detail-media { position: static; }
    .header-phone { display: none; }
}

@media (max-width: 768px) {
    .topbar-slogan { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .nav-toggle {
        display: flex; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 8px;
    }
    .nav-toggle span { width: 24px; height: 3px; background: var(--ink); }
    .header-inner { gap: 16px; }
    .main-nav {
        position: fixed; top: 114px; left: 0; right: 0; z-index: 40;
        background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
        display: none;
    }
    .site-header.nav-open .main-nav { display: flex; }
    .main-nav a { padding: 16px 24px; border-top: 1px solid var(--gray-100); }
    .main-nav a::after { display: none; }
    .cat-grid, .product-grid, .news-grid, .form-row { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .news-row { grid-template-columns: 1fr; }
    .news-row-thumb { max-width: 100%; }
    .section { padding: 52px 0; }
    .hero { min-height: 420px; height: 60vh; }
}

@media (max-width: 520px) {
    .cat-grid, .product-grid, .news-grid, .value-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .subscribe-form input[type="email"] { width: 100%; }
}
