/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0d3b7a;
    --primary-light: #00529b;
    --accent: #c8102e;
    --accent-hover: #a50d25;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-light: #f5f7fa;
    --border: #e8ecf0;
    --shadow: 0 4px 20px rgba(13, 59, 122, 0.08);
    --shadow-lg: 0 8px 40px rgba(13, 59, 122, 0.12);
    --radius: 8px;
    --header-h: 80px;
    --transition: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

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

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.header-top {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact a { color: rgba(255,255,255,0.85); }
.header-contact a:hover { color: #fff; }
.header-contact .divider { margin: 0 12px; opacity: 0.4; }

.header-main { height: var(--header-h); }

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-image {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -1px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 18px; color: var(--primary); }
.logo-text small { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }

.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text small { color: rgba(255,255,255,0.6); }

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    color: var(--text);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--accent);
    background: rgba(200, 16, 46, 0.06);
}

.has-sub { position: relative; }

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}

.sub-menu li {
    display: block;
    width: 100%;
}

.sub-menu li a {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    writing-mode: horizontal-tb;
}
.sub-menu li a:hover { color: var(--accent); background: var(--bg-light); }

.sub-menu li a.active {
    color: var(--accent);
    background: rgba(200, 16, 46, 0.06);
    font-weight: 500;
}

.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
}

/* ===== Hero Banner ===== */
main { padding-top: calc(var(--header-h) + 34px); }

.hero-banner {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-content {
    color: #fff;
    max-width: 680px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dots .dot.active,
.hero-dots .dot:hover {
    background: #fff;
    border-color: #fff;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

/* ===== Features ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(13, 59, 122, 0.08);
    border-radius: 50%;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.feature-emoji {
    font-size: 34px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    text-align: left;
    width: 100%;
    margin: 0;
    word-break: break-word;
}

/* ===== Business ===== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 32px;
}

.business-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.business-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.business-info {
    padding: 24px;
    background: #fff;
}

.business-info h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.business-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.link-more {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.business-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ===== Stats ===== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 60px 0;
}

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

.stat-num {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stat-unit {
    font-size: 24px;
    font-weight: 600;
}

.stat-item p {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.85;
}

/* ===== Testimonials ===== */
.testimonial-slider { overflow: hidden; }

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    border-left: 4px solid var(--accent);
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong { display: block; color: var(--primary); }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* ===== News ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    overflow: hidden;
}

.news-card:hover { transform: translateY(-3px); }

.news-card-cover {
    display: block;
    height: 180px;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-card-cover.is-empty {
    background-image: linear-gradient(135deg, rgba(13, 59, 122, 0.12), rgba(0, 82, 155, 0.18));
}

.news-card-body {
    padding: 24px 28px 28px;
}

.news-date {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card h3 a:hover { color: var(--accent); }

.news-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5298 100%);
    color: #fff;
    padding: 60px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.cta-text p { opacity: 0.85; font-size: 15px; }

.cta-actions { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }

.cta-phone { text-align: center; }
.cta-phone span { display: block; font-size: 13px; opacity: 0.7; margin-bottom: 4px; }
.cta-phone a { font-size: 24px; font-weight: 700; color: #fff; }

/* ===== Page Banner ===== */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin-top: -1px;
    min-height: 160px;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
    border: 0;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,59,122,0.55), rgba(0,82,155,0.45));
    z-index: 1;
    pointer-events: none;
}

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

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p { font-size: 16px; opacity: 0.9; }

/* ===== About Page ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    height: 360px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.check-list { margin-top: 20px; }
.check-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--text-light);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.team-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--accent); display: block; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--text-light); }

/* ===== Honor ===== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.honor-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform var(--transition);
}

.honor-item:hover { transform: translateY(-3px); }
.honor-item span { font-size: 36px; display: block; margin-bottom: 12px; }
.honor-item p { font-size: 15px; color: var(--text); font-weight: 500; }

/* ===== Service Cards ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-4px); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Routes ===== */
.route-list { display: flex; flex-direction: column; gap: 20px; }

.route-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.route-item:hover { transform: translateX(4px); }

.route-badge {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.route-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.route-info p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

.route-tag {
    display: inline-block;
    background: rgba(200, 16, 46, 0.08);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 16px 24px;
    text-align: left;
    font-size: 15px;
}

.data-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: rgba(13, 59, 122, 0.04); }

/* ===== Warehouse ===== */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.warehouse-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.warehouse-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.warehouse-area { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.warehouse-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Process Steps ===== */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
}

.step-num {
    display: inline-flex;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.process-step h4 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-light); }

.process-arrow {
    color: var(--text-muted);
    font-size: 20px;
    padding-top: 14px;
}

.process-steps > .process-arrow:last-child {
    display: none;
}

/* ===== News List Page ===== */
.news-list-page { display: flex; flex-direction: column; gap: 24px; }

.news-list-item {
    display: flex;
    gap: 24px;
    align-items: stretch;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    overflow: hidden;
}

.news-list-item:hover { transform: translateX(4px); }

.news-list-cover {
    flex-shrink: 0;
    width: 240px;
    min-height: 160px;
    align-self: stretch;
    border-radius: var(--radius);
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-list-cover.is-empty {
    background-image: linear-gradient(135deg, rgba(13, 59, 122, 0.12), rgba(0, 82, 155, 0.18));
}

.news-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.news-list-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.news-list-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.news-list-date .month {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.news-list-body h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.news-list-body p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.read-more { color: var(--accent); font-size: 14px; font-weight: 500; }
.read-more:hover { text-decoration: underline; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #dce3ee;
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary);
    background: #fff;
    transition: all 0.2s;
}

.page-btn:hover,
.page-num:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.page-btn.disabled,
.page-num.active {
    cursor: default;
}

.page-btn.disabled {
    color: #aaa;
    border-color: #e8edf3;
    background: #f5f7fa;
}

.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
}

.pagination-info {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

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

.contact-info h2,
.contact-form-wrap h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.contact-item a { font-size: 18px; color: var(--primary); font-weight: 600; }
.contact-item a:hover { color: var(--accent); }
.contact-item p { font-size: 15px; color: var(--text); }

.contact-regions { margin-top: 32px; }
.contact-regions h4 { font-size: 16px; color: var(--primary); margin-bottom: 16px; }
.contact-regions li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.contact-form-wrap {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 36px;
}

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

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Track ===== */
.track-box {
    max-width: 720px;
    margin: 0 auto;
}

.track-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.track-section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.track-box--auth {
    max-width: 960px;
}

.rtb56-login-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.rtb56-login-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rtb56-login-list label {
    min-width: 72px;
    font-size: 15px;
    color: var(--text-muted);
}

.rtb56-login-list input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
}

.rtb56-register-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rtb56-form-actions {
    display: flex;
    justify-content: flex-start;
}

.rtb56-form .btn,
.rtb56-form input[type="submit"].btn {
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.track-input-wrap input[type="submit"].btn {
    align-self: flex-start;
    min-width: 120px;
    padding: 16px 24px;
}

.track-input-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.track-input-wrap input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color var(--transition);
}

.track-input-wrap--textarea {
    align-items: stretch;
}

.track-input-wrap--textarea textarea {
    flex: 1;
    min-height: 120px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color var(--transition);
}

.track-input-wrap--textarea textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.track-input-wrap--textarea .btn {
    align-self: flex-start;
    min-width: 120px;
    padding: 16px 24px;
}

.track-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
}

.track-tip {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.track-result {
    margin-top: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.track-results .track-result:first-child {
    margin-top: 40px;
}

.track-results .track-result + .track-result {
    margin-top: 24px;
}

.track-message {
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: rgba(13, 59, 122, 0.08);
    color: var(--primary);
    font-size: 14px;
}

.track-empty-tip {
    color: var(--text-muted);
    font-size: 14px;
}

.track-status--delivered {
    background: rgba(34, 139, 34, 0.12);
    color: #228b22;
}

.track-status--unusual {
    background: rgba(255, 152, 0, 0.12);
    color: #e65100;
}

.track-status--error {
    background: rgba(200, 16, 46, 0.1);
    color: var(--accent);
}

.track-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.track-status {
    background: rgba(13, 59, 122, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.track-timeline { position: relative; padding-left: 32px; }

.track-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-item.active .timeline-content h4 { color: var(--accent); }

.timeline-content p { font-size: 14px; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer { background: #1a2332; color: rgba(255,255,255,0.7); }

.footer-main { padding: 60px 0 40px; }

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

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ===== Float Sidebar ===== */
.float-sidebar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-size: 11px;
    gap: 2px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.sidebar-item svg { width: 20px; height: 20px; }
.sidebar-item:hover { background: var(--accent); color: #fff; }

.back-top { opacity: 0; visibility: hidden; transition: all var(--transition); }
.back-top.visible { opacity: 1; visibility: visible; }

.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wechat-modal.open {
    display: flex;
}

.wechat-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(13, 59, 122, 0.45);
}

.wechat-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wechat-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 36px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.wechat-modal-close:hover { color: var(--accent); }

.wechat-modal-panel h4 {
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 20px;
    padding: 0 28px;
    line-height: 1.5;
}

.wechat-modal-qrcode {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fafbfc;
}

.wechat-modal-desc,
.wechat-modal-empty {
    width: 100%;
    margin: 16px 0 0;
    padding: 0 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .feature-grid,
    .service-grid,
    .warehouse-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-track { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-avatar-img {
    width: 72px; height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 16px;
}

.cms-content { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.cms-content p { margin-bottom: 16px; }
.cms-content ul { margin: 16px 0; padding-left: 24px; }
.cms-content li { list-style: disc; margin-bottom: 8px; }

.empty-tip { text-align: center; color: var(--text-muted); padding: 40px; }

.page-banner-sm { padding: 60px 0; }
.news-detail-date { font-size: 14px; opacity: 0.85; margin-bottom: 12px; }
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail-cover {
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.news-detail-body { margin-bottom: 40px; }
.news-detail-back { padding-top: 24px; border-top: 1px solid var(--border); }

.track-loading, .track-error {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
}
.track-error { color: var(--accent); background: rgba(200,16,46,0.08); border-radius: var(--radius); }
.track-raw {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ===== Fee Trial ===== */
.fee-trial-box {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.fee-trial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fee-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fee-field span {
    font-size: 14px;
    color: var(--text-muted);
}

.fee-field input,
.fee-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.fee-field input:focus,
.fee-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.fee-trial-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.fee-trial-tip {
    flex: 1;
    min-width: 240px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.fee-trial-loading,
.fee-trial-error {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
}

.fee-trial-error {
    color: var(--accent);
    background: rgba(200, 16, 46, 0.08);
    border-radius: var(--radius);
}

.fee-trial-result {
    margin-top: 32px;
}

.fee-trial-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: rgba(13, 59, 122, 0.08);
    color: var(--primary);
    font-size: 14px;
}

.fee-trial-html {
    margin-top: 16px;
    overflow-x: auto;
}

.rtb56-html table {
    width: 100%;
    border-collapse: collapse;
}

.rtb56-html th,
.rtb56-html td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .header-top { display: none; }
    main { padding-top: var(--header-h); }

    .nav-toggle { display: flex; }

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

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

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

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    .main-nav.open {
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
    }

    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav > ul > li:last-child {
        border-bottom: none;
    }

    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 0;
    }

    .has-sub > a::after {
        content: '';
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        margin-left: 12px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(45deg);
        transition: transform var(--transition);
    }

    .has-sub.open > a {
        color: var(--primary);
        background: rgba(13, 59, 122, 0.04);
    }

    .has-sub.open > a::after {
        transform: rotate(-135deg);
        border-color: var(--primary);
    }

    .sub-menu {
        position: static;
        display: none;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        margin: 0;
        padding: 6px 0 10px;
        background: var(--bg-light);
        border-top: 1px solid var(--border);
        border-left: 3px solid var(--primary-light);
    }

    .has-sub.open .sub-menu {
        display: flex;
    }

    .sub-menu li a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        color: var(--text-light);
        white-space: normal;
        position: relative;
    }

    .sub-menu li a::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--primary-light);
        transform: translateY(-50%);
        opacity: 0.7;
    }

    .sub-menu li a:active,
    .sub-menu li a.active {
        color: var(--accent);
        background: rgba(200, 16, 46, 0.08);
        font-weight: 500;
    }

    .sub-menu li a.active::before {
        background: var(--accent);
        opacity: 1;
    }

    .hero-banner { height: 420px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }

    .section { padding: 48px 0; }
    .section-header h2 { font-size: 24px; }

    .feature-grid,
    .business-grid,
    .news-grid,
    .service-grid,
    .warehouse-grid,
    .team-grid,
    .honor-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-num { font-size: 36px; }

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

    .about-image { height: 240px; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { flex-direction: column; }

    .flex-header { flex-direction: column; align-items: flex-start; gap: 16px; }

    .route-item { flex-direction: column; align-items: flex-start; }

    .process-arrow { display: none; }
    .process-steps { flex-direction: column; align-items: center; }

    .news-list-item {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .news-list-cover {
        width: 100%;
        min-height: 0;
        height: 200px;
        align-self: auto;
    }

    .news-list-main {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .news-list-date {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 0;
        background: transparent;
    }

    .news-list-date .day,
    .news-list-date .month {
        display: inline;
        font-size: 14px;
        margin-top: 0;
    }

    .news-list-date .day {
        font-size: 14px;
        color: var(--accent);
    }

    .news-list-date .month::before {
        content: '·';
        margin: 0 6px;
        color: var(--text-muted);
    }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }

    .float-sidebar { display: none; }

    .track-input-wrap { flex-direction: column; }
    .track-input-wrap--textarea .btn,
    .track-input-wrap input[type="submit"].btn { width: 100%; }
    .rtb56-register-grid { grid-template-columns: 1fr; }
    .rtb56-login-list li { flex-direction: column; align-items: stretch; }
    .rtb56-login-list label { min-width: 0; }
    .fee-trial-grid { grid-template-columns: 1fr; }
    .fee-trial-box { padding: 20px; }
}
