/* ========================================
   湖南鸿晟新能源 - 远程授权经销商官网
   参考吉利商用车官网风格
   ======================================== */

:root {
    --primary: #0066FF;
    --primary-dark: #0052cc;
    --primary-light: #e8f1ff;
    --accent: #00D4AA;
    --dark: #0d1b2a;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg: #ffffff;
    --bg-gray: #f5f7fa;
    --border: #e8ecf1;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
    --container: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 4px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,102,255,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* 板块标题 */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header.left { text-align: left; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* ========================================
   顶部通告栏
   ======================================== */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.7); font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #fff; font-weight: 500; }
.top-bar a:hover { color: var(--accent); }

/* ========================================
   导航栏
   ======================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 1px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 72px; max-width: var(--container); margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.logo-text small { font-size: 12px; color: var(--text-light); }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.btn-phone { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 600; }
.btn-phone:hover { background: var(--primary-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ========================================
   Hero轮播
   ======================================== */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; margin-top: 72px; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; justify-content: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 6s ease; }
.hero-slide.active .hero-img { transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.4) 60%, transparent 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: var(--container); width: 100%; padding: 0 24px; margin: 0 auto; color: #fff; }
.hero-tag { display: inline-block; padding: 6px 16px; background: var(--primary); font-size: 13px; font-weight: 600; border-radius: 4px; margin-bottom: 20px; }
.hero-content h1 { font-size: 52px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 500px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: #fff; width: 30px; border-radius: 5px; }

.scroll-hint { position: absolute; bottom: 40px; right: 40px; z-index: 3; color: rgba(255,255,255,0.6); font-size: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-arrow { width: 1px; height: 30px; background: rgba(255,255,255,0.4); position: relative; }
.scroll-arrow::after { content: ''; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px; border-right: 1px solid rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.4); transform: rotate(45deg); }

/* ========================================
   数据统计
   ======================================== */
.stats-section { background: var(--primary); padding: 60px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-box { color: #fff; position: relative; }
.stat-box:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 50px; background: rgba(255,255,255,0.2); }
.stat-num, .stat-num-suffix { display: inline; font-size: 44px; font-weight: 800; line-height: 1; }
.stat-num-suffix { font-size: 20px; font-weight: 600; margin-left: 2px; }
.stat-label { font-size: 14px; margin-top: 8px; opacity: 0.85; }

/* ========================================
   车型中心
   ======================================== */
.products-section { padding: 100px 0; background: var(--bg); }

.product-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 28px; border: 1px solid var(--border); background: #fff; border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

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

.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-featured { border: 2px solid var(--primary); }

.product-img { height: 200px; overflow: hidden; background: var(--bg-gray); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }

.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.badge-new { display: inline-block; padding: 2px 8px; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; }
.product-slogan { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-tags span { padding: 3px 10px; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 600; border-radius: 50px; }
.btn-product { display: inline-block; padding: 8px 20px; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 13px; font-weight: 600; }
.btn-product:hover { background: var(--primary); color: #fff; }

/* ========================================
   服务支持
   ======================================== */
.services-section { padding: 100px 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { display: block; padding: 40px 28px; background: var(--bg); border-radius: var(--radius-lg); text-align: center; transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.service-link { font-size: 14px; font-weight: 600; color: var(--primary); }
.service-card:hover .service-link { color: var(--primary-dark); }

/* ========================================
   关于我们
   ======================================== */
.about-section { padding: 100px 0; background: var(--bg-gray); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-content strong { color: var(--primary); }
.about-features { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.af-item { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--dark); }
.af-icon { color: var(--accent); font-size: 18px; }

/* ========================================
   新闻资讯
   ======================================== */
.news-section { padding: 100px 0; background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-body { padding: 24px; }
.news-meta { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.news-body h3 { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--dark); }
.news-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.news-more { font-size: 14px; font-weight: 600; color: var(--primary); }
.news-more:hover { color: var(--primary-dark); }

/* ========================================
   联系我们
   ======================================== */
.contact-section { padding: 100px 0; background: var(--bg-gray); }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.contact-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: var(--transition); }
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card:nth-child(3) { grid-column: span 2; }
.contact-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.contact-person { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.contact-person:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.c-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.c-role { font-size: 12px; color: var(--text-light); margin-left: 6px; }
.c-tel { display: block; font-size: 18px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.c-tel:hover { color: var(--primary-dark); }
.contact-addr { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
.contact-note { font-size: 13px; color: var(--text-light); }
.contact-card > p { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }

.contact-side { display: flex; align-items: stretch; }
.qr-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-lg); padding: 36px; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; box-shadow: var(--shadow-lg); }
.qr-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.qr-img { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-box p { font-size: 14px; opacity: 0.9; line-height: 1.6; }

/* ========================================
   页脚
   ======================================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.footer-logo strong { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.footer-logo small { display: block; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { transition: var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom p { margin-bottom: 4px; }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-main { grid-template-columns: 1fr; }
    .contact-card:nth-child(3) { grid-column: span 1; }
    .contact-side { justify-content: center; }
    .qr-box { max-width: 400px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .hero-content h1 { font-size: 40px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-box:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .navbar { top: 0; }
    .hero { margin-top: 64px; min-height: 500px; }
    .nav-container { height: 64px; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: #fff; flex-direction: column; padding: 80px 30px 30px; gap: 0; transition: var(--transition); box-shadow: -5px 0 30px rgba(0,0,0,0.1); z-index: 1001; }
    .nav-menu.active { right: 0; }
    .nav-link { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); display: block; }
    .nav-link::after { display: none; }
    .hamburger { display: flex; z-index: 1002; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav-actions { display: none; }

    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 15px; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .scroll-hint { display: none; }

    .section-title { font-size: 28px; }
    .product-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-box::after { display: none !important; }
    .stat-num { font-size: 32px; }

    .products-section, .services-section, .about-section, .news-section, .contact-section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-brand p { max-width: 100%; }
    .product-tabs { gap: 6px; }
    .tab-btn { padding: 8px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 26px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 26px; }
    .section-title { font-size: 24px; }
    .qr-img { width: 140px; height: 140px; }
}
