/* 中国汽车网 didiche.com —— 汽车用品导购返利站 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #23272e; background: #f5f6f8; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶栏 ===== */
.topbar { background: #1a2942; color: #c7d2e6; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.topbar a { color: #c7d2e6; }
.topbar a:hover { color: #fff; }

/* ===== 头部/导航 ===== */
header { background: #22335a; box-shadow: 0 2px 8px rgba(0,0,0,.12); position: sticky; top: 0; z-index: 50; }
header .wrap { display: flex; align-items: center; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 1px; }
.logo .mark { width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg,#ff7a18,#ffb347); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.logo small { display: block; font-size: 11px; color: #9fb0d0; font-weight: 400; letter-spacing: 2px; }
nav { margin-left: auto; display: flex; gap: 6px; }
nav a { color: #d6deec; padding: 8px 16px; border-radius: 7px; font-size: 15px; transition: .15s; }
nav a:hover, nav a.active { background: #ff7a18; color: #fff; }

/* ===== Banner ===== */
.hero { background: linear-gradient(120deg,#22335a 0%,#2e4a7d 60%,#3a6ea5 100%); color: #fff; padding: 46px 0 40px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero h1 .hl { color: #ffce54; }
.hero p { font-size: 16px; color: #d6e2f3; max-width: 680px; }
.hero .tags { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 15px; border-radius: 20px; font-size: 14px; }

/* ===== 分类条 ===== */
.cats { background: #fff; border-bottom: 1px solid #eceef1; }
.cats .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.cats a { padding: 8px 16px; background: #f1f3f6; border-radius: 20px; font-size: 14px; color: #4a5468; transition: .15s; }
.cats a:hover { background: #ff7a18; color: #fff; }

/* ===== 区块标题 ===== */
.sec { padding: 34px 0; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; color: #1a2942; }
.sec-head .en { color: #b7bfca; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.sec-head .more { margin-left: auto; font-size: 14px; color: #ff7a18; }

/* ===== 商品网格 ===== */
.grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(20,30,50,.06);
  transition: .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(20,30,50,.14); }
.card .thumb { height: 168px; display: flex; align-items: center; justify-content: center; font-size: 58px; position: relative; }
.card .thumb .shop { position: absolute; left: 10px; top: 10px; font-size: 11px; color: #fff;
  background: rgba(0,0,0,.32); padding: 3px 8px; border-radius: 5px; }
.card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.card .title { font-size: 14px; color: #2b3240; height: 44px; overflow: hidden; margin-bottom: 8px; }
.card .coupon { display: inline-block; background: #fff2e8; color: #ff5a1f; border: 1px dashed #ff8c4a;
  font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; align-self: flex-start; }
.card .price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card .price .now { color: #ff3b2f; font-size: 21px; font-weight: 700; }
.card .price .now i { font-size: 13px; font-style: normal; }
.card .price .old { color: #9aa3af; font-size: 13px; text-decoration: line-through; }
.card .buy { margin-top: 11px; display: block; text-align: center; background: linear-gradient(90deg,#ff7a18,#ff5a1f);
  color: #fff; padding: 9px 0; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .15s; }
.card .buy:hover { filter: brightness(1.06); }

/* ===== 为什么选我们 ===== */
.why { background: #fff; }
.why .grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why .item { text-align: center; padding: 24px 16px; }
.why .item .ic { font-size: 40px; margin-bottom: 10px; }
.why .item h3 { font-size: 18px; color: #1a2942; margin-bottom: 6px; }
.why .item p { color: #6b7280; font-size: 14px; }

/* ===== 关于/通用正文 ===== */
.prose { background: #fff; border-radius: 12px; padding: 30px 34px; box-shadow: 0 1px 4px rgba(20,30,50,.06); }
.prose h2 { color: #1a2942; font-size: 22px; margin: 4px 0 14px; }
.prose h3 { color: #22335a; font-size: 17px; margin: 22px 0 8px; }
.prose p { color: #44505f; margin-bottom: 12px; }
.prose ul { margin: 0 0 14px 22px; color: #44505f; }
.prose li { margin-bottom: 6px; }
.contact-box { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 10px; }
.contact-box div { background: #f7f8fa; border-radius: 9px; padding: 14px 16px; font-size: 14px; }
.contact-box b { color: #22335a; }

/* ===== 页脚 ===== */
footer { background: #16213a; color: #93a1bd; font-size: 13px; margin-top: 36px; }
footer .wrap { padding: 28px 16px 22px; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
footer .links a:hover { color: #fff; }
footer .disc { color: #6b7896; line-height: 1.8; border-top: 1px solid #24314f; padding-top: 14px; }
footer .beian { margin-top: 10px; }
footer .beian a { color: #93a1bd; }
footer .beian a:hover { color: #fff; }

/* ===== 缩略图配色(无图床,渐变占位) ===== */
.t1{background:linear-gradient(135deg,#e8f0fe,#c3d7f7)} .t2{background:linear-gradient(135deg,#fff1e6,#ffd9b8)}
.t3{background:linear-gradient(135deg,#e9f7ef,#c3ecd4)} .t4{background:linear-gradient(135deg,#fde8ee,#f9c6d6)}
.t5{background:linear-gradient(135deg,#ede9fe,#cfc3f7)} .t6{background:linear-gradient(135deg,#e6f6fb,#bfe7f2)}

@media (max-width: 900px){
  .grid{grid-template-columns:repeat(2,1fr)} .why .grid3{grid-template-columns:1fr}
  .contact-box{grid-template-columns:1fr} nav{display:none}
  .hero h1{font-size:26px}
}
