/* ========================================
   广州市佳宏化工有限公司 - 网站样式表
   ======================================== */

/* CSS变量定义 */
:root {
    /* 主色调 - 蓝色系 */
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #4299e1;
    --accent-hover: #3182ce;

    /* 背景色 */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-gray-light: #f1f5f9;

    /* 文字颜色 */
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;

    /* 字体设置 */
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

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

    /* 间距 */
    --header-height: 64px;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

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

/* ========================================
   页面加载指示器
   ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    text-align: center;
    color: var(--bg-white);
}

.loader-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    border-radius: 50%;
    animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loader-spinner p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   头部导航样式
   ======================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 56px;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 16px;
}

.company-name {
    font-family: var(--font-family-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* 头部联系方式 */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact .contact-item i {
    font-size: 16px;
    color: var(--primary-color);
}

.header-contact .contact-info {
    display: flex;
    flex-direction: column;
}

.header-contact .contact-label {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.2;
}

.header-contact .contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.header-contact .contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: var(--bg-white);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.header-contact .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #c53030, #a32020);
}

/* 桌面导航 */
.nav-desktop {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 移动端导航 */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
}

.nav-mobile.active {
    max-height: 500px;
    border-top: 1px solid var(--bg-gray);
}

.nav-menu-mobile {
    padding: 12px 0;
}

.nav-menu-mobile li {
    margin: 0;
}

.nav-link-mobile {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    padding: 14px 24px;
    border-bottom: 1px solid var(--bg-gray-light);
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.nav-menu-mobile li:last-child .nav-link-mobile {
    border-bottom: none;
}

.nav-link-mobile:active {
    background-color: var(--bg-gray-light);
}

/* 移动端电话按钮 - 醒目样式 */
.nav-phone-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white) !important;
    font-weight: 600;
    justify-content: center;
    margin: 12px 24px;
    border-radius: 8px;
    border-bottom: none !important;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.nav-phone-btn:active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: scale(0.98);
}

.nav-phone-btn i {
    margin-right: 10px;
}

/* ========================================
   首屏横幅样式
   ======================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(66, 153, 225, 0.75) 100%),
                url('../images/products/products/banner1.webp') center center / cover no-repeat;
    margin-top: 0;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.3) 0%, rgba(26, 54, 93, 0.5) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--bg-white);
    padding: 40px 24px;
    max-width: 1000px;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-slogan {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.slogan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
}

.slogan-item i {
    color: #68d391;
}

.hero-products {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-products h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.product-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.product-tag:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.03em;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-btn {
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    min-height: 52px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    letter-spacing: 0.03em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* ========================================
   我们的优势样式
   ======================================== */
.advantages {
    background-color: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background-color: var(--bg-white);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.advantage-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: var(--bg-white);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.08);
}

.advantage-title {
    font-family: var(--font-family-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.advantage-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ========================================
   产品展示样式
   ======================================== */
.products {
    background-color: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-gray);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-image {
    height: 170px;
    overflow: hidden;
    background-color: var(--bg-gray-light);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 12px;
}

.product-item:hover .product-image img {
    transform: scale(1.06);
}

/* 产品图片占位符 */
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
    color: var(--text-light);
}

.product-image-placeholder i {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.product-image-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

.product-name {
    font-family: var(--font-family-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 14px 14px 6px;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    padding: 0 14px 10px;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.5;
    flex: 1;
}

/* 产品底部价格和询价按钮 */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 14px;
    gap: 10px;
}

.product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-inquire {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    min-height: 32px;
    line-height: 1.2;
}

.product-inquire:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #c53030, #a32020);
}

/* 产品卡片动画 */
.product-item {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   关于我们样式
   ======================================== */
.about {
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 16px;
    text-indent: 2em;
    letter-spacing: 0.02em;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--accent-color);
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.image-placeholder span {
    font-size: 15px;
}

/* ========================================
   公司资质样式
   ======================================== */
.qualification {
    background-color: var(--bg-light);
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qualification-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.qualification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.qualification-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-gray);
}

.qualification-name {
    display: block;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-white);
}

.qualification-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
    color: var(--text-light);
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
}

.qualification-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.qualification-placeholder span {
    font-size: 14px;
}

/* ========================================
   仓储实力板块
   ======================================== */
.warehouse {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.warehouse-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.warehouse-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.warehouse-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.warehouse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.warehouse-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--bg-white);
}

.warehouse-placeholder i {
    font-size: 48px;
}

.warehouse-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.warehouse-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 20px 10px;
    margin: 0;
}

.warehouse-desc {
    font-size: 14px;
    color: var(--text-light);
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   FAQ板块
   ======================================== */
.faq {
    padding: 60px 0;
    background: var(--bg-white);
}

.faq-content {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--bg-gray);
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: var(--bg-white);
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.faq-question:hover {
    background: var(--bg-gray-light);
}

.faq-question h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    letter-spacing: 0.01em;
    line-height: 1.5;
    padding-right: 16px;
}

.faq-icon {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    background: var(--bg-gray-light);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
    padding-top: 14px;
    letter-spacing: 0.01em;
}

/* ========================================
   联系我们样式
   ======================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bg-white);
}

.contact-detail h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-detail p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-map {
    display: flex;
    justify-content: center;
}

.map-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--accent-color);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.map-placeholder span {
    font-size: 16px;
    margin-bottom: 8px;
}

.map-placeholder p {
    font-size: 13px;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 56px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-white);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.8;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--bg-white);
    letter-spacing: 0.02em;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.9;
    line-height: 1.7;
}

.footer-contact i {
    width: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ========================================
   返回顶部按钮 & 固定悬浮电话
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 固定悬浮联系电话按钮 */
.fixed-phone {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 999;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fixed-phone-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: var(--bg-white);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
    transition: var(--transition);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    min-height: 48px;
}

.fixed-phone-inner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.5);
    color: var(--bg-white);
}

.fixed-phone-inner i {
    font-size: 16px;
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========================================
   平板设备 (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .qualification-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .warehouse-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-info {
        grid-column: 1 / -1;
    }

    .header-contact {
        gap: 12px;
    }

    .header-contact .contact-item {
        display: none;
    }

    .nav-menu {
        gap: 20px;
    }
}

/* ========================================
   移动设备 (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
    /* 容器和全局 */
    .container {
        padding: 0 16px;
    }

    body {
        font-size: 15px;
        line-height: 1.65;
    }

    /* 头部导航 */
    :root {
        --header-height: 56px;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-mobile {
        display: block;
    }

    /* 移动端隐藏右侧联系方式 */
    .header-contact {
        display: none;
    }

    /* Logo和公司名称 */
    .logo-img {
        height: 28px;
    }

    .company-name {
        font-size: 13px;
    }

    /* 首屏横幅 */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .hero-slogan {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .slogan-item {
        font-size: 15px;
    }

    .hero-products {
        padding: 20px 16px;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .hero-products h2 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .product-tags {
        gap: 8px;
    }

    .product-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-btn {
        padding: 12px 32px;
        font-size: 15px;
        min-height: 48px;
    }

    /* 通用区块 */
    .section {
        padding: 48px 0;
    }

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

    .section-title::after {
        width: 48px;
        margin: 12px auto 0;
    }

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

    .section-header {
        margin-bottom: 36px;
    }

    /* 我们的优势 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 24px 20px;
    }

    .advantage-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .advantage-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .advantage-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* 产品展示 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 130px;
    }

    .product-image img {
        padding: 10px;
    }

    .product-name {
        font-size: 14px;
        padding: 12px 10px 6px;
        line-height: 1.35;
        min-height: auto;
    }

    .product-desc {
        font-size: 12px;
        padding: 0 10px 10px;
        line-height: 1.5;
    }

    .product-footer {
        padding: 8px 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .product-price {
        font-size: 12px;
        text-align: left;
    }

    .product-inquire {
        font-size: 12px;
        padding: 8px 12px;
        width: 100%;
        min-height: 36px;
    }

    /* 关于我们 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        order: -1;
    }

    .about-img {
        max-width: 100%;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 12px;
    }

    /* 公司资质 */
    .qualification-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .qualification-img {
        height: 220px;
    }

    .qualification-name {
        padding: 14px;
        font-size: 14px;
    }

    /* 仓储 */
    .warehouse {
        padding: 48px 0;
    }

    .warehouse-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .warehouse-image {
        height: 160px;
    }

    .warehouse-title {
        font-size: 16px;
        padding: 16px 16px 8px;
    }

    .warehouse-desc {
        font-size: 13px;
        padding: 0 16px 16px;
        line-height: 1.6;
    }

    /* FAQ */
    .faq {
        padding: 48px 0;
    }

    .faq-content {
        margin-top: 28px;
    }

    .faq-item {
        margin-bottom: 10px;
    }

    .faq-question {
        padding: 14px 18px;
        min-height: 56px;
    }

    .faq-question h3 {
        font-size: 14px;
        line-height: 1.5;
        padding-right: 12px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 18px;
    }

    .faq-answer p {
        font-size: 13px;
        padding-top: 12px;
        line-height: 1.7;
    }

    /* 联系我们 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-info {
        gap: 14px;
    }

    .contact-item {
        padding: 16px;
        gap: 14px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .contact-detail h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .contact-detail p {
        font-size: 14px;
    }

    .map-img {
        max-width: 100%;
    }

    /* 页脚 */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-logo {
        margin-bottom: 12px;
    }

    .footer-logo span {
        font-size: 16px;
    }

    .footer-logo img {
        height: 28px;
    }

    .footer-desc {
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-contact h4,
    .footer-links h4 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .footer-contact p,
    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* 返回顶部 & 悬浮电话 */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
        font-size: 14px;
    }

    .fixed-phone {
        right: 16px;
        bottom: 68px;
    }

    .fixed-phone-inner {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }

    .fixed-phone-inner i {
        font-size: 14px;
    }
}

/* ========================================
   小屏幕手机 (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    /* 产品网格更小更紧凑 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 110px;
    }

    .product-image img {
        padding: 8px;
    }

    .product-item {
        border-radius: 8px;
    }

    .product-name {
        font-size: 13px;
        padding: 10px 8px 5px;
        line-height: 1.3;
    }

    .product-desc {
        font-size: 11px;
        padding: 0 8px 8px;
    }

    .product-footer {
        padding: 6px 8px 10px;
        gap: 6px;
    }

    .product-price {
        font-size: 11px;
    }

    .product-inquire {
        font-size: 11px;
        padding: 7px 10px;
        min-height: 32px;
        border-radius: 4px;
    }

    /* Hero */
    .hero {
        padding: 48px 0;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-content {
        padding: 16px 12px;
    }

    .hero-slogan {
        gap: 10px;
        margin-bottom: 24px;
    }

    .slogan-item {
        font-size: 14px;
    }

    .hero-products {
        padding: 16px 12px;
        margin-bottom: 24px;
    }

    .hero-products h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .product-tags {
        gap: 6px;
    }

    .product-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hero-btn {
        padding: 10px 28px;
        font-size: 14px;
        min-height: 44px;
    }

    /* 区块 */
    .section {
        padding: 40px 0;
    }

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

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

    .section-header {
        margin-bottom: 28px;
    }

    /* 公司名称更紧凑 */
    .company-name {
        font-size: 12px;
    }

    .logo-img {
        height: 26px;
    }

    /* 资质图片更矮 */
    .qualification-img {
        height: 180px;
    }

    /* 仓储图片 */
    .warehouse-image {
        height: 140px;
    }

    /* FAQ */
    .faq-question {
        padding: 12px 14px;
    }

    .faq-question h3 {
        font-size: 13px;
        padding-right: 10px;
    }

    /* 悬浮按钮更紧凑 */
    .fixed-phone-inner {
        padding: 8px 14px;
        gap: 6px;
        font-size: 12px;
        min-height: 40px;
    }

    .fixed-phone {
        bottom: 60px;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 12px;
        right: 12px;
    }
}

/* ========================================
   触摸设备优化
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    a:hover,
    button:hover,
    .product-item:hover,
    .advantage-card:hover,
    .qualification-item:hover,
    .warehouse-item:hover,
    .contact-item:hover,
    .fixed-phone-inner:hover,
    .back-to-top:hover,
    .product-tag:hover,
    .product-inquire:hover,
    .header-contact .contact-btn:hover {
        transform: none;
        box-shadow: none;
    }

    a:active,
    button:active {
        opacity: 0.7;
    }

    .product-item:active,
    .advantage-card:active,
    .qualification-item:active {
        background-color: var(--bg-gray-light);
    }

    .product-inquire:active,
    .header-contact .contact-btn:active,
    .fixed-phone-inner:active {
        opacity: 0.9;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .header,
    .back-to-top,
    .hero-btn,
    .fixed-phone,
    .mobile-menu-btn,
    .page-loader {
        display: none;
    }

    .hero {
        background: var(--primary-color);
        color: var(--bg-white);
        min-height: auto;
        padding: 40px 20px;
    }

    .section {
        padding: 24px 0;
    }

    .products-grid,
    .advantages-grid,
    .qualification-grid,
    .warehouse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
