/* ========================================
   Peak Express - Base Styles
   ======================================== */

/* CSS Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

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

/* For mobile compatibility */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    
    .feature-bar {
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   Peak Express - Front Page Styles
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f2744; }
.page-wrapper { width: 1200px; margin: 0 auto; background: white; position: relative; }
.page-wrapper img { width: 100%; height: auto; display: block; }

/* Hero Section */
.hero-section {
    position: relative;
    width: 1200px;
    height: 450px;
    overflow: hidden;
}
.hero-bg {
    width: 100%;
    height: 450px !important;
    display: block;
    z-index: 1;
    object-fit: cover;
    object-position: center center;
}
.hero-logo {
    position: absolute;
    top: 5px;
    left: 50px;
    z-index: 99;
}
.hero-logo img {
    height: 90px;
    width: auto;
    max-width: none;
    border-radius: 12px;
}
.hero-contact {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 99;
}
.hero-phone {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-lang {
    display: flex;
    gap: 10px;
}
.hero-lang span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}
.hero-lang span:hover {
    color: white;
}
.hero-lang span.active {
    color: white;
    font-weight: 600;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}
.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 4px 4px 4px 12px;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 14px;
}
.search-input {
    border: none;
    outline: none;
    font-size: 13px;
    color: #1f2937;
    width: 200px;
    background: transparent;
}
.search-input::placeholder {
    color: #9ca3af;
}
.search-btn {
    background: #E65100;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover {
    background: #FF6600;
}
.hero-buttons {
    display: flex;
    gap: 10px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.hero-btn-primary {
    background: white;
    color: #1A2B56;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}
.hero-btn-primary::before {
    content: '📍';
    font-size: 14px;
}
.hero-btn-secondary {
    background: #E65100;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(230,81,0,0.4);
}
.hero-btn-secondary:hover {
    background: #FF6600;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230,81,0,0.5);
}
.hero-btn-secondary::before {
    content: '💰';
    font-size: 14px;
}

/* Features Bar */
.features-bar {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.feature-icon {
    font-size: 32px;
}
.feature-icon-img {
    height: 30px !important;
    width: auto !important;
}
.feature-text {
    display: flex;
    flex-direction: column;
}
.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B56;
    white-space: nowrap;
}
.feature-desc {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.feature-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    margin: 0 20px;
}

/* Feature Bar - Coverage Area */
.feature-bar {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    height: auto;
}
.feature-bar-bg {
    width: 100%;
    height: auto;
    display: block;
}
.feature-bar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coverage-title {
    font-size: 36px;
    font-weight: 800;
    color: #1A2B56;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}
.coverage-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
.state-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.state-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1A2B56;
    display: flex;
    align-items: center;
    gap: 6px;
}
.state-tag .dot {
    width: 6px;
    height: 6px;
    background: #F59E0B;
    border-radius: 50%;
}
.state-tag.more {
    color: #6B7280;
}
.coverage-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1A2B56;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(26, 43, 86, 0.3);
}
.coverage-button::after {
    content: '→';
    font-size: 16px;
}

/* Services Section (background preserved, content replaced by 8-module tabs) */
.services-section {
    width: 1200px;
    margin: 0 auto;
    background: url('/front/static/reference/services_bg_clean.png') center/cover no-repeat;
    padding: 50px 40px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 16px;
    color: #6b7280;
}
.copyright-bar {
    width: 1200px;
    margin: 0 auto;
    background: #0a1929;
    padding: 24px 40px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-align: center;
}

/* ========================================
   8-Module Tabs Section
   ======================================== */
.modules-section {
    width: 1200px;
    margin: 50px auto 0;
    padding: 0 0 40px 0;
}

/* Tab Buttons Container */
.modules-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

/* Individual Tab Button */
.modules-tab-btn {
    min-width: 130px;
    padding: 14px 20px;
    background: white;
    color: #1A2B56;
    border: 1px solid #d1d5db;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}
.modules-tab-btn:hover {
    background: #f3f4f6;
    color: #1A2B56;
}
.modules-tab-btn.active {
    background: #1A2B56;
    color: white;
    border-color: #1A2B56;
    box-shadow: 0 2px 8px rgba(26,43,86,0.3);
}
.modules-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #E65100;
    border-radius: 2px 2px 0 0;
}

/* Tab Panels Container */
.modules-panels {
    background: #f9fafb;
    border-radius: 0 12px 12px 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 300px;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

/* Individual Panel */
.modules-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.modules-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel Title */
.modules-panel-title {
    font-size: 26px;
    font-weight: 800;
    color: #1A2B56;
    margin-bottom: 16px;
    text-align: center;
}

/* Panel Intro Paragraph */
.modules-panel-intro {
    font-size: 15px;
    color: #4B5563;
    text-align: center;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Cards Grid */
.modules-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* About section: 3 cards */
#panel-about .modules-cards {
    grid-template-columns: repeat(3, 1fr);
}
.modules-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.modules-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.modules-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2B56;
    margin-bottom: 8px;
}
.modules-card-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* Stats Row (for 成功案例) */
.modules-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.modules-stat {
    background: white;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.modules-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #E65100;
    margin-bottom: 8px;
}
.modules-stat-label {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

/* Contact Panel Layout */
.modules-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    max-width: 600px;
}
.modules-contact-info {
    background: white;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.modules-contact-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1A2B56;
    margin-bottom: 16px;
}
.modules-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 12px;
}
.modules-contact-item a {
    color: #1A2B56;
    font-weight: 600;
}
.modules-contact-form {
    background: white;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.modules-contact-form h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1A2B56;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E65100;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.modules-submit-btn {
    background: #E65100;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.modules-submit-btn:hover {
    background: #FF6600;
}

/* Mobile responsive for modules */
@media (max-width: 768px) {
    .page-wrapper { width: 100% !important; }
    .hero-section { width: 100% !important; height: auto !important; min-height: 400px; }
    .features-bar { left: 10px; right: 10px; top: auto; bottom: 10px; }
    .feature-bar { width: 100% !important; }
    .services-section { width: 100% !important; }
    .modules-section { width: 100% !important; padding: 0 10px 20px 10px; }
    .copyright-bar { width: 100% !important; }
    .modules-tabs { gap: 8px; }
    .modules-tab-btn { min-width: 100px; padding: 10px 14px; font-size: 13px; }
    .modules-cards { grid-template-columns: 1fr 1fr; }
    .modules-stats { grid-template-columns: 1fr; }
    .modules-contact-layout { grid-template-columns: 1fr; }
    .coverage-title { font-size: 28px; }
    .coverage-subtitle { font-size: 14px; }
}

/* Results sections */
#resultsSection,
#loadingSection,
#errorSection {
    display: block;
}

/* Hidden class for front sections */
.hidden {
    display: none !important;
}

/* Timeline */
.timeline-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
.timeline-marker { width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; margin-top: 4px; }
.timeline-item.current .timeline-marker { background: #E65100; box-shadow: 0 0 0 4px rgba(230,81,0,0.2); }
.timeline-item.completed .timeline-marker { background: #22c55e; }
.timeline-content { flex: 1; }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.timeline-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.timeline-time { font-size: 12px; color: #888; }
.timeline-location { font-size: 12px; color: #666; margin-bottom: 4px; }
.stage-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #f3f4f6; color: #666; }
.stage-tag.stage-delivery { background: #dbeafe; color: #1d4ed8; }
.stage-tag.stage-transit { background: #fef3c7; color: #d97706; }
.package-item { background: #f9fafb; border-radius: 8px; padding: 12px; text-align: center; }
.package-icon { font-size: 24px; margin-bottom: 6px; }
.package-value { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.package-label { font-size: 11px; color: #888; margin-top: 2px; }
