/*
Theme Name: HOPE Vehicle Theme
Theme URI: https://example.com/
Author: HOPE Vehicle
Version: 1.0.0
Description: Custom Theme for HOPE Vehicle
*/

/* ==================== 基础与全局样式 ==================== */
:root {
  --brand-red: #c8102e;
  --brand-red-dark: #9c0c22;
  --nav-blue: #1c4d8c;
  --nav-blue-light: #eaf1fa;
  --navy: #12181f;
  --ink: #1c232b;
  --gray: #5c6670;
  --line: #e6e8eb;
  --bg-soft: #f5f6f7;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==================== 首页 HERO 视频区 ==================== */
.hero { position: relative; background: #000; }
.hero video { width: 100%; height: 440px; object-fit: cover; display: block; }

/* 视觉上移除了视频上的白字标题,但保留一个不可见的 H1(sr-only),
   这样首页仍然有一个语义化、含关键词的主标题,对SEO和屏幕阅读器友好 */

/* ==================== 首页 Section 通用样式 ==================== */
.section { padding: 36px 0; }
.section.alt { background: var(--bg-soft); }

.sec-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.sec-title h3 { font-size: 22px; margin: 0; font-weight: 800; color: var(--navy); }
.sec-title .more { font-size: 13px; font-weight: 700; color: var(--nav-blue); }

/* ==================== 卡片与网格布局 ==================== */
.news-scroll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; scroll-margin-top: 180px; }
.news-card { display: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: .2s; }
.news-card.is-visible { display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-card .body p { margin: 0 0 6px; font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .body time { font-size: 12px; color: var(--gray); }

.grid-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; }
.grid-pagination button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--gray); font-size: 14px; cursor: pointer; transition: .15s; }
.grid-pagination button:hover { border-color: var(--nav-blue); color: var(--nav-blue); }
.grid-pagination button.active { background: var(--nav-blue); border-color: var(--nav-blue); color: #fff; font-weight: 700; }
.grid-pagination button.nav-arrow { border: none; background: none; color: var(--ink); font-size: 18px; }
.grid-pagination button.nav-arrow:disabled { opacity: .3; cursor: default; }

/* ==================== 关于我们与视频介绍 ==================== */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.intro p { color: var(--gray); line-height: 1.85; font-size: 18.5px; }
.intro .countries { font-weight: 700; color: var(--ink); }

.intro-video { position: relative; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.intro-video .yt-thumb { width: 100%; height: 340px; object-fit: cover; display: block; opacity: .92; }
.yt-topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent); color: #fff; font-size: 12.5px; z-index: 2; }
.yt-title { font-weight: 600; max-width: 80%; }
.yt-icons { opacity: .85; letter-spacing: 2px; }
.yt-playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid #fff; color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; z-index: 2; transition: .15s; }
.intro-video:hover .yt-playbtn { background: var(--brand-red); border-color: var(--brand-red); transform: translate(-50%, -50%) scale(1.06); }
.yt-caption { position: absolute; bottom: 34px; left: 16px; color: #fff; font-weight: 700; font-size: 17px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); z-index: 2; }
.yt-progress { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); z-index: 2; }
.yt-progress-track { flex: 1; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 2px; overflow: hidden; }
.yt-progress-fill { width: 12%; height: 100%; background: var(--brand-red); }
.yt-time { color: #fff; font-size: 11.5px; opacity: .9; white-space: nowrap; }
.intro-video video { width: 100%; height: 340px; display: block; background: #000; }
.intro-social-placeholder { display: flex; gap: 12px; margin-top: 18px; }
.intro-social-placeholder a { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: .15s; }
.intro-social-placeholder a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.intro-social-placeholder a img { width: 38px; height: 38px; object-fit: contain; }

/* ==================== 产品网格与评价 ==================== */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: center; background: #fff; }
.product-card img { height: 130px; object-fit: cover; width: 100%; }
.product-card .name { padding: 10px 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.product-card:hover { border-color: var(--nav-blue); }
.product-card:hover .name { color: var(--nav-blue); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; position: relative; }
.review-card::before { content: "\201C"; position: absolute; top: 6px; left: 16px; font-size: 46px; color: var(--brand-red); opacity: .18; font-family: Georgia, serif; }
.review-card h5 { margin: 0 0 4px; font-size: 15px; }
.review-card .meta { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.review-card p { font-size: 13.5px; color: var(--gray); line-height: 1.7; margin: 0; }

.promo-banner { margin: 40px 0; border-radius: 10px; overflow: hidden; position: relative; }
.promo-banner img { width: 100%; height: 190px; object-fit: cover; }
.promo-banner .tag { position: absolute; bottom: 16px; left: 20px; background: var(--nav-blue); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 4px; font-size: 14px; }

/* Latest Videos only: tighter layout, Friends Worldwide stays unchanged */
.section-compact { padding: 30px 0; }
.section-compact .sec-title { margin-bottom: 14px; padding-bottom: 8px; }
.section-compact .sec-title h3 { font-size: 20px; }
.section-compact .news-scroll { gap: 16px; }
.section-compact .news-card img { height: 160px; }
.section-compact .news-card .body { padding: 10px 12px; }
.section-compact .news-card .body p { margin: 0 0 4px; font-size: 14px; line-height: 1.3; }
.section-compact .news-card .body time { font-size: 11px; }
.section-compact .grid-pagination { margin-top: 18px; }
.section-compact .promo-banner { margin: 32px 0; }
.section-compact .promo-banner img { height: 170px; }

@media(max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .news-scroll { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; }
  .mainnav { display: none; }
}
