/* ============================================
   国际货代系统 - 主样式表
   现代简洁大气设计
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    --primary: #1a3a5c;
    --primary-light: #2c5f8a;
    --primary-dark: #0f2640;
    --accent: #e87b35;
    --accent-light: #f09050;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --body-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ========== Navbar ========== */
.navbar-freight {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
    padding: 0.6rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: var(--transition);
}

.navbar-freight .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-freight .navbar-brand i {
    color: var(--accent);
    font-size: 1.5rem;
}

.navbar-freight .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-freight .nav-link:hover,
.navbar-freight .nav-link.active {
    color: var(--primary);
    background: rgba(26,58,92,0.06);
}

.lang-switch {
    background: var(--gray-light);
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,154.7C672,149,768,171,864,186.7C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-track-box {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
}

.hero-track-box .form-control {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    height: auto;
}

.hero-track-box .btn-track {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.hero-track-box .btn-track:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.hero-carriers {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-carriers .carrier-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== Section Common ========== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ========== Service Cards ========== */
.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: #fff;
}

.service-card .icon-wrap.bg-express { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.service-card .icon-wrap.bg-air { background: linear-gradient(135deg, #3498db, #2980b9); }
.service-card .icon-wrap.bg-sea { background: linear-gradient(135deg, #1abc9c, #16a085); }
.service-card .icon-wrap.bg-truck { background: linear-gradient(135deg, #f39c12, #e67e22); }
.service-card .icon-wrap.bg-rail { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.service-card .icon-wrap.bg-package { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.service-card h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ========== Hot Routes ========== */
.route-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
    margin: 5px;
}

.route-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.route-badge i {
    color: var(--accent);
}

/* ========== Feature Cards ========== */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.4rem;
}

.feature-card h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ========== Quote & Contact Forms ========== */
.form-section {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.form-section .form-control,
.form-section .form-select {
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44,95,138,0.12);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    color: #fff;
}

/* ========== Tracking Result ========== */
.tracking-result {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tracking-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 1.5rem 2rem;
}

.tracking-header h5 { margin-bottom: 0.3rem; font-weight: 600; }
.tracking-header .text-muted-white { opacity: 0.8; font-size: 0.9rem; }

.timeline {
    padding: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item .timeline-dot {
    position: absolute;
    left: 22px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-item:first-child .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .timeline-time {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.timeline-item .timeline-desc {
    font-weight: 500;
    color: var(--text-color);
}

.timeline-item .timeline-loc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== Login Page ========== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2rem;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-logo i {
    font-size: 3rem;
    color: var(--primary);
}

.login-card .login-logo h4 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.5rem;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    font-size: 1rem;
}

.login-card .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44,95,138,0.12);
}

.login-card .btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    transition: var(--transition);
}

.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent);
}

.footer p, .footer li {
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== Admin Panel ========== */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .sidebar-brand i {
    color: var(--accent);
    font-size: 1.4rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f0f2f5;
}

.admin-topbar {
    background: #fff;
    padding: 0.8rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-content {
    padding: 1.5rem;
}

/* Admin Stats Cards */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-card .stat-icon.bg-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card .stat-icon.bg-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card .stat-icon.bg-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-card .stat-icon.bg-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Admin Table */
.admin-table-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table-card .card-header-custom {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-table-card .card-header-custom h5 {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.admin-table {
    margin: 0;
}

.admin-table th {
    background: var(--light);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 16px;
}

.admin-table td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.92rem;
    border-color: var(--gray-light);
}

.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.4rem; }
    .hero-section { min-height: 80vh; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-carriers { gap: 1rem; }
    .hero-carriers .carrier-badge { padding: 8px 14px; font-size: 0.85rem; }
    .hero-track-box { padding: 1.2rem; }
    
    .section-title { font-size: 1.5rem; }
    .section-desc { font-size: 0.95rem; }
    
    .service-card { padding: 1.5rem; }
    .form-section { padding: 1.5rem; }
    .login-card { padding: 2rem; }
    
    .footer { padding: 40px 0 20px; }
    
    .navbar-freight .nav-link { padding: 0.4rem 0.8rem !important; font-size: 0.9rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem; }
    .stat-card .stat-number { font-size: 1.4rem; }
    .admin-content { padding: 1rem; }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ========== Utilities ========== */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-light-custom { background: var(--light) !important; }
.rounded-custom { border-radius: var(--border-radius) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

/* Scroll smooth */
html { scroll-behavior: smooth; }

/* Selection */
::selection {
    background: var(--primary-light);
    color: #fff;
}
