/* ============================================================
   Amaze Auto Parts - 前台样式（原新三星 skr 体系，品牌化改造）
   体系：单文件 skr.css；品牌红 #C2131C + 深黑 #1a1a1a
   响应式断点：1024 / 900 / 768 / 560 / 480 / 360
   版本：v2.0 (?v=2)
   ============================================================ */

:root {
    --brand-red: #C2131C;
    --brand-red-dark: #a01017;
    --brand-dark: #1a1a1a;
    --text-dark: #222;
    --text-gray: #8a8a8a;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', 'Poppins', 'Microsoft YaHei', sans-serif;
    --primary: var(--brand-red);
    --primary-dark: var(--brand-red-dark);
    --bg: var(--bg-light);
    --text: var(--text-dark);
    --gray: var(--text-gray);
    --transition: .3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ========== 通用容器 ========== */
.wrap { width: 1200px; max-width: 96%; margin: 0 auto; }
.container { max-width: 1920px; margin: 0 auto; padding: 0 60px; }

/* 旧 topbar（新模板已移除，保留类定义防止老页面残留） */
.topbar { background: var(--brand-dark); color: #fff; font-size: 13px; display: none; }

/* ========== Header（红色顶栏 + Logo + 搜索） ========== */
.az-header {
    background: var(--brand-red);
    position: relative;
    z-index: 1000;
}
.az-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 60px;
    max-width: 1920px;
    margin: 0 auto;
}
.az-logo {
    flex-shrink: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    transition: opacity var(--transition);
}
.az-logo:hover { opacity: .9; }
.az-logo img { height: 44px; width: auto; }

.az-search {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}
.az-search input {
    flex: 1;
    height: 100%;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    min-width: 0;
}
.az-search input::placeholder { color: #bbb; }
.az-search button {
    flex-shrink: 0;
    height: 100%;
    padding: 0 28px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition);
}
.az-search button:hover { background: #000; }

/* 汉堡按钮 */
.az-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
}
.az-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}
.az-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.az-toggle.active span:nth-child(2) { opacity: 0; }
.az-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Nav（白色吸顶导航） ========== */
.az-nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 990;
    transition: box-shadow var(--transition);
}
.az-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.az-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
    height: var(--nav-h, 64px);
}
.az-nav-menu { display: flex; }
.az-nav-menu > li { position: relative; }
.az-nav-menu > li > a {
    display: block;
    padding: 0 22px;
    line-height: 64px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition);
    white-space: nowrap;
}
.az-nav-menu > li > a:hover,
.az-nav-menu > li > a.active { color: var(--brand-red); }
.az-nav-menu > li > a.has-child::after {
    content: '';
    margin-left: 5px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    display: inline-block;
    vertical-align: middle;
}
/* 下拉子导航 */
.az-nav-menu > li .sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border-top: 2px solid var(--brand-red);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 991;
}
.az-nav-menu > li:hover .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.az-nav-menu > li .sub a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all .2s;
}
.az-nav-menu > li .sub a:hover { color: var(--brand-red); background: #fafafa; }

.az-nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}
.az-nav-contact svg { width: 18px; height: 18px; color: var(--brand-red); }

/* ========== 移动端抽屉 ========== */
.az-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}
.az-drawer-mask.active { opacity: 1; visibility: visible; }
.az-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1101;
    display: flex;
    flex-direction: column;
}
.az-drawer.active { transform: translateX(0); }
.az-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.az-drawer-header img { height: 36px; }
.az-drawer-close {
    font-size: 28px;
    line-height: 1;
    color: var(--text-gray);
    padding: 4px 8px;
}
.az-drawer-menu { flex: 1; overflow-y: auto; padding: 10px 0; }
.az-drawer-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text-dark);
}
.az-drawer-menu a.active { color: var(--brand-red); font-weight: 600; }

/* ========== 内页头图 ========== */
.page-banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 60%);
    color: #fff;
    padding: 90px 0 70px;
    text-align: left;
}
.page-banner .wrap { display: flex; flex-direction: column; gap: 8px; }
.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 1px;
}
.page-banner p {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.page-banner .crumb-light { color: rgba(255,255,255,.55); font-size: 13px; }
.page-banner .crumb-light a:hover { color: #fff; }
.page-banner .crumb-light a::after { content: ' / '; color: rgba(255,255,0,0); }

/* ========== 面包屑（内页用，浅色底） ========== */
.crumb { padding: 14px 0; color: var(--text-gray); font-size: 13px; }
.crumb a:hover { color: var(--primary); }

/* ========== 通用区块 ========== */
.section { padding: 46px 0; }
.section h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.section .sub { color: var(--gray); margin-bottom: 28px; font-size: 14px; }

/* ========== 卡片网格 ========== */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.card img { width: 100%; height: 180px; object-fit: cover; background: #f2f2f2; }
.card .body { padding: 14px 16px; }
.card .body h3 { font-size: 16px; margin-bottom: 6px; }
.card .body p { color: var(--gray); font-size: 13px; }
.card .price { color: var(--brand-red); font-weight: 700; margin-top: 6px; }

/* ========== 列表项 ========== */
.list-item {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    transition: var(--transition);
}
.list-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.list-item .date { color: var(--gray); font-size: 13px; white-space: nowrap; }
.list-item h3 { font-size: 17px; margin-bottom: 4px; }
.list-item p { color: var(--gray); font-size: 14px; }

/* ========== 详情页 ========== */
.detail {
    background: #fff;
    border-radius: 8px;
    padding: 34px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.detail h1 { font-size: 26px; margin-bottom: 12px; }
.detail .meta {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.detail .content { font-size: 15px; line-height: 1.9; }
.detail .content img { max-width: 100%; }
.detail .content h2, .detail .content h3 { margin: 1.2em 0 .6em; }
.detail .content p { margin-bottom: 1em; }

.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.search-list li a { color: var(--primary-dark); font-weight: 600; }
.search-list li a:hover { color: var(--primary); text-decoration: underline; }
.search-list li .price { color: var(--brand-red); font-weight: 700; margin-left: 10px; font-size: 13px; }

/* ========== 表单 ========== */
.form, .message-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 560px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.form label, .message-form .form-item label { display: block; margin: 14px 0 6px; font-size: 14px; }
.form input, .form textarea, .form select,
.message-form input, .message-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form input:focus, .form textarea:focus,
.message-form input:focus, .message-form textarea:focus { border-color: var(--brand-red); outline: none; }
.form textarea, .message-form textarea { min-height: 120px; resize: vertical; }
.form button, .message-form button {
    margin-top: 20px;
    background: var(--brand-red);
    color: #fff;
    border: 0;
    padding: 12px 34px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.form button:hover, .message-form button:hover { background: var(--brand-red-dark); transform: translateY(-2px); }

/* ========== 页脚 ========== */
.az-footer {
    background: var(--brand-dark);
    color: #b5b5b5;
    padding: 70px 0 0;
    font-size: 14px;
    margin-top: 0;
}
.az-footer a { color: #b5b5b5; transition: color var(--transition); }
.az-footer a:hover { color: #fff; }
.az-footer a { color: #b5b5b5; }
.az-footer a:hover { color: #fff; }
.az-footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    gap: 40px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px 50px;
}
.az-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.az-footer-brand img { height: 40px; }
.az-footer-brand .brand-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}
.az-footer h4, .az-footer .footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.az-footer .footer-contact-list { display: grid; gap: 14px; }
.az-footer .footer-contact-list small { display: block; color: #777; font-size: 12px; margin-bottom: 2px; }
.az-footer .footer-contact-list strong { color: #e5e5e5; font-weight: 500; font-size: 14px; }
.az-footer .footer-contact-list span.addr { color: #b5b5b5; font-size: 13px; line-height: 1.5; }
.az-footer-links { display: grid; gap: 10px; }
.az-footer-links a { font-size: 14px; }
.az-footer .footer-contact-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.az-footer .footer-contact-icon svg { width: 18px; height: 18px; color: var(--brand-red); flex-shrink: 0; margin-top: 3px; }

/* 红卡（留言表单） */
.az-footer-card {
    background: var(--brand-red);
    border-radius: 8px;
    padding: 28px;
}
.az-footer-card .footer-title { color: #fff; }
.az-footer-card .form-note { color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.az-footer-card textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}
.az-footer-card textarea::placeholder { color: rgba(255,255,255,.5); }
.az-footer-card textarea:focus { outline: none; border-color: #fff; }
.az-footer-card .form-row { display: flex; gap: 10px; margin-top: 10px; }
.az-footer-card .form-row input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
}
.az-footer-card .form-row input::placeholder { color: rgba(255,255,255,.5); }
.az-footer-card .form-row input:focus { outline: none; border-color: #fff; }
.az-footer-card .submit-btn {
    margin-top: 14px;
    width: 100%;
    background: #fff;
    color: var(--brand-red);
    font-weight: 600;
    padding: 11px 0;
    border-radius: 4px;
    font-size: 14px;
    transition: background var(--transition), transform var(--transition);
}
.az-footer-card .submit-btn:hover { background: #000; color: #fff; transform: translateY(-2px); }

.az-footer-bottom {
    border-top: 1px solid #2e2e2e;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #777;
    max-width: 1920px;
    margin: 0 auto;
}
.az-footer-social { display: flex; gap: 14px; }
.az-footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.az-footer-social a:hover { background: var(--brand-red); transform: translateY(-3px); }
.az-footer-social a img { width: 16px; height: 16px; }

/* ========== 轮播（CMS flash，首页 hero 用） ========== */
.banner { position: relative; height: 420px; overflow: hidden; background: #ddd; }
.banner img { width: 100%; height: 420px; object-fit: cover; display: none; }
.banner img:first-child { display: block; }
.banner .cap {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.45);
    color: #fff;
    padding: 16px 22px;
    font-size: 18px;
    z-index: 2;
}

/* ========== 首页 Hero ========== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero .hero-media { position: absolute; inset: 0; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-text-group {
    position: relative;
    z-index: 2;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 0 60px 120px;
}
.hero .hero-content { max-width: 640px; }
.hero .hero-eyebrow {
    font-size: 15px;
    color: rgba(255,255,255,.75);
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.hero .hero-title {
    font-family: var(--font-heading);
    font-size: 92px;
    font-weight: 600;
    line-height: .96;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}
.hero .hero-title .line { display: block; }
.hero .hero-title .separator { color: var(--brand-red); margin: 0 6px; font-weight: 300; }
.hero .hero-discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.hero .hero-discover::before {
    content: '';
    width: 48px;
    height: 2px;
    background: var(--brand-red);
}

/* ========== 首页 Products Series ========== */
.products-series { padding: 90px 0 80px; background: #fff; }
.products-series .ps-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 40px;
}
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ps-card {
    display: block;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px 26px 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ps-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(194,19,28,.12);
    transform: translateY(-4px);
    background: #fff;
}
.ps-card-media {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.ps-card-media img { max-height: 100%; width: auto; object-fit: contain; }
.ps-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}
.ps-all-wrap { text-align: center; margin-top: 44px; }
.ps-all {
    display: inline-block;
    padding: 13px 44px;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
}
.ps-all:hover { background: var(--brand-red); color: #fff; transform: translateY(-2px); }

/* ========== 首页 New Arrivals（双列 + 吸顶文字） ========== */
.ref-products {
    background: url('/static/web/img/ref/new_arrivals_bg.jpg') center/cover no-repeat;
    padding: 100px 0;
}
.ref-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}
.ref-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ref-card {
    background: rgba(255,255,255,.92);
    border-radius: 8px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.15); }
.ref-card-logo {
    display: block;
    margin-bottom: 14px;
}
.ref-card-logo img { height: 22px; width: auto; }
.ref-card-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 14px;
}
.ref-card-img img { max-height: 90%; width: auto; object-fit: contain; }
.ref-card-sku {
    display: block;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    letter-spacing: 2px;
}
.ref-sticky { position: sticky; top: 120px; }
.ref-headline {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ref-subtitle { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.ref-divider { border: none; border-top: 2px solid var(--brand-red); width: 56px; margin: 0 0 28px; }
.ref-btn {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    padding: 14px 38px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
}
.ref-btn:hover { background: var(--brand-red-dark); transform: translateY(-2px); }

/* ========== 馈页 Why Choose Us ========== */
.why-us { position: relative; padding: 110px 0; overflow: hidden; }
.why-us .why-us-bg { position: absolute; inset: 0; z-index: 0; }
.why-us .why-us-bg img { width: 100%; height: 100%; object-fit: cover; }
.why-us .container { position: relative; z-index: 1; }
.why-us-headline {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    max-width: 900px;
    text-transform: uppercase;
    margin-bottom: 56px;
}
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-us-item {
    border-top: 2px solid rgba(255,255,255,.25);
    padding-top: 22px;
    transition: var(--transition);
}
.why-us-item:hover { border-top-color: var(--brand-red); }
.why-us-icon { height: 40px; margin-bottom: 16px; }
.why-us-icon img { height: 40px; width: auto; }
.why-us-label { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.5; }
.why-us-accent { color: var(--brand-red); font-size: 26px; font-weight: 700; margin-right: 4px; }

/* ========== 内页双栏布局 ========== */
.layout {
    display: flex;
    gap: 30px;
    margin: 34px 0;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.layout > main { flex: 1; min-width: 0; }
.side {
    width: 220px;
    flex: none;
    position: sticky;
    top: 80px;
}

/* ========== 侧边菜单（内页） ========== */
.side-menu {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.side-menu .side-title {
    padding: 14px 16px;
    background: var(--brand-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.side-menu a {
    display: block;
    padding: 13px 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    transition: var(--transition);
}
.side-menu a:last-child { border-bottom: 0; }
.side-menu a:hover, .side-menu a.on { background: var(--brand-red); color: #fff; }

/* ========== 提示条/留言项/联系信息 ========== */
.notice { border-radius: 6px; font-size: 13px; }
.msg-item { font-size: 14px; }
.contact-info { font-size: 15px; }

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 36px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 14px rgba(194,19,28,.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-red-dark); }
.back-to-top svg path { stroke: #fff; }

/* ========== reveal 滚动入场动效 ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========== 分页 ========== */
.pagination, .page { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination li, .page li { display: inline-block; }
.pagination a, .page a,
.pagination span, .page span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .active span, .page .active span {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--border-red, var(--brand-red));
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .az-search { max-width: 560px; }
}
@media (max-width: 1024px) {
    .az-nav-menu, .az-nav-contact { display: none; }
    .az-toggle { display: flex; }
    .ref-grid { grid-template-columns: 1fr; }
    .ref-sticky { position: static; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-headline { font-size: 40px; }
    .hero .hero-title { font-size: 68px; }
}
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .layout, .side { width: 100%; }
    .side { position: static; }
    .az-footer-main { grid-template-columns: 1fr 1fr; }
    .ps-grid { grid-template-columns: repeat(2, 1fr); }
    .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .grid.c3 { grid-template-columns: repeat(2, 1fr); }
    .page-banner { padding: 64px 0 48px; }
    .page-banner h1 { font-size: 40px; }
}
@media (max-width: 768px) {
    .az-header-inner { padding: 14px 24px; }
    .az-nav-inner { padding: 0 24px; }
    .container { padding: 0 24px; }
    .hero { min-height: 480px; }
    .hero .hero-text-group { padding: 0 24px 80px; }
    .hero .hero-title { font-size: 52px; }
    .ref-cards { grid-template-columns: repeat(2, 1fr); }
    .products-series { padding: 60px 0 50px; }
    .products-series .ps-title { font-size: 48px; }
}
@media (max-width: 560px) {
    .ps-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .ref-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .why-us-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .az-footer-main { grid-template-columns: 1fr; gap: 32px; }
    .list-item { flex-direction: column; }
    .page-banner h1 { font-size: 34px; }
}
@media (max-width: 480px) {
    .az-search button { padding: 0 16px; }
    .az-search button svg { display: none; }
    .message-form, .form { max-width: none; }
    .form-row { flex-direction: column; }
    .ref-products { padding: 60px 0; }
    .ref-cards { grid-template-columns: 1fr; }
    .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
    .ps-all { padding: 12px 32px; }
}
@media (max-width: 360px) {
    .az-logo { font-size: 36px; }
    .hero .hero-title { font-size: 40px; }
    .why-us-headline { font-size: 32px; }
}
