/* ===========================================================
 * 快猫短视频 kuaigalian.com.cn  —— 公共样式
 * 原生手写 CSS，语义化命名，PC + 移动端自适应
 * 主色：橙红主题 (#ff5722) + 深灰文本 + 浅灰背景
 * =========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: #202124;
  background-color: #f6f7f9;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #202124;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
a:hover { color: #e64a19; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; color: #444; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.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;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #e64a19;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg,#ff7043,#ff5722);
  color: #fff;
  font-weight: 800;
  font-style: italic;
}
.site-nav ul {
  display: flex;
  gap: .5rem;
}
.site-nav a {
  padding: .5rem .9rem;
  border-radius: 6px;
  font-size: .95rem;
  color: #333;
}
.site-nav a:hover,
.site-nav a.current {
  background: #fff3ee;
  color: #e64a19;
}
.toggle-btn {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg,#ff7043 0%,#ff5722 55%,#e64a19 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem,4vw,2.8rem);
  color: #fff;
  margin-bottom: 1rem;
}
.hero p {
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  max-width: 620px;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #fff;
  color: #e64a19;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* ---------- Sections ---------- */
.section {
  padding: 3.2rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  color: #111;
  margin-bottom: .5rem;
}
.section-title .sub {
  color: #666;
  font-size: .98rem;
}
.lead {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #444;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}
.card-body {
  padding: 1.25rem;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.card p {
  font-size: .92rem;
  color: #555;
  margin-bottom: 0;
}

/* ---------- Features (icon rows) ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.feature {
  display: flex;
  gap: 1rem;
}
.feature-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff3ee;
  color: #e64a19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.feature h4 { margin-bottom: .3rem; }

/* ---------- Stats ---------- */
.stats {
  background: #1a1a1a;
  color: #fff;
  padding: 2.8rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stats-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: #ff8a65;
}
.stats-item .label {
  font-size: .88rem;
  color: #bbb;
  margin-top: .2rem;
}

/* ---------- Content blocks ---------- */
.article {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.article h2, .article h3 { margin-bottom: .7rem; }
.article p  { margin-bottom: 1rem; }
.article ul {
  list-style: disc inside;
  color: #444;
  margin-bottom: 1rem;
  padding-left: .5rem;
}

/* ---------- News list ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.news-item img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-item h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.news-item .meta {
  font-size: .82rem;
  color: #888;
  margin-bottom: .3rem;
}

/* ---------- Forms ---------- */
.form {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #333;
}
.form-control {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255,87,34,.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Contact info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-map {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contact-map h3 { margin-bottom: .8rem; }
.contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
}
.contact-info {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contact-info .row {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.contact-info .ico {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff3ee;
  color: #e64a19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2.5rem 0 1.25rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer .brand {
  color: #ff8a65;
  margin-bottom: .6rem;
}
.site-footer p,
.site-footer li,
.site-footer a {
  color: #bbb;
  font-size: .9rem;
}
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: #fff;
  margin-bottom: .7rem;
  font-size: 1rem;
}
.site-footer ul li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: #888;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: .88rem;
  color: #777;
}
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: #e64a19; }
.breadcrumb span { margin: 0 .35rem; color: #aaa; }

/* ---------- Top bar ---------- */
.topbar {
  background: #fafafa;
  font-size: .82rem;
  color: #666;
  border-bottom: 1px solid #eee;
  padding: .35rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-media { max-width: 520px; margin: 0 auto; }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    display: none;
    padding: .8rem 1rem;
    border-top: 1px solid #eee;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav a { display: block; padding: .65rem .8rem; }
  .toggle-btn { display: inline-flex; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.4rem; }
  .section { padding: 2.2rem 0; }
  .article { padding: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero-actions { justify-content: center; }
}
