/* ==========================================
   批镜眼镜批发平台 - 通用样式
   ========================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

:root {
    --primary-color: #3182CE;
    --primary-dark: #2C5282;
    --secondary-color: #4A5568;
    --accent-color: #E53E3E;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --text-dark: #1A202C;
    --text-gray: #718096;
    --border-color: #E2E8F0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FAFAFA;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* 容器 */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   顶部导航栏
   ========================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 顶部信息栏 */
.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 30px;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-info-item i {
    font-size: 12px;
}

.header-social {
    display: flex;
    gap: 10px;
}

.header-social a {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* 主导航 */
.header-main {
    padding: 16px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 48px;
    width: auto;
}

/* 导航菜单 */
.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--light-bg);
    border-radius: 6px;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================
   页面标题横幅
   ========================================== */

.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0 40px;
    position: relative;
}

.page-banner-content {
    text-align: center;
    color: var(--white);
}

.page-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   区块标题
   ========================================== */

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-main {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title-sub {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================
   按钮样式
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #C53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ==========================================
   卡片
   ========================================== */

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   页脚
   ========================================== */

.site-footer {
    background: #1A202C;
    color: #A0AEC0;
    padding-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section-title {
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-contact-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
}

.footer-contact-text strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

/* ==========================================
   悬浮按钮
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.5);
}

.service-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.5);
}

.service-panel {
    position: fixed;
    right: -380px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    background: var(--white);
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 998;
    transition: right 0.3s ease;
}

.service-panel.show {
    right: 0;
}

.service-panel-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 0 0 0;
}

.service-panel-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.service-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.service-panel-body {
    padding: 24px;
}

.service-form input,
.service-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.service-form input:focus,
.service-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

.service-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

/* ==========================================
   工具类
   ========================================== */

.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.section-padding {
    padding: 80px 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-gray {
    background-color: var(--light-bg);
}

.site-main {
    min-height: 60vh;
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 992px) {
    .site-logo-img {
        height: 40px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        flex-direction: column;
        min-width: 200px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 8px;
        padding: 8px;
        margin-top: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .nav-toggle {
        display: flex;
    }

    .page-banner-title {
        font-size: 28px;
    }

    .section-title-main {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .page-banner {
        padding: 40px 0 30px;
    }

    .page-banner-title {
        font-size: 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 0;
    }

    .back-to-top,
    .service-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .service-btn {
        bottom: 80px;
    }
}
