/* ============================================================
   内页统一增强层（服务页 / 关于页 / 数据中心 / 联系 / 查询 / 平台页）
   依赖 styles.css 变量层，配色由 theme-*.css 提供
   目标：与首页保持同一视觉语言（留白、圆角、描边、悬浮、节奏）
   ============================================================ */

/* ===== 1. 页面横幅 ===== */
.page-banner {
    background: var(--hero-bg);
    padding: 108px 0 64px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(48% 60% at 82% 18%, rgba(255, 255, 255, 0.16), transparent 70%),
        radial-gradient(40% 52% at 10% 92%, rgba(0, 0, 0, 0.18), transparent 72%);
    pointer-events: none;
}

.page-banner > .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 1.0625rem;
    opacity: 0.88;
    max-width: 680px;
    margin: 0 auto;
}

.breadcrumb {
    justify-content: center;
    margin-top: 16px;
    font-size: 0.8125rem;
}

.breadcrumb a:hover {
    color: var(--white);
}

/* 平台页自定义横幅对齐 */
.banner {
    background: var(--hero-bg) !important;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(46% 58% at 80% 16%, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.banner > * {
    position: relative;
    z-index: 1;
}

/* 平台申请页 hero-banner */
.hero-banner,
.platform-hero {
    background: var(--hero-bg);
    color: var(--white);
    padding: 104px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::after,
.platform-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(46% 58% at 80% 16%, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-banner > .container,
.platform-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.125rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subtitle {
    opacity: 0.88;
    font-size: 1.0625rem;
}

/* 面包屑（含平台页的 breadcrumb-item / breadcrumb-separator 写法） */
.breadcrumb-item a,
.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8125rem;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ===== 2. 区块节奏 ===== */
.section {
    padding: var(--section-padding);
}

.section-subtitle {
    margin-bottom: 44px;
}

/* ===== 3. 卡片统一（内页为竖向卡片，与首页同语言） ===== */
.card,
.advantage-card,
.service-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: all var(--normal);
}

.card:hover,
.advantage-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: var(--shadow-lg);
}

/* 内页卡片顶部渐变线（替代原来的左侧色块） */
.service-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 0;
    transition: none;
}

.service-card:hover::before {
    width: 100%;
    opacity: 1;
}

.service-card .icon,
.advantage-card .icon {
    color: var(--primary);
    background: var(--primary-bg);
}

.service-card .link {
    color: var(--primary);
    font-weight: 600;
}

.service-card .link:hover {
    color: var(--accent);
}

.feature-tag {
    background: var(--gray-100);
    color: var(--text-secondary);
}

/* ===== 4. 流程步骤 ===== */
.process-steps {
    gap: 0;
}

.process-step {
    position: relative;
}

.step-number,
.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(14, 124, 102, 0.26);
}

.step-title {
    margin-top: 12px;
    font-weight: 600;
    color: var(--text);
}

.process-arrow {
    color: var(--gray-300);
}

/* ===== 5. FAQ 手风琴 ===== */
.faq-item {
    border-radius: var(--radius-lg);
    background: var(--white);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    font-weight: 600;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-answer-inner {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 6. 表格 ===== */
.table-wrapper {
    border: 1px solid var(--gray-200);
}

.table-wrapper table {
    border-radius: 0;
}

.table-wrapper th {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.table-wrapper tr:hover td {
    background: var(--gray-50);
}

.disclaimer {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== 7. 时间轴 ===== */
.timeline::before {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.35;
}

.timeline-dot {
    background: var(--accent);
}

.timeline-card {
    border: 1px solid var(--gray-200);
    transition: all var(--normal);
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: var(--shadow-lg);
}

.timeline-card .year {
    color: var(--accent);
}

/* ===== 8. CTA 统一 ===== */
.cta-section,
.cta-section.bg-accent {
    background: var(--hero-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(46% 58% at 78% 20%, rgba(255, 255, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

/* ===== 9. 表单统一 ===== */
.form-group input,
.form-group textarea,
.form-group select,
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--fast), box-shadow var(--fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-success {
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-md);
}

/* ===== 10. SVG 硬编码色跟随主题（模板内联属性） ===== */
[fill="#e6f0ff" i] { fill: var(--primary-bg); }
[fill="#b8d4ff" i] { fill: var(--primary-light); }
[fill="#f1f5f9" i] { fill: var(--gray-100); }
[fill="#334155" i] { fill: var(--gray-700); }
[stroke="#e6f0ff" i] { stroke: var(--primary-bg); }
[stroke="#b8d4ff" i] { stroke: var(--primary-light); }

/* ===== 11. 示例/插图容器圆角统一 ===== */
.svg-illustration,
.illustration,
.service-visual {
    border-radius: var(--radius-lg);
}

/* ===== 12. 响应式 ===== */
@media (max-width: 992px) {
    .page-banner {
        padding: 92px 0 52px;
    }

    .page-banner h1 {
        font-size: 1.875rem;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 8px;
    }

    .timeline-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 86px 0 44px;
    }

    .page-banner h1 {
        font-size: 1.625rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .table-wrapper {
        font-size: var(--font-size-sm);
    }
}

/* ===== 13. 合作伙伴卡片 ===== */
.partner-group-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.partner-card {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--normal);
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 124, 102, 0.28);
    box-shadow: var(--shadow-lg);
}

.partner-logo-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.partner-logo-box img {
    max-height: 50px;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.72;
    transition: filter var(--normal), opacity var(--normal);
}

.partner-card:hover .partner-logo-box img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.partner-card p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .partners-grid {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }
}

/* ===== 14. 公司位置地图 ===== */
.map-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.company-map {
    height: 400px;
    width: 100%;
    background: var(--gray-100);
    z-index: 1;
}

.company-map .leaflet-container {
    font-family: var(--font);
}

.map-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.map-meta-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.map-meta-info .map-pin {
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1.4;
}

.map-meta-info strong {
    display: block;
    font-size: var(--font-size-base);
    color: var(--text);
    margin-bottom: 4px;
}

.map-meta-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

.map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .company-map {
        height: 300px;
    }

    .map-meta {
        padding: 16px 18px;
    }

    .map-actions {
        width: 100%;
    }

    .map-actions .btn {
        flex: 1;
    }
}

/* ===== 15. 招聘职位列表 ===== */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.job-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.job-meta span {
    display: inline-flex;
    align-items: center;
}

.job-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 6px;
}

@media (max-width: 560px) {
    .job-card {
        align-items: stretch;
    }

    .job-card .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== 16. 平台对接申请表 ===== */
.apply-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.apply-form-wrap .section-title {
    font-size: var(--font-size-2xl);
}

.apply-form-wrap .section-title::after {
    margin-top: 12px;
}

.apply-form-wrap .section-subtitle {
    margin-bottom: 32px;
}

.required {
    color: var(--error);
    margin-left: 2px;
}

.apply-form .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .apply-form-wrap {
        padding: 24px 18px;
    }
}

/* ===== 16. 移动端补充适配 ===== */

/* 平板：多列网格降为两列 */
@media (max-width: 1024px) {
    .service-cards,
    .benefit-items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 手机：单列 + 组件纵向排列 */
@media (max-width: 768px) {
    /* 外贸公服平台页（customs_index.css 无响应式，这里补齐） */
    .service-cards,
    .benefit-items,
    .policy-list,
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .policy-tags {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .banner-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .banner h1,
    .intro h2,
    .services h2,
    .benefits h2,
    .process h2,
    .policy h2,
    .contact h2 {
        font-size: 1.5rem !important;
    }

    .banner .subtitle {
        font-size: 1rem;
    }

    .banner,
    .intro,
    .services,
    .benefits,
    .process,
    .policy,
    .contact {
        padding: 44px 0 !important;
    }

    .process-arrow {
        transform: rotate(90deg);
        align-self: center;
        margin: 6px 0;
    }

    .contact-qrcode {
        margin-top: 4px;
    }

    /* 模板内联的多列网格（原写法为内联 style） */
    [style*="repeat(3, 1fr)"],
    [style*="repeat(3,1fr)"],
    [style*="repeat(4, 1fr)"],
    [style*="repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }

    .chart-wrap {
        height: 240px;
    }

    .chart-wrap.tall {
        height: 300px;
    }
}

/* 小屏：两列也降为单列 */
@media (max-width: 480px) {
    [style*="repeat(2, 1fr)"],
    [style*="repeat(2,1fr)"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 1.375rem;
    }
}

/* ===== 17. 运单查询卡（首页浮动卡与物流查询页共用同一套组件） ===== */
.tracking-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 124, 102, 0.10);
}

.tracking-card-label {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-right: 22px;
    border-right: 1px solid var(--gray-200);
}

.tracking-card-label .tc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.tracking-card-label .tc-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tracking-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.track-icon {
    background: var(--primary-bg);
    padding: 0 12px;
    height: 46px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.track-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.track-input::placeholder {
    color: var(--gray-400);
}

.track-search-btn {
    height: 46px;
    width: 56px;
    flex-shrink: 0;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--fast);
}

.track-search-btn:hover {
    background: var(--accent-dark);
}

.track-tag-box {
    display: flex;
    align-items: center;
    height: 46px;
    flex-shrink: 0;
}

.track-tag-box img {
    height: 46px;
    margin-left: 5px;
}

.tracking-hint {
    margin-top: 14px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .tracking-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .tracking-card-label {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .tracking-hint {
        text-align: left;
    }
}
