/*
 * SWEEIN 松因 - 高端暖菜板品牌官网
 * 自定义样式表
 * 基于 Bootstrap v5.1.3
 */

/* ========== 1. CSS 变量 ========== */
:root {
    /* 主色调 */
    --sweein-orange: #E8772E;
    --sweein-orange-hover: #D0651F;
    --sweein-orange-light: #FDE8D8;

    /* 背景色 */
    --sweein-cream: #FBF7F2;
    --sweein-white: #FFFFFF;

    /* 木纹/深棕色 */
    --sweein-wood: #5C3D2E;
    --sweein-wood-light: #8B6914;

    /* 高级黑色/灰色 */
    --sweein-dark: #1A1A1A;
    --sweein-gray: #6B6B6B;
    --sweein-gray-light: #F0EDE8;

    /* 金色点缀 */
    --sweein-gold: #C8A96E;
    --sweein-gold-light: #F5EDDC;

    /* 文字色 */
    --sweein-text: #333333;
    --sweein-text-light: #777777;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* 字体 */
    --font-cn: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-en: "Georgia", "Times New Roman", serif;

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ========== 2. 通用样式 ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-cn);
    color: var(--sweein-text);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--sweein-white);
}

a {
    color: var(--sweein-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--sweein-orange);
}

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

section {
    padding: 90px 0;
}

.section-cream {
    background-color: var(--sweein-cream);
}

.section-white {
    background-color: var(--sweein-white);
}

.section-dark {
    background-color: var(--sweein-dark);
    color: var(--sweein-white);
}

/* 通用标题样式 */
.section-label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--sweein-orange);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--sweein-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 17px;
    color: var(--sweein-gray);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.section-title.light,
.section-subtitle.light {
    color: var(--sweein-white);
}

/* 按钮样式 */
.btn-sweein {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-sweein-primary {
    background: linear-gradient(135deg, var(--sweein-orange), #F5883E);
    color: #fff;
    box-shadow: 0 4px 15px rgba(232, 119, 46, 0.35);
}

.btn-sweein-primary:hover {
    background: linear-gradient(135deg, var(--sweein-orange-hover), #E06E25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 119, 46, 0.45);
}

.btn-sweein-outline {
    background: transparent;
    color: var(--sweein-dark);
    border: 2px solid var(--sweein-dark);
}

.btn-sweein-outline:hover {
    background: var(--sweein-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sweein-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-sweein-outline-light:hover {
    background: #fff;
    color: var(--sweein-dark);
    transform: translateY(-2px);
}

/* 文字强调 */
.text-orange {
    color: var(--sweein-orange);
}

.text-gold {
    color: var(--sweein-gold);
}

/* 分隔线 */
.divider {
    width: 50px;
    height: 3px;
    background: var(--sweein-orange);
    margin: 0 auto 30px;
}

/* 滚动进入动画 */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 3. 导航栏 ========== */
/* sticky 必须加在 header 上，不能加在 header 内的 nav 上 */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar {
    padding: 14px 0;
    background: var(--sweein-white);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    border-bottom: 1px solid var(--sweein-gray-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 42px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 34px;
}

.navbar .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--sweein-text);
    padding: 8px 18px !important;
    position: relative;
    transition: var(--transition);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--sweein-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--sweein-orange);
}

.navbar .btn-nav-cta {
    padding: 10px 24px;
    font-size: 13px;
    background: var(--sweein-orange);
    color: #fff;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    font-weight: 600;
}

.navbar .btn-nav-cta:hover {
    background: var(--sweein-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 119, 46, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* 移动端导航 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--sweein-white);
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 12px;
    }

    .navbar .nav-link {
        padding: 12px 18px !important;
        border-bottom: 1px solid var(--sweein-gray-light);
    }

    .navbar .btn-nav-cta {
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }
}

/* ========== 4. 首页 Banner ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 静态图片背景版本 */
.hero-section:not(.hero-video) {
    background: linear-gradient(135deg,
            rgba(28, 22, 16, 0.88) 0%,
            rgba(44, 30, 18, 0.78) 40%,
            rgba(60, 36, 20, 0.72) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    color: #fff;
}

/* 视频背景版本 */
.hero-video {
    color: #fff;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(28, 22, 16, 0.82) 0%,
            rgba(44, 30, 18, 0.70) 40%,
            rgba(60, 36, 20, 0.64) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(232, 119, 46, 0.2);
    border: 1px solid rgba(232, 119, 46, 0.4);
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--sweein-gold-light);
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-section h1 span {
    color: var(--sweein-orange);
}

.hero-section .hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    line-height: 1.5;
}

.hero-section .hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-section .hero-buttons .btn {
    margin-right: 16px;
    margin-bottom: 12px;
}

/* ========== 5. 品牌理念模块 ========== */
.philosophy-section {
    padding: 100px 0;
}

.philosophy-section .philosophy-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.philosophy-section .philosophy-image img {
    width: 90%;
    border-radius: var(--radius-lg);
}

.philosophy-section .philosophy-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--sweein-gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.philosophy-section .philosophy-content {
    padding-left: 40px;
}

/* ========== 6. 核心卖点模块 ========== */
.feature-card {
    background: var(--sweein-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--sweein-gray-light);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sweein-orange-light);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--sweein-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--sweein-orange);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sweein-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--sweein-gray);
    margin-bottom: 0;
}

/* ========== 7. 产品系列模块 ========== */
.product-card {
    background: var(--sweein-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--sweein-gray-light);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-card .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--sweein-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.product-card .product-info {
    padding: 30px 24px;
}

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sweein-dark);
}

.product-card .product-features {
    list-style: none;
    padding: 0;
    margin: 14px 0;
}

.product-card .product-features li {
    font-size: 13px;
    color: var(--sweein-gray);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.product-card .product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--sweein-gold);
    border-radius: 50%;
}

.product-card .btn-outline-sweein {
    border: 1px solid var(--sweein-orange);
    color: var(--sweein-orange);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.product-card .btn-outline-sweein:hover {
    background: var(--sweein-orange);
    color: #fff;
}

/* ========== 8. 尺寸选择模块 ========== */
.size-section {
    background: var(--sweein-dark);
    color: #fff;
    padding: 90px 0;
}

.size-card {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    height: 100%;
}

.size-card:hover {
    background: rgba(232, 119, 46, 0.15);
    border-color: var(--sweein-orange);
    transform: translateY(-4px);
}

.size-card .size-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--sweein-orange);
    margin-bottom: 6px;
}

.size-card .size-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 浅色背景下的 size-card */
.section-white .size-card {
    background: var(--sweein-cream);
    border-color: rgba(0, 0, 0, 0.08);
}
.section-white .size-card .size-num {
    color: var(--sweein-orange);
}
.section-white .size-card .size-desc {
    color: var(--sweein-gray);
}
.section-white .size-card:hover {
    background: #fff;
    border-color: var(--sweein-orange);
}

/* ========== 9. 视差区域 ========== */
.parallax-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/parallax-bg.jpg') center/cover no-repeat fixed;
    color: #fff;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 22, 16, 0.75);
}

.parallax-section .parallax-content {
    position: relative;
    z-index: 1;
}

.parallax-section .parallax-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 18px;
}

.parallax-section .parallax-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== 10. 技术细节模块 ========== */
.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--sweein-white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.tech-item:hover {
    border-color: var(--sweein-orange-light);
    box-shadow: var(--shadow-sm);
}

.tech-item .tech-icon {
    font-size: 24px;
    color: var(--sweein-orange);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--sweein-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sweein-dark);
    margin-bottom: 4px;
}

.tech-item p {
    font-size: 13px;
    color: var(--sweein-gray);
    margin-bottom: 0;
}

/* ========== 11. 用户口碑模块 ========== */
.testimonial-card {
    background: var(--sweein-white);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--sweein-gray-light);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--sweein-gold);
    font-size: 16px;
    margin-bottom: 14px;
}

.testimonial-card .testimonial-text {
    font-size: 14px;
    color: var(--sweein-gray);
    line-height: 1.8;
    margin-bottom: 0;
    font-style: italic;
}

.stats-bar {
    background: var(--sweein-orange);
    padding: 50px 0;
    color: #fff;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.stat-item .stat-label {
    font-size: 14px;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
}

/* ========== 12. 门店体验模块 ========== */
.store-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.store-feature .store-icon {
    font-size: 20px;
    color: var(--sweein-orange);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--sweein-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-feature h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.store-feature p {
    font-size: 13px;
    color: var(--sweein-gray);
    margin-bottom: 0;
}

/* ========== 13. 售后服务模块 ========== */
.service-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--sweein-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--sweein-gray-light);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--sweein-orange-light);
}

.service-card .service-icon {
    font-size: 32px;
    color: var(--sweein-orange);
    margin-bottom: 14px;
    display: block;
}

.service-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sweein-dark);
    margin-bottom: 6px;
}

.service-card p {
    font-size: 13px;
    color: var(--sweein-gray);
    margin-bottom: 0;
}

/* ========== 14. 底部CTA模块 ========== */
.cta-section {
    background: linear-gradient(135deg, var(--sweein-dark) 0%, #2C1E12 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-section .btn {
    margin: 0 10px 12px;
}

/* ========== 15. Footer ========== */
.site-footer {
    background: #0D0D0D;
    color: rgba(255, 255, 255, 0.65);
    padding: 70px 0 0;
    font-size: 14px;
}

.site-footer h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--sweein-orange);
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    padding: 5px 0;
}

.site-footer .footer-links li a {
    font-size: 13px;
}

.site-footer .footer-brand {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.site-footer .footer-qr {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin-right: 12px;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== 16. 内页 Banner ========== */
.inner-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(28, 22, 16, 0.88) 0%,
            rgba(44, 30, 18, 0.78) 100%),
        url('../images/banner_inner.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.inner-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.inner-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 17. 面包屑 ========== */
.breadcrumb-wrap {
    background: var(--sweein-cream);
    padding: 14px 0;
    border-bottom: 1px solid var(--sweein-gray-light);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 13px;
    color: var(--sweein-gray);
}

.breadcrumb a {
    color: var(--sweein-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--sweein-orange);
}

/* ========== 18. 分类导航 ========== */
.category-nav-wrap {
    background: var(--sweein-cream);
    padding: 24px 0;
}

.category-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-list li {
    margin: 0;
}

.category-nav-list li a {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sweein-text);
    text-decoration: none;
    border-radius: 50px;
    background: var(--sweein-white);
    border: 1px solid var(--sweein-gray-light);
    transition: var(--transition);
}

.category-nav-list li a:hover {
    color: var(--sweein-orange);
    background: var(--sweein-orange-light);
    border-color: var(--sweein-orange-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 119, 46, 0.12);
}

.category-nav-list li.active a {
    color: #fff;
    background: linear-gradient(135deg, var(--sweein-orange), #F5883E);
    border-color: var(--sweein-orange);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232, 119, 46, 0.3);
}

@media (max-width: 767.98px) {
    .category-nav-wrap {
        padding: 16px 0;
    }
    .category-nav-list li a {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ========== 19. 列表页 ========== */
.list-card {
    background: var(--sweein-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--sweein-gray-light);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.list-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.list-card .list-card-img {
    height: 220px;
    overflow: hidden;
}

.list-card .list-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-card:hover .list-card-img img {
    transform: scale(1.05);
}

.list-card .list-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.list-card h3 a {
    color: var(--sweein-dark);
}

.list-card h3 a:hover {
    color: var(--sweein-orange);
}

.list-card .list-card-date {
    font-size: 12px;
    color: var(--sweein-gray);
    margin-bottom: 10px;
}

.list-card .list-card-desc {
    font-size: 14px;
    color: var(--sweein-gray);
    line-height: 1.7;
    flex: 1;
}

.list-card .list-card-link {
    margin-top: 14px;
    font-size: 13px;
    color: var(--sweein-orange);
    font-weight: 600;
}

.list-card .list-card-link:hover {
    color: var(--sweein-orange-hover);
}

/* 分页 */
.pagination-wrap {
    margin-top: 20px;
    text-align: center;
}

.pagination-wrap a {
    display: inline-block;
    color: var(--sweein-text);
    padding: 8px 14px;
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid var(--sweein-gray-light);
    transition: var(--transition);
    font-size: 14px;
    text-decoration: none;
}

.pagination-wrap a:hover {
    background: var(--sweein-orange-light);
    color: var(--sweein-orange);
    border-color: var(--sweein-orange-light);
}

.pagination-wrap a.active {
    background: var(--sweein-orange);
    border-color: var(--sweein-orange);
    color: #fff;
}

/* ========== 19. 内容详情页 ========== */
.content-wrapper {
    background: var(--sweein-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.content-wrapper .content-header {
    border-bottom: 1px solid var(--sweein-gray-light);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.content-wrapper .content-tags {
    margin-top: 14px;
}

.content-wrapper .content-tags span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--sweein-cream);
    border-radius: 50px;
    font-size: 12px;
    color: var(--sweein-gray);
    margin-right: 6px;
}

/* 上一篇下一篇 */
.content-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--sweein-gray-light);
    margin-top: 40px;
    font-size: 14px;
}

.content-nav a {
    color: var(--sweein-gray);
}

.content-nav a:hover {
    color: var(--sweein-orange);
}

/* 相关推荐 */
.related-section {
    margin-top: 50px;
}

.related-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ========== 20. 产品详情页 ========== */
.product-detail-gallery {
    border-radius: var(--radius-md);
}

/* 主图区域 - 悬浮放大 */
.gallery-main {
    position: relative;
    width: 60%;
    padding-top: 60%;
    border-radius: var(--radius-md);
    background: #f5f5f5;
    cursor: crosshair;
}

.gallery-main>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* 放大镜镜片 */
.magnifier-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 14px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.12);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.gallery-main:hover .magnifier-lens {
    opacity: 1;
}

/* 放大镜右侧缩放结果 */
.magnifier-zoom {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 320px;
    padding-top: 320px;
    transform: translateY(-50%);
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--sweein-gray-light);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.magnifier-zoom img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.gallery-main:hover .magnifier-zoom {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .magnifier-lens,
    .magnifier-zoom {
        display: none;
    }
    .gallery-main {
        cursor: default;
    }
}

/* 缩略图导航 */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--sweein-orange);
}

.product-detail-info {
    padding-left: 20px;
}

.product-detail-info .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--sweein-orange);
    margin: 14px 0;
}

.product-detail-info .product-params {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-detail-info .product-params li {
    padding: 8px 0;
    border-bottom: 1px solid var(--sweein-gray-light);
    font-size: 14px;
}

.product-detail-info .product-params li span:first-child {
    color: var(--sweein-gray);
    width: 90px;
    display: inline-block;
}

.product-detail-tabs {
    margin-top: 50px;
}

.product-detail-tabs .nav-tabs {
    border-bottom: 2px solid var(--sweein-gray-light);
}

.product-detail-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--sweein-gray);
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
}

.product-detail-tabs .nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sweein-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-detail-tabs .nav-tabs .nav-link:hover::after,
.product-detail-tabs .nav-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.product-detail-tabs .nav-tabs .nav-link.active {
    color: var(--sweein-orange);
}

.product-detail-tabs .tab-content {
    padding: 30px 0;
}

/* ========== 21. 关于我们页 ========== */
.about-section {
    background: var(--sweein-cream);
}

.about-section .about-values .value-item {
    text-align: center;
    padding: 30px;
}

.about-section .about-values .value-item .value-icon {
    width: 64px;
    height: 64px;
    background: var(--sweein-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--sweein-orange);
    margin: 0 auto 16px;
}

.about-section .about-values .value-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-section .about-values .value-item p {
    font-size: 13px;
    color: var(--sweein-gray);
}

/* ========== 22. 联系我们页 ========== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-item .contact-icon {
    width: 48px;
    height: 48px;
    background: var(--sweein-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sweein-orange);
    flex-shrink: 0;
}

.contact-form {
    background: var(--sweein-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sweein-text);
}

.contact-form .form-control {
    border: 1px solid var(--sweein-gray-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--sweein-orange);
    box-shadow: 0 0 0 3px rgba(232, 119, 46, 0.1);
}

.contact-form textarea.form-control {
    min-height: 120px;
}

/* ========== 23. 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--sweein-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 119, 46, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--sweein-orange-hover);
    transform: translateY(-3px);
}

/* ========== 24. 响应式适配 ========== */

/* 大屏幕: >=1200px */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 60px;
    }
}

/* 中等屏幕: <1200px */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 44px;
    }

    .section-title {
        font-size: 32px;
    }

    .philosophy-section .philosophy-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-detail-info {
        padding-left: 0;
        margin-top: 30px;
    }
}

/* 平板: <992px */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .parallax-section {
        min-height: 400px;
        background-attachment: scroll !important;
    }

    .parallax-section .parallax-content h2 {
        font-size: 28px;
    }

    .inner-hero {
        min-height: 280px;
    }

    .inner-hero h1 {
        font-size: 32px;
    }

    .content-wrapper {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .philosophy-section .philosophy-image::after {
        display: none;
    }
}

/* 手机横屏: <768px */
@media (max-width: 767.98px) {
    section {
        padding: 48px 0;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-section h1 {
        font-size: 30px;
    }

    .hero-section .hero-subtitle {
        font-size: 16px;
    }

    .hero-section .hero-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .parallax-section {
        min-height: 320px;
        background-attachment: scroll !important;
    }

    .parallax-section .parallax-content h2 {
        font-size: 24px;
    }

    .parallax-section .parallax-content p {
        font-size: 14px;
    }

    .inner-hero {
        min-height: 220px;
    }

    .inner-hero h1 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .stats-bar .stat-item {
        margin-bottom: 20px;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer h5 {
        margin-top: 24px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* 小手机: <576px */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn-sweein {
        padding: 12px 28px;
        font-size: 14px;
    }

    .hero-section .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .product-card .product-img-wrap {
        height: 220px;
    }

    .content-wrapper {
        padding: 16px;
    }

    .contact-form {
        padding: 16px;
    }

    .content-nav {
        flex-direction: column;
        gap: 8px;
    }
}
