/* ===========================================
   四川悦蝶科技有限公司 - 全局样式
   配色：明亮清新蓝白风格
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 明亮蓝 */
    --primary: #0066cc;
    --primary-dark: #004a99;
    --primary-light: #1a8cff;
    --accent: #2196f3;

    /* 背景色 - 明亮 */
    --bg-page: #ffffff;
    --bg-section: #f5fafe;
    --bg-section-alt: #eaf4ff;
    --bg-card: #ffffff;
    --bg-hover: #f0f7ff;

    /* 文字色 */
    --text-dark: #0f1c2e;
    --text-body: #4a5568;
    --text-muted: #7a8a9e;
    --text-inverse: #ffffff;

    /* 边框/阴影 */
    --border: #e2e8f0;
    --border-light: #eef4fb;
    --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 12px 36px rgba(0, 102, 204, 0.14);

    /* 尺寸 */
    --header-h: 76px;
    --container-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text-body);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ===========================================
   通用工具类
   =========================================== */

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section.section-alt {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    position: relative;
    padding: 0 24px;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
}

.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* ===========================================
   按钮
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-light {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--bg-hover);
    box-shadow: var(--shadow-md);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===========================================
   导航栏
   =========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 102, 204, 0.08);
}

.header-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    white-space: nowrap;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   轮播图（Hero）
   =========================================== */

.hero {
    margin-top: var(--header-h);
    height: calc(100vh - var(--header-h));
    min-height: 520px;
    position: relative;
    overflow: hidden;
    background: var(--bg-section);
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.05) 100%);
    z-index: 2;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 3;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 32px; }
.carousel-btn.next { right: 32px; }

.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.carousel-dot.active {
    width: 36px;
    border-radius: 6px;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   产品卡片
   =========================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 204, 0.2);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    transform: scale(1.1);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-section-alt));
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.product-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

.section-cta .btn {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-arrow {
    transition: var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===========================================
   关于我们
   =========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: url('../images/about-visual-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 80, 160, 0.50) 0%, rgba(0, 120, 215, 0.40) 100%),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.10), transparent 45%);
}

.about-visual-content {
    position: relative;
    color: var(--text-inverse);
    text-align: center;
    z-index: 1;
    padding: 40px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.about-visual-content .big-num {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-inverse);
}

.about-visual-content .big-num-sub {
    font-size: 1.05rem;
    opacity: 0.9;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content > p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(33, 150, 243, 0.15));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===========================================
   CTA 区域
   =========================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.cta-section h2 {
    position: relative;
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-inverse);
}

.cta-section p {
    position: relative;
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-group {
    position: relative;
    justify-content: center;
}

.cta-section .btn-light {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 600;
}

.cta-section .btn-outline {
    background: transparent;
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.7);
}

.cta-section .btn-outline:hover {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--bg-card);
}

/* ===========================================
   证书与案例 - 卡片轮播
   =========================================== */

.cert-section {
    background: var(--bg-section);
    position: relative;
}

.cert-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cert-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cert-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.cert-tab.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cert-carousel {
    position: relative;
    padding: 0 60px;
}

.cert-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.cert-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cert-card {
    flex: 0 0 calc((100% - 72px) / 4);
    margin-right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.cert-card:last-child { margin-right: 0; }

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 204, 0.3);
}

.cert-card-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-section);
}

.cert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-card-img img {
    transform: scale(1.05);
}

.cert-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(0, 102, 204, 0.92);
    color: var(--text-inverse);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 100px;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.cert-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.cert-card-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cert-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
}

.cert-carousel-btn:hover {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.cert-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cert-carousel-btn.prev { left: 0; }
.cert-carousel-btn.next { right: 0; }

.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.cert-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* ===========================================
   页脚
   =========================================== */

.footer {
    background: #0a1f3a;
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.footer-brand span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-contact {
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===========================================
   产品页 - 筛选
   =========================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    padding: calc(var(--header-h) + 50px) 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
}

.page-hero h1 {
    position: relative;
    font-size: 2.4rem;
    color: var(--text-inverse);
    margin-bottom: 12px;
    font-weight: 700;
}

.page-hero p {
    position: relative;
    font-size: 1.05rem;
    opacity: 0.92;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-list-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 204, 0.3);
}

.product-list-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-section-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.6rem;
    position: relative;
    overflow: hidden;
}

.product-list-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}

.product-list-card:hover .product-list-img img {
    transform: scale(1.06);
}

.product-list-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 102, 204, 0.04));
}

.product-list-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-list-body h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-list-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.product-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid var(--border-light);
}

.product-list-meta .tag {
    font-size: 0.82rem;
    color: var(--primary);
    background: rgba(0, 102, 204, 0.08);
    padding: 3px 12px;
    border-radius: 100px;
    font-weight: 500;
}

.product-list-meta .arrow {
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.product-list-card:hover .arrow {
    transform: translateX(4px);
}

.product-list-card.hide { display: none; }

/* ===========================================
   联系页
   =========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(0, 102, 204, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(33, 150, 243, 0.15));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.qr-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.qr-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 8px;
    background: var(--bg-section);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.qr-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.qr-card .phone {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ===========================================
   产品详情弹窗
   =========================================== */

/* ===========================================
   产品详情页（独立详情页）
   =========================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.breadcrumb a {
    color: #ffffff;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb em {
    font-style: normal;
    color: #ffffff;
    font-weight: 700;
}

.detail-hero h1 {
    margin-bottom: 6px;
}

.detail-hero p {
    opacity: 0.85;
}

.product-detail-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
}

.product-detail-img {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.product-detail-info .tag {
    display: inline-block;
    margin-bottom: 12px;
}

.product-detail-info h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.4;
}

.product-detail-info > p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* 产品手册区块 */
.manual-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.manual-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.manual-title span {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-left: 6px;
}

.manual-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.manual-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.manual-figure {
    width: 100%;
    max-width: 860px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.manual-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.manual-figure figcaption {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

/* ===========================================
   滚动渐入动画
   =========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   回到顶部
   =========================================== */

.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 50;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

/* ===========================================
   响应式 - 平板 (max-width: 992px)
   =========================================== */

@media (max-width: 992px) {
    :root { --header-h: 64px; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        transform: translateY(-200%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    .products-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .product-list-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .cert-card { flex: 0 0 calc((100% - 24px) / 2); }

    .cert-carousel { padding: 0 50px; }
}

/* ===========================================
   响应式 - 手机 (max-width: 768px)
   =========================================== */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 0;
        background: var(--bg-section);
    }

    .carousel {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 260px;
        max-height: 520px;
    }

    .carousel-slide .banner-img {
        object-fit: contain;
        background: var(--bg-section);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }

    .carousel-dots { bottom: 16px; }

    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.6rem; }

    .page-hero { padding: calc(var(--header-h) + 36px) 0 36px; }
    .page-hero h1 { font-size: 1.8rem; }

    .products-grid { grid-template-columns: 1fr; }
    .product-list-grid { grid-template-columns: 1fr; }

    .cta-section { padding: 56px 0; }
    .cta-section h2 { font-size: 1.6rem; }

    .footer-grid { grid-template-columns: 1fr; }

    .contact-card { padding: 18px 20px; }
    .qr-card { position: static; }
    .qr-image { width: 180px; height: 180px; }

    .cert-card { flex: 0 0 100%; margin-right: 0; }
    .cert-carousel { padding: 0 44px; }
    .cert-carousel-btn { width: 40px; height: 40px; }
    .cert-carousel-btn.prev { left: -4px; }
    .cert-carousel-btn.next { right: -4px; }

    .cert-tabs { gap: 8px; }
    .cert-tab { padding: 8px 18px; font-size: 0.85rem; }

    .product-detail-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
        margin-bottom: 32px;
    }

    .product-detail-img img { max-height: 240px; }

    .manual-section { padding: 28px 16px; }
    .manual-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .logo-text { display: none; }
    .logo-img { height: 38px; }

    .carousel-dots { bottom: 20px; }
    .carousel-dot { width: 10px; height: 10px; }
    .carousel-dot.active { width: 28px; }
}
