/* ========================================
   汉耀车佣官网 - 优化版样式表
   包含：响应式设计、无障碍支持、性能优化
   ======================================== */

/* CSS变量定义 */
:root {
    --primary: #0A1628;
    --primary-light: #1a2744;
    --accent: #3B82F6;
    --accent-glow: #60A5FA;
    --accent-orange: #F59E0B;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --bg-card: #0F2744;
    --bg-card-hover: #142d4c;
    --border: rgba(59, 130, 246, 0.2);
    --gradient-hero: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 无障碍访问 - 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* 屏幕阅读器专用类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* ========================================
   头部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

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

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 500;
}

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

.main-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--gradient-accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.nav-btn::after {
    display: none;
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero区域
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-glow);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.title-main {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-desc .highlight {
    color: var(--accent-orange);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-main:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
}

.btn-ghost:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-glow);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #0A1628;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid var(--border);
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255,255,255,0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   功能区域
   ======================================== */
.features-section {
    padding: 100px 0;
    background: var(--primary);
}

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

.section-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

.feature-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 28px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   工作流程区域
   ======================================== */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.demo-content .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin-top: 32px;
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.workflow-num {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-glow);
    flex-shrink: 0;
}

.workflow-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.workflow-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.demo-visual {
    display: flex;
    justify-content: center;
}

.demo-screens {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.demo-screen {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.demo-screen.main {
    width: 100%;
}

.demo-screen.sub {
    position: absolute;
    bottom: -40px;
    right: -60px;
    width: 160px;
    border: 1px solid var(--border);
}

.demo-screen img {
    width: 100%;
    display: block;
}

/* ========================================
   用户评价区域
   ======================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all var(--transition-normal);
}

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

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

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info {
    flex: 1;
}

.author-info cite {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-rating {
    font-size: 14px;
    letter-spacing: 2px;
}

/* ========================================
   FAQ区域
   ======================================== */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    font-size: 24px;
    color: var(--accent);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ========================================
   下载区域
   ======================================== */
.download-section {
    padding: 80px 0;
}

.download-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.download-qr {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    flex-shrink: 0;
}

.download-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-info > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.download-steps {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* ========================================
   联系区域
   ======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--primary-light);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-list {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--text-muted);
    font-size: 14px;
}

.contact-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 24px 0;
    background: var(--primary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo-visual {
        order: -1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .title-main {
        font-size: 32px;
    }
    
    .title-sub {
        font-size: 24px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }
    
    .download-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .title-sub {
        font-size: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-main,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .header,
    .hero-bg-pattern,
    .phone-glow,
    .feature-card-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}

/* ========================================
   减少动画偏好支持
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
