/* ==========================================
   LIONLORD TYRES - 网站样式
   品牌色：深蓝 #0a2e5c + 金黄 #f0a500 + 橙色 #e85d04
   ========================================== */

:root {
  --navy: #0a2e5c;
  --navy-dark: #061d3d;
  --gold: #f0a500;
  --orange: #e85d04;
  --light: #f5f5f5;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --whatsapp: #25d366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background: var(--white);
}

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

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

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

/* ========== 顶部导航 ========== */
.navbar {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
}

.logo .logo-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  font-size: 15px;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* ========== Hero 轮播 ========== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slides {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  flex: 0 0 100%;
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,29,61,0.92) 0%, rgba(10,46,92,0.65) 55%, rgba(10,46,92,0.25) 100%);
  z-index: 0;
}

.hero-slide-1 {
  background-color: #0a2e5c;
  background-image: url('../images/brand/hero-1.jpg');
}
.hero-slide-2 {
  background-color: #1a1a1a;
  background-image: url('../images/brand/hero-2.jpg');
}
.hero-slide-3 {
  background-color: #1d4019;
  background-image: url('../images/brand/hero-3.jpg');
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 0;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-slide h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.hero-slide h1 .accent { color: var(--gold); }

.hero-slide p {
  margin: 22px 0 32px;
  font-size: 18px;
  opacity: 0.95;
  max-width: 560px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Carousel controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(6px);
}

.hero-arrow:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.3s;
  padding: 0;
}

.hero-dot.active { background: var(--gold); width: 56px; }

/* ========== Find by Size ========== */
.size-finder {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
  border-bottom: 4px solid var(--gold);
}

.size-finder-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.size-finder-text h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.size-finder-text p {
  opacity: 0.8;
  font-size: 14px;
}

.size-finder-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-field { display: flex; flex-direction: column; }

.sf-field label {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sf-field select {
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  min-width: 80px;
  cursor: pointer;
}

.sf-sep {
  align-self: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}

/* ========== Application Cards ========== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 200px;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  z-index: 0;
}

.app-card > * { position: relative; z-index: 1; }

.app-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

.app-long-haul  { background: linear-gradient(135deg, #0a2e5c, #1e5fa8); }
.app-heavy-load { background: linear-gradient(135deg, #4a2c00, #e85d04); }
.app-plantation { background: linear-gradient(135deg, #1d4019, #4a7c1d); }
.app-regional   { background: linear-gradient(135deg, #2c1e5a, #6b46c1); }

.app-icon { font-size: 40px; margin-bottom: 12px; }

.app-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.app-card p {
  font-size: 13.5px;
  opacity: 0.92;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.app-arrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 12px;
}

/* ========== Professional Tips ========== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.tip-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tip-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 10px;
}

.tip-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.tip-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
}

/* ========== 区块 ========== */
.section { padding: 70px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--light); }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 800;
}

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

.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ========== 卖点卡片 ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 30px 22px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-6px); }

.feature-card .icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.feature-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray);
  font-size: 14px;
}

/* ========== 产品列表（左图右文，手机省空间）========== */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.product-row .row-image {
  aspect-ratio: 1 / 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-row .row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row .row-image.placeholder {
  font-size: 48px;
  color: var(--gray-light);
  background: linear-gradient(135deg, #f0f0f0, #fafafa);
}

.product-row .row-body {
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-row .row-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-row h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.25;
}

.product-row .row-size {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.product-row .row-scenario {
  color: #444;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-row .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-row .row-actions .btn {
  padding: 7px 14px;
  font-size: 12.5px;
}

/* 产品网格（首页主打仍用网格）*/
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image.placeholder {
  font-size: 64px;
  color: var(--gray-light);
  background: linear-gradient(135deg, #f0f0f0, #fafafa);
}

.product-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
  text-transform: uppercase;
}

.product-card h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.product-card .specs {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  text-align: center;
}

.btn-view {
  background: var(--navy);
  color: var(--white);
}

/* ========== 筛选/搜索 ========== */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 14px;
}

.search-box:focus { outline: 2px solid var(--gold); border-color: transparent; }

.filter-chip {
  padding: 8px 18px;
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.filter-chip:hover { border-color: var(--navy); }

.filter-chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========== 产品详情 ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-image {
  background: var(--light);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.detail-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
  color: var(--navy);
  font-size: 32px;
  margin-bottom: 8px;
}

.detail-info .detail-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.detail-info > p { color: var(--gray); margin-bottom: 24px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
}

.spec-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  width: 40%;
}

.spec-table tr:last-child td,
.spec-table tr:last-child th { border-bottom: none; }

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

.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.contact-card h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-item .ico { font-size: 20px; min-width: 24px; }

/* ========== 浮动 WhatsApp 按钮 ========== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 99;
  transition: transform 0.2s;
}

.float-whatsapp:hover { transform: scale(1.1); }

/* ========== 页脚 ========== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
  text-align: center;
  font-size: 14px;
}

.footer .logo { justify-content: center; margin-bottom: 10px; }

.footer p { margin-bottom: 6px; }

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  padding-top: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* ========== 响应式（手机端）========== */
@media (max-width: 768px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .hero-slide { min-height: 420px; }
  .hero-inner { padding: 60px 0; }
  .hero-arrow { width: 38px; height: 38px; font-size: 18px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .hero-dot { width: 26px; }
  .hero-dot.active { width: 40px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .product-detail,
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card h3 { font-size: 14px; }
  .size-finder-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .size-finder-text { text-align: center; }
  .size-finder-form { justify-content: center; }
  .sf-field select { min-width: 70px; padding: 8px 10px; font-size: 14px; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-card { padding: 20px 16px; min-height: 170px; }
  .app-card h3 { font-size: 16px; }
  .app-card p { font-size: 12.5px; }
  .product-row { grid-template-columns: 110px 1fr; gap: 12px; }
  .product-row .row-body { padding: 12px 14px 12px 0; }
  .product-row h3 { font-size: 15px; }
  .product-row .row-scenario { font-size: 12px; -webkit-line-clamp: 3; }
  .float-whatsapp { width: 54px; height: 54px; font-size: 26px; bottom: 16px; right: 16px; }
}

@media (max-width: 420px) {
  .nav-links { width: 100%; justify-content: space-around; gap: 8px; }
  .logo { font-size: 18px; }
}
