/* ==========================================================
   清关公司官网 — 前台样式
   主题色由后台控制，通过 CSS 变量注入
   ========================================================== */

:root {
    --brand: #0d9488;
    --brand-dark: #0f766e;
    --accent: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

body {
    background-color: #fafafa;
    color: #1f2937;
    line-height: 1.6;
}

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

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

/* ========== 导航栏 ========== */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img { height: 34px; width: auto; }

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover { color: var(--brand); }

.lang-select {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.nav-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover { background: var(--brand-dark); }

.hamburger {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 20px;
    line-height: 1;
    padding: 6px 11px;
    cursor: pointer;
    color: #374151;
}

/* ========== 首屏 Banner ========== */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
}

.hero.has-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13, 148, 136, .88), rgba(6, 182, 212, .72));
}

.hero .container { position: relative; }

.hero-content { max-width: 760px; }

.hero h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    color: #e0f2fe;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: var(--brand);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}

.btn-primary:hover { background: #f9fafb; }

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

/* ========== 通用标题 ========== */
.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 12px;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 16px;
}

/* ========== 清关服务板块 ========== */
.services-section { padding: 70px 0; }

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

.service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.service-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--brand);
    display: block;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

/* ========== 头程运输流程 ========== */
.process-section {
    background: #f3f4f6;
    padding: 70px 0;
}

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

.process-item { text-align: center; }

.process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1f2937;
}

.process-item p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 关于我们板块 ========== */
.about-section { padding: 80px 0; }

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

.about-text h2 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #1f2937;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 16px;
}

.about-list {
    list-style: none;
    margin-bottom: 24px;
}

.about-list li {
    padding: 10px 0;
    color: #374151;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 700;
    font-size: 18px;
}

.about-image {
    background: #e0f2fe;
    border-radius: 12px;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image.photo { padding: 0; }
.about-image.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ========== 联系我们板块 ========== */
.contact-section {
    background: #fff;
    padding: 70px 0;
}

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

.contact-info h2 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--brand);
    flex-shrink: 0;
}

.contact-item span {
    color: #374151;
    font-size: 15px;
}

.contact-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1f2937;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    color: #1f2937;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 16px;
}

.submit-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover { background: var(--brand-dark); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.form-tip {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.form-tip.ok { color: var(--brand); }
.form-tip.err { color: #dc2626; }

/* ========== 页脚 ========== */
footer {
    background: #1f2937;
    color: #fff;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #fff;
}

.footer-col p,
.footer-col a {
    color: #9ca3af;
    line-height: 1.8;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.footer-col a:hover { color: var(--brand); }

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #374151;
    font-size: 13px;
    color: #6b7280;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .services-grid,
    .process-grid,
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .about-inner,
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .hamburger { display: block; }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 18px;
        display: none;
    }

    .nav-list.open { display: flex; }

    .nav-list a {
        padding: 13px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .lang-select { margin-top: 14px; width: 100%; }
    .nav-btn { margin-top: 10px; text-align: center; }

    .hero { padding: 64px 0 56px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }

    .section-title { font-size: 25px; }
    .section-subtitle { margin-bottom: 34px; }

    .services-section, .process-section, .contact-section { padding: 52px 0; }
    .about-section { padding: 52px 0; }

    .services-grid,
    .process-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
}
