/* ===== common.css - 全局样式 ===== */
:root {
    --primary: rgb(215, 23, 24);
    --primary-dark: #a31213;
    --primary-light: rgba(215, 23, 24, 0.1);
    --text: #222;
    --text-light: #444;
    --text-lighter: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --border: #e5e5e5;
    --border-dark: #ccc;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --font: 'Times New Roman', Times, serif;
    --transition: all 0.3s ease;
    --header-z: 100;
    --dropdown-z: 99;
    --container-max: 1600px;

    --youtube: #FF0000;
    --tiktok: #000000;
    --wechat: #07C160;
    --whatsapp: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--bg); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb-wrapper {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-lighter);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child span {
    color: var(--text);
    font-weight: 500;
}

/* ===== 头部样式 ===== */
.site-header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: var(--header-z);
}

.header-top-wrapper {
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.header-top {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-main-wrapper {
    width: 100%;
}

.header-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.slogan {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.2;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
}

.search-box form {
    display: flex;
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg);
    transition: var(--transition);
    align-items: center;
    height: 32px;
}

.search-box form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input {
    border: none;
    padding: 0 12px;
    width: 200px;
    font-family: inherit;
    outline: none;
    background: transparent;
    height: 100%;
    line-height: normal;
    color: var(--text);
    font-size: 0.85rem;
}

.search-box input::placeholder {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

.search-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    height: 100%;
}

.logo img {
    width: auto;
    height: auto;
    max-width: 230px;
    max-height: 60px;
    display: block;
    object-fit: contain;
}

/* 桌面导航 */
.main-nav {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 55px;
    margin: 0;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
    line-height: 1;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.has-dropdown {
    position: relative;
}

.dropdown-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(-225deg) translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: var(--dropdown-z);
    padding: 8px 0;
    margin-top: 15px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg);
    border-left: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-dark);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    text-align: left;
}

.dropdown-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 社交图标 */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    height: 60px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    border-radius: 50%;
    background: var(--text-light);
}

.social-icon.youtube { background: var(--youtube); }
.social-icon.tiktok { background: var(--tiktok); }
.social-icon.wechat { background: var(--wechat); }
.social-icon.whatsapp { background: var(--whatsapp); }

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 微信弹窗 */
.wechat-popup {
    position: absolute;
    background: var(--bg);
    border: 1px solid var(--border-dark);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.wechat-popup img {
    width: 160px;
    height: 160px;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端图标 */
.mobile-icons {
    display: none;
    align-items: center;
    gap: 15px;
    height: 44px;
}

.mobile-search-toggle,
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 22px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

/* ===== 移动端搜索弹窗 ===== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    z-index: calc(var(--header-z) + 30);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.active {
    display: block;
    transform: translateY(0);
}

.mobile-search-container {
    position: relative;
    padding: 20px;
}

.mobile-search-container .mobile-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.mobile-search-container .mobile-search-close:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg);
}

.mobile-search-container .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.mobile-search-container .mobile-search-form input {
    flex: 1;
    height: 46px;
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    background: var(--bg-light);
    color: var(--text);
}

.mobile-search-container .mobile-search-form button {
    width: 46px;
    height: 46px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

/* ===== 移动端滑出菜单 ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--header-z) + 10);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: calc(var(--header-z) + 20);
    transition: left 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-nav-header .logo img {
    max-width: 160px;
    max-height: 55px;
}

.mobile-nav-header .mobile-nav-close {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-header .mobile-nav-close:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-nav-menu {
    padding: 0;
    list-style: none;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    background: #ffffff;
    width: 100%;
    border: none;
    text-align: left;
}

.mobile-nav-link:hover {
    background: #f5f5f5;
}

.mobile-dropdown-icon {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.mobile-nav-item.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */

.mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 40px;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #f5f5f5;
    border-bottom: none;
}

.mobile-dropdown-link:hover {
    background: #e8e8e8;
    color: var(--primary);
}

.mobile-dropdown-link:last-child {
    border-bottom: none;
}

.mobile-dropdown-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ===== 响应式设计 ===== */
@media (min-width: 769px) {
    .mobile-icons,
    .mobile-search-overlay,
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-top-wrapper,
    .main-nav,
    .social-icons {
        display: none;
    }

    .mobile-icons {
        display: flex;
    }

    .header-main {
        padding: 8px 15px;
        height: 60px;
        gap: 10px;
    }

    .logo {
        height: 50px;
    }

    .logo img {
        max-width: 160px;
        max-height: 48px;
    }

    .mobile-nav-drawer {
        display: block;
    }
}

/* ===== 底部样式 ===== */
.site-footer {
    background: #f5f5f5;
    color: var(--text-light);
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 50px 20px 20px;
    width: 100%;
}

/* 底部主内容区 - 调整各模块宽度比例，使间距更均匀 */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

/* 公司信息区域 - 调整宽度，减小与后面模块的间距感 */
.company-info {
    max-width: 280px;
}

.company-info .footer-logo img {
    max-width: 160px;
    margin-bottom: 20px;
}

.company-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #ddd;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
}

.footer-social-icon:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* 统一模块标题样式 - PC端有下划线 */
.footer-title {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--border-dark);
}

/* 链接列表样式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* 联系方式 - 优化样式 */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-light);
    min-height: 32px;
}

.contact-info i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-info span,
.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
}

.contact-info a:hover {
    color: var(--primary);
}

/* 热门标签 - 添加底部间距 */
.footer-tags {
    width: 100%;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #e9e9e9;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(215, 23, 24, 0.2);
}

.footer-bottom {
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-lighter);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ===== 移动端底部折叠 ===== */
@media (max-width: 768px) {
    .footer-container {
        padding: 20px 20px 20px;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-collapsible {
        border-bottom: 1px solid var(--border-dark);
    }

    .footer-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        cursor: pointer;
    }

    .footer-title-wrapper .footer-title {
        margin: 0;
        font-size: 1rem;
        padding-bottom: 0;  /* 移动端去掉 padding-bottom */
    }

    .footer-title-wrapper .footer-title::after {
        display: none;  /* 移动端去掉下划线 */
    }

    .collapse-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        color: var(--text-lighter);
        transition: transform 0.3s ease;
    }

    .mobile-collapsible.active .collapse-icon i {
        transform: rotate(180deg);
    }

    .collapse-content {
        display: none;
        padding-bottom: 16px;
    }

    .mobile-collapsible.active .collapse-content {
        display: block;
    }

    .company-info {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-dark);
        max-width: 100%;
    }

    .company-info .company-desc {
        max-width: 100%;
    }

    .company-info .footer-logo img {
        width: 180px;        /* 固定宽度 180px */
        height: auto;        /* 高度自适应 */
        margin-bottom: 20px;
        display: block;
    }

    .tags-cloud {
        gap: 6px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .tag-item {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .contact-info li {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 0.8rem;
        min-height: 28px;
    }

    .contact-info i {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    /* 底部版权区域 - 移动端去掉顶部间距和边框 */
    .footer-bottom {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }
}

@media (min-width: 769px) {
    .collapse-icon {
        display: none !important;
    }

    .collapse-content {
        display: block !important;
    }

    .footer-title-wrapper {
        display: block;
        padding: 0;
        cursor: default;
    }
}

/* 响应式调整 - 底部网格布局 */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }

    .footer-tags {
        grid-column: span 4;
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-tags {
        grid-column: span 2;
    }
}

/* ===== 浮动按钮组 ===== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(215, 23, 24, 0.4);
}

.float-btn.whatsapp-btn {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.float-btn.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.4);
}

.float-btn.inquiry-btn {
    background: var(--primary);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== 询盘表单弹窗 ===== */
.inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inquiry-modal.show {
    display: flex;
    opacity: 1;
}

.inquiry-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.inquiry-modal.show .inquiry-modal-content {
    transform: translateY(0);
}

.inquiry-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
}

.inquiry-modal-header h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin: 0;
}

.inquiry-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    line-height: 1;
    padding: 0 5px;
}

.inquiry-modal-close:hover {
    color: var(--primary);
}

.inquiry-modal-body {
    padding: 25px;
}

/* 表单样式优化 - 修复双重标签问题 */
.unit-form__item {
    margin-bottom: 20px;
}

.unit-form__item-inner {
    display: block;
    position: relative;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.required-star {
    color: var(--primary);
    margin-left: 2px;
    font-size: 1.1rem;
    line-height: 1;
}

.unit-form__control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
}

.unit-form__control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.unit-form__control::placeholder {
    color: #aaa;
    font-size: 0.9rem;
    opacity: 0.8;
}

.unit-form__control.error {
    border-color: #dc3545;
}

textarea.unit-form__control {
    resize: vertical;
    min-height: 100px;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.unit-form__control.error + .invalid-feedback {
    display: block;
}

.unit-form__item-submit {
    margin-top: 25px;
}

.base-button__inner.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.base-button__inner.btn i {
    font-size: 1.1rem;
}

.base-button__inner.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
}

.base-button__inner.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 提示消息 ===== */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    min-width: 280px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-content {
    padding: 15px 20px;
    color: var(--text);
    font-size: 0.95rem;
    position: relative;
}

.toast-content.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.toast-content.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .float-buttons {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }

    .company-info .footer-logo img {
        width: 140px;    /* 移动端缩小到 140px */
    }

    .float-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .inquiry-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .inquiry-modal-header {
        padding: 15px 20px;
    }

    .inquiry-modal-body {
        padding: 20px;
    }
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

/* 上一页/下一页按钮 - 修复宽度和hover效果 */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn i {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn:hover:not(:disabled) i {
    color: white;
}

.page-btn.disabled,
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 页码数字区域 */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 页码数字 */
.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-num:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    cursor: default;
}

.page-num.active:hover {
    background: var(--primary);
    color: white;
}

/* 省略号 */
.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 38px;
    color: var(--text-lighter);
    font-size: 1rem;
}

/* ===== 响应式分页 ===== */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .page-btn {
        width: 34px;
        height: 34px;
    }

    .page-btn i {
        font-size: 0.7rem;
    }

    .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 6px;
    }

    .page-dots {
        min-width: 28px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }

    .page-btn {
        width: 30px;
        height: 30px;
    }

    .page-btn i {
        font-size: 0.65rem;
    }

    .page-num {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0 4px;
    }

    .page-dots {
        min-width: 24px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* 底部微信二维码弹窗 */
.wechat-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.wechat-qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    text-align: center;
}

.wechat-icon-wrapper:hover .wechat-qrcode-popup {
    display: block;
}

.wechat-qrcode-popup img {
    width: 130px;
    height: 130px;
    display: block;
}

.wechat-qrcode-popup span {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #666;
}

/* 箭头 */
.wechat-qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* ===== 移动端下拉菜单 - 丝滑动画版 ===== */
/* 移动端下拉菜单 - 纯 CSS 方案 */
.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown-menu.open {
    max-height: 500px; /* 设置一个足够大的值，确保能容纳所有内容 */
}

.mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 40px;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #f5f5f5;
}

.mobile-dropdown-link:hover {
    background: #e8e8e8;
    color: var(--primary);
}

/* 下拉箭头动画 - 简洁版（无圆框） */
.mobile-dropdown-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #999;
    margin-left: 8px;
}

.mobile-dropdown-icon.rotated {
    transform: rotate(180deg);
}

.mobile-nav-link:hover .mobile-dropdown-icon {
    color: var(--primary);
}

/* ===== 按钮样式 ===== */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.btn-primary.btn-small {
    padding: 8px 24px;
    font-size: 0.85rem;
}

/* 轮廓按钮 */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* 次要按钮 */
.btn-secondary {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text);
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 基础徽章样式 */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    color: #fff;
    z-index: 2;
}

/* 各类样式 */
.product-badge.hot {
    background-color: #ff6b6b;
}

.product-badge.bestseller {
    background-color: #ffa502;
}

.product-badge.recommend {
    background-color: #1e90ff;
}

.product-badge.feature {
    background-color: #9b59b6;
}

.product-badge.new {
    background-color: #2ecc71;
}

/* 如果没有匹配的类，默认样式 */
.product-badge {
    background-color: #7f8c8d;
}


/* ===== Toast 通知样式 ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-notification {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s ease forwards;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-notification .toast-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-content {
    background: #d4edda;
    color: #155724;
}

.toast-notification.success .toast-content i {
    color: #28a745;
}

.toast-notification.error .toast-content {
    background: #f8d7da;
    color: #721c24;
}

.toast-notification.error .toast-content i {
    color: #dc3545;
}

.toast-notification .toast-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: progress 3s linear forwards;
}

.toast-notification.success .toast-progress {
    background: #28a745;
}

.toast-notification.error .toast-progress {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}