/**
 * SYHUO 白色清爽主题样式
 * 版本: 2.0 (重构版)
 * 特点: 白色主题、简洁现代、编码UTF-8无BOM
 */

/* ================================
   基础样式
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* 防闪烁：滚动条预留空间 */
html {
    scrollbar-gutter: stable;
    /* 防止页面加载时跳动 */
    overflow-y: scroll;
}

/* 防止图片加载时布局偏移 */
img {
    max-width: 100%;
    height: auto;
}

.page-wrapper {
    min-height: 100vh;
    background: #ffffff;
}

/* ================================
   导航栏样式
   ================================ */

/* 导航栏固定高度，防止加载时跳动 */
.navbar {
    background: #ffffff !important;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid #ff6700;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}

.navbar.scrolled {
    background: #ffffff !important;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 小屏幕时导航栏高度自适应，防止内容被覆盖 */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 60px;
        max-height: none;
        position: relative;
    }
    .navbar-content {
        flex-direction: column;
        height: auto;
        padding: 10px 5px;
    }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5px;
    height: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 380px;
    min-width: 380px;
    justify-content: flex-start;
}

.logo {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    /* 防止图片加载时闪烁 */
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo i {
    color: #ff6700;
    margin-right: 12px;
    font-size: 1.8rem;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0px;
    line-height: 1.2;
}

.current-city {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.current-city i {
    color: #ff6700;
}

.city-name {
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    justify-content: center;
    flex: 1;
    padding: 0 30px;
    min-width: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ff6700;
    background-color: rgba(255, 103, 0, 0.1);
}

.nav-links a.active {
    color: #ff6700;
    font-weight: 600;
}

.nav-links li {
    position: relative;
}

.nav-links li::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: #999;
}

.nav-links li:last-child::after {
    display: none;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
    padding-right: 0;
    width: 160px;
    min-width: 160px;
    justify-content: flex-end;
}

.user-actions .btn-auth {
    background: #ff6700 !important;
    color: #fff !important;
    border: 2px solid #ff6700 !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    min-width: 70px;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 34px;
    line-height: 1;
    box-sizing: border-box;
}

.user-actions .btn-auth:hover {
    background: #e55d00 !important;
    border-color: #e55d00 !important;
    transform: translateY(-1px);
}

.user-actions .btn-auth i {
    font-size: 12px;
}

/* 汉堡菜单按钮 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================================
   分类导航区域 (8个车型分类)
   ================================ */
.category-nav-section {
    background: #ffffff;
    padding: 20px;
    border-bottom: none;
}

.category-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

/* 悬停效果 */
.category-nav-item:hover {
    background: #ff6700;
    color: #ffffff;
    border-color: #ff6700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
}

.category-nav-item:active {
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .category-nav-section {
        padding: 15px 10px;
    }
    
    .category-nav-container {
        gap: 8px;
    }
    
    .category-nav-item {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-nav-container {
        gap: 6px;
    }
    
    .category-nav-item {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ================================
   Hero 区域
   ================================ */
.hero-section {
    background: #ffffff;
    color: #333333;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 16px;
    color: #ff6700;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 14px;
    opacity: 1;
    font-weight: normal;
    color: #666666;
}

/* ================================
   快速下单区域
   ================================ */
.quick-order {
    background: #f5f5f5;
    padding: 40px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.quick-order-container {
    max-width: 1000px;
    margin: 0 auto;
}

.quick-order-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.quick-order-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quick-order-field {
    flex: 1;
    position: relative;
}

.quick-order-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6700;
    font-size: 18px;
}

.quick-order-field input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f5f5f5;
}

.quick-order-field input:focus {
    outline: none;
    border-color: #ff6700;
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
    background: #ffffff;
}

.quick-order-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.quick-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.quick-order-hint {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* ================================
   车型展示区域
   ================================ */
.vehicles-showcase {
    padding: 60px 20px;
    background: #ffffff;
}

.vehicles-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.vs-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #333333;
}

.vs-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 40px;
}

.vs-cards-wrapper {
    position: relative;
    overflow: hidden;
}

.vs-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.vs-cards::-webkit-scrollbar {
    height: 8px;
}

.vs-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.vs-cards::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.vs-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* ================================
   服务模块区域
   ================================ */
.services-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 103, 0, 0.15);
    border-color: #ff6700;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #ff6700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    color: #6c757d;
    font-size: 14px;
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .quick-order-inputs {
        flex-direction: column;
    }

    .quick-order-btn {
        width: 100%;
    }

    .vs-title,
    .services-title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 18px;
    }

    .quick-order-form {
        padding: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }
}
