/* ========================================
   贯运通 - 官网样式表
   ======================================== */

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --text: #334155;
    --text-light: #64748B;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F172A;
    --border: #E2E8F0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --max-width: 1300px;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--primary-dark);
}

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

/* 容器 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
}

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

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header .logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
    border-radius: 50%;
}
.header .logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

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

.nav a {
    padding: 8px 20px;
    color: var(--text);
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav .btn-register {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 500;
    margin-left: 8px;
}
.nav .btn-register:hover {
    background: var(--primary-dark);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { width: 100%; padding: 12px 16px; }
    .nav .btn-register { margin-left: 0; text-align: center; }
    .menu-toggle { display: flex; }
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.5); opacity: 0.02; }
}
@keyframes pulse-ring-delayed {
    0%, 100% { transform: scale(1); opacity: 0.06; }
    50% { transform: scale(1.8); opacity: 0.01; }
}
.hero-pulse {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.15);
    pointer-events: none;
}
.hero-pulse-1 {
    width: 300px; height: 300px;
    top: 38%; right: 32%;
    animation: pulse-ring 4s ease-in-out infinite;
}
.hero-pulse-2 {
    width: 500px; height: 500px;
    top: 30%; right: 25%;
    animation: pulse-ring-delayed 5s ease-in-out infinite;
}
.hero-pulse-3 {
    width: 200px; height: 200px;
    bottom: 20%; left: 28%;
    animation: pulse-ring 6s ease-in-out infinite;
    border-color: rgba(251,191,36,0.1);
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, #60A5FA, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.hero .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.hero .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.hero .btn-outline:hover {
    border-color: var(--primary);
    background: rgba(37,99,235,0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero { padding: 140px 0 70px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero .btn { padding: 12px 28px; font-size: 15px; }
}

/* ========================================
   板块通用
   ======================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

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

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

.section-header p {
    color: var(--text-light);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}

.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: #94A3B8; }

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 28px; }
}

/* ========================================
   数据统计
   ======================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .num {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card .num .suffix { font-size: 24px; }

.stat-card .label {
    font-size: 15px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat-card .num { font-size: 32px; }
}

/* ========================================
   优势卡片
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}

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

@media (max-width: 992px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .features { grid-template-columns: 1fr; }
}

/* ========================================
   流程
   ======================================== */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 16px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.step-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.step-item p {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .steps { flex-direction: column; gap: 24px; }
    .steps::before { display: none; }
    .step-num { width: 56px; height: 56px; font-size: 20px; }
}

/* ========================================
   App 下载
   ======================================== */
.app-download {
    text-align: center;
    padding: 60px 0;
}

.app-download h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.app-download p {
    color: #94A3B8;
    font-size: 17px;
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.app-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.app-btn .qrcode {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    display: none;
    position: absolute;
    bottom: 100%;
    margin-bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}
.app-btn:hover .qrcode { display: block; }

/* ========================================
   关于我们
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro .text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.about-intro .image {
    background: linear-gradient(135deg, var(--primary-light), #EFF6FF);
    border-radius: var(--radius);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.milestones {
    position: relative;
    padding-left: 40px;
}
.milestones::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.milestone-item {
    position: relative;
    padding: 0 0 36px 36px;
}
.milestone-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.milestone-item .year {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}
.milestone-item .desc {
    font-size: 15px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-intro { grid-template-columns: 1fr; gap: 32px; }
    .about-intro .image { height: 240px; }
}

/* ========================================
   服务页
   ======================================== */
.service-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card .icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

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

.service-card ul {
    list-style: none;
    padding: 0;
}
.service-card ul li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

/* 安全保障 */
.safeties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.safety-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.safety-card .icon { font-size: 36px; margin-bottom: 12px; }
.safety-card h4 { font-size: 16px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.safety-card p { font-size: 14px; color: var(--text-light); }

@media (max-width: 768px) {
    .service-tabs { grid-template-columns: 1fr; }
    .safeties { grid-template-columns: 1fr; }
}

/* ========================================
   联系我们
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

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

.contact-info .item .icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info .item .text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.contact-info .item .text p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.contact-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.contact-form .btn-submit:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: #94A3B8;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.footer-bottom a {
    color: #94A3B8;
}
.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom .beian {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.footer-bottom .beian a {
    display: inline-flex;
    align-items: center;
}
.footer-bottom .beian .beian-icon {
    width: 14px;
    height: auto;
    margin-right: 4px;
}

.footer-bottom .beian .sep {
    margin: 0 4px;
    color: #475569;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   页面内部通用
   ======================================== */
.page-banner {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.65;
    pointer-events: none;
}
.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 17px;
    color: #94A3B8;
    max-width: 500px;
    margin: 0 auto;
}

/* Toast / 提示 */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: #059669; color: #fff; }
.toast.error { background: #DC2626; color: #fff; }

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
