/* ============================================
   世纪奥洁 - 公共布局样式
   包含：导航栏、页脚、响应式
   ============================================ */

/* ---- 导航栏 ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 80px;
    transition: all 0.3s;
}
.header.scrolled { height: 60px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 48px; width: auto; }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-menu > li:hover > a::after { width: 100%; }

/* 二级下拉菜单 */
.nav-menu li { position: relative; }
.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10000;
    list-style: none;
    border: 1px solid rgba(12,74,110,0.08);
}
.nav-menu .submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid rgba(12,74,110,0.08);
    border-top: 1px solid rgba(12,74,110,0.08);
}
.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-menu .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    transition: all 0.2s;
}
.nav-menu .submenu li a:hover {
    color: var(--primary);
    background: rgba(12,74,110,0.04);
}
.nav-menu .submenu li a::after { display: none; }

/* 二级菜单指示小圆点 - 桌面端 */
.nav-menu .has-submenu > a { padding-right: 12px; }
.nav-menu .has-submenu > a::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s;
}
.nav-menu .has-submenu:hover > a::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
}

/* 移动端菜单 */
.mobile-submenu { display: none; list-style: none; padding-left: 16px; border-left: 2px solid rgba(12,74,110,0.1); margin: 8px 0; }
.mobile-submenu.active { display: block; }
.mobile-menu-toggle {
    display: none;
    font-size: 12px;
    color: var(--text-light);
    margin-left: 6px;
    transition: transform 0.3s;
}
.mobile-menu-toggle.active { transform: rotate(180deg); }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(12,74,110,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s;
    white-space: nowrap;
}
.nav-phone:hover {
    border-color: var(--primary);
    background: rgba(12,74,110,0.06);
    color: var(--primary);
}
.nav-phone svg { width: 16px; height: 16px; stroke: var(--accent); }
.btn-mini {
    background: var(--accent);
    color: var(--white);
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-mini:hover {
    background: #92400E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180,83,9,0.3);
}

/* ---- 内容区通用 ---- */
.section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.section-title p {
    font-size: 17px;
    color: var(--text-light);
}

/* ---- 内页Banner ---- */
.page-banner {
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, #083344 0%, var(--primary) 50%, #0C4A6E 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}
.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8,51,68,0.92) 0%, rgba(12,74,110,0.7) 50%, rgba(12,74,110,0.4) 100%);
}
.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    color: var(--white);
}
.breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--highlight); }
.breadcrumb span { margin: 0 8px; }
.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.page-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    line-height: 1.7;
}

/* ---- 信任条 ---- */
.trust-bar {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-light);
}
.trust-icon {
    width: 40px;
    height: 40px;
    background: rgba(12,74,110,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}
.trust-icon.icon-star { color: #F59E0B; background: rgba(245,158,11,0.08); }
.trust-icon.icon-diamond { color: var(--highlight); background: rgba(56,189,248,0.1); }
.trust-icon.icon-cycle { color: #10B981; background: rgba(16,185,129,0.08); }
.trust-icon.icon-circle { color: var(--accent); background: rgba(180,83,9,0.08); }

/* ---- Logo墙 ---- */
.logo-wall {
    background: var(--white);
    padding: 60px 0;
}
.logo-wall-title {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.logo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(12,74,110,0.08);
}
.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.logo-card img {
    width: 100%;
    height: 128px;
    object-fit: contain;
    padding: 24px 30px;
    background: var(--white);
    box-sizing: border-box;
}
.logo-card-name {
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border-top: 1px solid rgba(12,74,110,0.06);
}

/* 响应式 */
@media (max-width: 992px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .logo-wall {
        padding: 40px 0;
    }
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .logo-card img {
        height: 104px;
        padding: 18px 20px;
    }
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- 底部转化区 ---- */
.footer-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #164E63 100%);
    color: var(--white);
    padding: 80px 0;
}
.footer-cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.footer-cta h3 { font-size: 24px; margin-bottom: 24px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-light); }
.contact-form button {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.contact-form button:hover { background: #92400E; transform: translateY(-1px); }
.footer-info h4 { font-size: 18px; margin-bottom: 16px; color: var(--highlight); }
.footer-info p {
    font-size: 15px;
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.6;
}
.map-placeholder {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 2px dashed rgba(255,255,255,0.2);
    margin-top: 16px;
}
.map-footer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 联系我们增强版 */
.footer-info-contact p { margin-bottom: 10px; }
.social-media {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.3s;
}
.social-item:hover {
    background: rgba(255,255,255,0.15);
}
.social-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}
.qrcode-item {
    padding: 12px !important;
}
.qrcode-wrapper {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}
.qrcode-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

/* 企业愿景 */
.enterprise-vision {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.vision-item {
    margin-bottom: 14px;
}
.vision-item:last-child {
    margin-bottom: 0;
}
.vision-item strong {
    display: block;
    font-size: 12px;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.vision-item p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}
.social-text strong {
    display: block;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 2px;
}
.social-text small {
    font-size: 12px;
    opacity: 0.7;
}

/* ---- 页脚 ---- */
.footer {
    background: #0F2A3D;
    color: rgba(255,255,255,0.7);
    padding: 60px 0;
    font-size: 14px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 40px; }
.footer-desc {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.footer-contact-brief {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.footer-contact-brief strong { color: var(--highlight); font-size: 14px; }
.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 14px;
}
.footer-links a:hover { color: var(--highlight); transform: translateX(4px); }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-location-note { margin-top: 16px; font-size: 14px; opacity: 0.9; }
.footer-icp { margin-top: 8px; opacity: 0.6; }
.nav-highlight { color: var(--accent) !important; font-weight: 600 !important; }
.section-bg { background: var(--bg); }

/* ---- 悬浮CTA ---- */
.float-cta {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    background: var(--accent);
    color: var(--white);
    padding: 16px 12px;
    border-radius: 8px;
    writing-mode: vertical-rl;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    box-shadow: 0 4px 12px rgba(180,83,9,0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.float-cta:hover { background: #92400E; transform: translateY(-50%) translateX(-4px); }

/* ---- 移动端底部电话条 ---- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    grid-template-columns: 1fr 1fr;
}
.mobile-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}
.mobile-btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

/* ---- 响应式（1024px） ---- */
@media (max-width: 1024px) {
    .header { height: 60px; }
    .mobile-menu-btn { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        z-index: 9998;
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid rgba(12,74,110,0.08); }
    .nav-menu > li > a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 16px; }
    .nav-menu > li > a::after { display: none; }
    .nav-menu .has-submenu > a::before { display: none; }
    .nav-menu .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        background: #F1F5F9;
        width: 100%;
        margin: 8px 0;
        border-radius: 8px;
        overflow: hidden;
        min-width: auto;
    }
    .nav-menu .submenu::before { display: none; }
    .nav-menu .submenu.active { display: block; }
    .nav-menu > li:hover .submenu { transform: none; }
    .nav-menu .submenu li { border-bottom: 1px solid rgba(12,74,110,0.06); }
    .nav-menu .submenu li:last-child { border-bottom: none; }
    .nav-menu .submenu li a { padding: 14px 16px; display: block; white-space: normal; font-size: 14px; color: var(--text-light); }
    .mobile-menu-toggle {
        display: inline-flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        cursor: pointer;
        margin-left: auto;
        background: rgba(12,74,110,0.06);
        border-radius: 6px;
        transition: all 0.3s;
    }
    .mobile-menu-toggle:hover { background: rgba(12,74,110,0.12); }
    .mobile-menu-toggle.active { transform: rotate(180deg); background: rgba(12,74,110,0.15); }
    .mobile-menu-btn { display: flex; }
    .nav-right { display: none; }
    .footer-cta-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; margin-bottom: 8px; }
    .footer-logo { display: flex; justify-content: center; }
    .footer-desc { max-width: 400px; margin: 0 auto 16px; }
    .footer-contact-brief { border-top: none; padding-top: 0; }
    .float-cta { display: none; }
    .mobile-bottom-bar { display: grid; }
    body { padding-bottom: 60px; }
    .footer { padding-bottom: 100px; }
    .trust-content { flex-direction: column; gap: 16px; }
    .trust-item { font-size: 14px; }
}

/* ---- 响应式（768px） ---- */
@media (max-width: 768px) {
    .nav-phone { display: none !important; }
    .section { padding: 48px 16px; }
    .section-title h2 { font-size: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 0; }
    .footer { padding: 40px 0 100px; }
    .footer-brand { grid-column: auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 0 24px 0; margin-bottom: 0; text-align: left; }
    .footer-logo { justify-content: flex-start; }
    .footer-desc { margin: 0 0 16px 0; max-width: none; }
    .footer-links { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
    .footer-links:last-of-type { border-bottom: none; }
    .footer-links h4 { margin-bottom: 16px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
    .footer-links h4::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 300; }
    .footer-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
    .footer-links li { margin-bottom: 0; }
    .footer-links a { font-size: 13px; padding: 4px 0; }
    .footer-links a:hover { transform: none; }
    .trust-content { flex-direction: column; gap: 16px; }
    .trust-item { font-size: 14px; }
    .footer-cta { padding: 40px 0; }
    .footer-cta-grid { gap: 32px; }
    .footer-cta h3 { font-size: 20px; text-align: center; }
    .contact-form button { font-size: 15px; }
    .page-banner { height: 320px; }
    .page-banner h1 { font-size: 32px; }
}

/* 菜单打开时禁止背景滚动 */
body.menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
