/* ===================================
   上海洋诚物流有限公司 - 全局样式 v2
   配色参考：#005599 主蓝 + #E1251B 品牌红
   =================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --color-primary: #005599;
    --color-primary-light: #0077bb;
    --color-primary-dark: #003d6e;
    --color-accent: #E1251B;
    --color-accent-light: #ff3b30;
    --color-accent-dark: #b01d15;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --color-white: #ffffff;

    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --max-width: 1280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ---------- 通用容器 ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* ---------- 区块标题 ---------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.02rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.section-header .divider {
    width: 56px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto 22px;
    border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 85, 153, 0.35);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225, 37, 27, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-svg {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-wrap .name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo-text-wrap .en {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* 导航菜单 — 等宽均匀铺满整行 */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    gap: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    justify-content: center;
}

.nav-item > .nav-link:hover {
    color: var(--color-primary);
}

.nav-item > .nav-link.active {
    color: var(--color-primary);
}

.nav-item > .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px 3px 0 0;
}

.nav-link .chevron {
    width: 13px;
    height: 13px;
    opacity: 0.25;
    transition: var(--transition);
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
    opacity: 0.6;
}

/* 下拉面板 — 简洁单列 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    color: var(--color-text);
}

.nav-dropdown-item:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.nav-dropdown-item .icon-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.nav-dropdown-item:hover .icon-box {
    color: var(--color-accent);
}

.nav-dropdown-item .label {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.nav-dropdown-item:hover .label {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-dropdown-item .desc {
    display: none;
}

/* 导航右侧工具 */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-tools .search-btn {
    color: var(--color-text-muted);
    transition: var(--transition);
    padding: 8px;
}

.nav-tools .search-btn:hover {
    color: var(--color-primary);
}

.nav-tools .divider-v {
    width: 1px;
    height: 16px;
    background: var(--color-border);
}

.nav-tools .user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-tools .user-btn .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.nav-tools .user-btn:hover .avatar {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-tools .user-btn .text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-tools .user-btn:hover .text {
    color: var(--color-primary);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-drawer {
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-content {
    padding: 24px;
}

.mobile-menu-section {
    margin-bottom: 24px;
}

.mobile-menu-section h4 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-text);
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    margin-bottom: 12px;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-left: 16px;
}

.mobile-menu-grid a {
    font-size: 0.88rem;
    text-align: left;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: var(--transition);
}

.mobile-menu-grid a:hover,
.mobile-menu-grid a.active {
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------- 页面横幅（内页） ---------- */
.page-banner {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
    overflow: hidden;
    margin-top: 72px;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.page-banner .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    opacity: 0.8;
}

.page-banner .breadcrumb a:hover {
    color: var(--color-accent-light);
}

.page-banner .breadcrumb span.sep {
    opacity: 0.5;
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 56px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.footer-about .logo .logo-text-wrap .name {
    color: var(--color-white);
}

.footer-about .logo .logo-text-wrap .en {
    color: rgba(255, 255, 255, 0.4);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.5);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-hotline {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.footer-hotline .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.footer-hotline .number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-primary-light);
    letter-spacing: -1px;
    line-height: 1;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: var(--color-accent-light);
}

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .nav-item > .nav-link {
        padding: 0 12px;
        font-size: 0.9rem;
    }
    .nav-dropdown {
        width: 380px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .footer-hotline .number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu,
    .nav-tools {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .page-banner {
        height: 260px;
        margin-top: 72px;
    }

    .page-banner h1 {
        font-size: 1.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-hotline .number {
        font-size: 1.8rem;
    }

    .logo-text-wrap .name {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .logo-text-wrap .en {
        display: none;
    }
}
