/* ============================================
   陝西京成二手车官网 - 全局样式
   主色：深灰/炭黑 #1a1a1a, #2d2d2d
   金属银：#c0c0c0, #e0e0e0
   点缀红：#d32f2f, #b71c1c
   ============================================ */

:root {
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --card-bg: #252525;
  --silver: #c0c0c0;
  --silver-light: #e0e0e0;
  --white: #ffffff;
  --accent-red: #d32f2f;
  --accent-red-dark: #b71c1c;
  --text-gray: #aaaaaa;
  --border-gray: #444444;
  --success: #4caf50;
}

* {
  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;
  background-color: var(--primary-dark);
  color: var(--silver-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.car-img img,
.store-img img,
.founder-img img,
.case-img img,
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.section-title {
  font-size: 2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  background: rgba(211, 47, 47, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(211, 47, 47, 0.3);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gray);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-red);
}

.logo small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-gray);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: -4px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--silver-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-red);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ============================================
   页脚
   ============================================ */

.footer {
  background: #111111;
  border-top: 1px solid var(--border-gray);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-contact p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .label {
  color: var(--silver);
  font-weight: 600;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: #666;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: var(--silver);
}

/* ============================================
   首页 - Banner
   ============================================ */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::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 100 100"><circle cx="50" cy="50" r="1" fill="%23444" opacity="0.3"/></svg>');
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-red);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--silver);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-trust-item {
  text-align: center;
}

.hero-trust-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-red);
}

.hero-trust-item .txt {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ============================================
   首页 - 为什么选京成
   ============================================ */

.section {
  padding: 80px 0;
}

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

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

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 35px 30px;
  transition: all 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   首页 - 精品车源推荐
   ============================================ */

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

.car-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.car-img,
.store-img,
.founder-img,
.case-img,
.about-img {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.car-img::before,
.store-img::before,
.founder-img::before,
.case-img::before,
.about-img::before {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.4;
  line-height: 1;
}

.car-img::before { content: '\1F697'; }      /* 🚗 */
.store-img::before { content: '\1F3E2'; }    /* 🏢 */
.founder-img::before { content: '\1F464'; }  /* 👤 */
.case-img::before { content: '\1F389'; }     /* 🎉 */
.about-img::before { content: '\1F3E2'; }    /* 🏢 */

.car-img .placeholder-text,
.store-img .placeholder-text,
.founder-img .placeholder-text,
.case-img .placeholder-text,
.about-img .placeholder-text {
  position: relative;
  z-index: 1;
  padding: 0 15px;
  line-height: 1.6;
}

.car-img {
  width: 100%;
  height: 200px;
}

.car-body {
  padding: 20px;
}

.car-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.car-meta span {
  font-size: 0.8rem;
  color: var(--text-gray);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 4px;
}

.car-tags {
  margin-bottom: 15px;
}

.car-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-red);
}

.car-price small {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 400;
}

/* ============================================
   首页 - 五大保障
   ============================================ */

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
}

.guarantee-card:hover {
  border-color: var(--accent-red);
}

.guarantee-icon {
  width: 56px;
  height: 56px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 15px;
}

.guarantee-card h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.guarantee-card p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   门店展示
   ============================================ */

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.store-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
}

.store-img {
  height: 220px;
}

.store-info {
  padding: 25px;
}

.store-info h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.store-info p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.store-info .tag {
  margin-top: 5px;
}

/* ============================================
   精品车源页 - 筛选
   ============================================ */

.filter-bar {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  color: var(--silver);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-gray);
  background: transparent;
  color: var(--text-gray);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--white);
}

/* ============================================
   服务保障页
   ============================================ */

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 35px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent-red);
}

.service-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-red);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 10px;
}

.service-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-gray);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 14%;
}

.process-step .step-num {
  width: 50px;
  height: 50px;
  background: var(--secondary-dark);
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-weight: 700;
  margin: 0 auto 12px;
}

.process-step p {
  color: var(--silver-light);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   关于我们页
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.about-img {
  height: 380px;
  border-radius: 8px;
}

.about-content h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-content .highlight {
  color: var(--accent-red);
  font-weight: 700;
}

.founder-section {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.founder-img {
  height: 320px;
  border-radius: 8px;
}

.founder-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.founder-info .role {
  color: var(--accent-red);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: block;
}

.founder-info p {
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 12px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.philosophy-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
}

.philosophy-card h4 {
  color: var(--white);
  margin-bottom: 10px;
}

.philosophy-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ============================================
   客户评价页
   ============================================ */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s;
}

.review-card:hover {
  border-color: var(--accent-red);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-name {
  color: var(--white);
  font-weight: 700;
}

.review-date {
  color: var(--text-gray);
  font-size: 0.8rem;
}

.review-car {
  color: var(--accent-red);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.review-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.review-stars {
  color: #ffc107;
  font-size: 1rem;
}

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

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
}

.case-img {
  height: 200px;
}

.case-info {
  padding: 20px;
}

.case-info h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.case-info p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   联系我们页
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 35px;
}

.contact-info-box h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.contact-detail .phone-big {
  font-size: 1.3rem;
  color: var(--accent-red);
  font-weight: 800;
}

.map-box {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  margin-top: 30px;
}

.form-box {
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 35px;
}

.form-box h3 {
  color: var(--white);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--silver);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ============================================
   静态页面（隐私政策等）
   ============================================ */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 50px;
}

.legal-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.legal-content h3 {
  color: var(--silver-light);
  margin: 30px 0 12px;
}

.legal-content p {
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 992px) {
  .why-grid,
  .cars-grid,
  .review-grid,
  .case-grid,
  .guarantee-grid,
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-hero,
  .founder-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 20px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border-bottom: 1px solid var(--border-gray);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: var(--silver-light);
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #333;
  }

  .mobile-menu a.active {
    color: var(--accent-red);
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .why-grid,
  .cars-grid,
  .review-grid,
  .case-grid,
  .guarantee-grid,
  .philosophy-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .founder-section {
    padding: 25px;
  }

  .founder-img {
    height: 260px;
  }

  .process-step {
    width: 45%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-options {
    gap: 6px;
  }

  .filter-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}
