/* ============================================
   汤头条 TangToutiao - Site Stylesheet
   Domain: kuailanp.com.cn
   ============================================ */

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
a:hover { color: #e53935; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Colors ---------- */
:root {
  --primary: #e53935;
  --primary-dark: #c62828;
  --secondary: #263238;
  --text: #222;
  --text-light: #666;
  --text-lighter: #999;
  --border: #eee;
  --bg: #fafafa;
  --bg-dark: #11151a;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
}
.logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  padding: 8px 16px;
  font-size: .95rem;
  color: #333;
  border-radius: 4px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--primary); background: #fff4f4; }
.site-nav a.active {
  color: var(--primary);
  background: #fff4f4;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.5rem;
  color: #333;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #1a1a2e 0%, #16213e 55%, #e53935 160%);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1574375927938-d5a98e8ffe85?w=1920&q=80");
  background-size: cover;
  background-position: center;
  opacity: .15;
  mix-blend-mode: overlay;
}
.hero .container { position: relative; z-index: 2; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-text { flex: 0 0 55%; }
.hero-text h1 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; }
.hero-text h1 em {
  font-style: normal;
  color: #ffca28;
}
.hero-text .lead {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-visual { flex: 1; }
.hero-visual .mockup {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9/16;
  margin: 0 auto;
  background: #000;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}
.hero-visual .mockup .screen {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background-image: url("https://images.unsplash.com/photo-1611162617213-7d7a39e9b1d7?w=720&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px 20px;
  color: #fff;
}
.hero-visual .mockup .screen span {
  background: rgba(0,0,0,.45);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .8rem;
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-gray { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}
.section-header .tag {
  display: inline-block;
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border-color: #ffcdd2;
}
.feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { color: var(--text-light); font-size: .93rem; margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .stat h3 {
  color: #ffca28;
  font-size: 2.6rem;
  margin-bottom: 6px;
  font-weight: 800;
}
.stats-grid .stat p {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: 0;
}

/* ---------- Banner / CTA ---------- */
.banner {
  position: relative;
  background: #1a1a2e;
  padding: 60px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1536440136628-849c177e76a1?w=1920&q=80");
  background-size: cover;
  background-position: center;
  opacity: .18;
}
.banner .container { position: relative; z-index: 2; }
.banner h2 { color: #fff; margin-bottom: 14px; }
.banner p { color: rgba(255,255,255,.8); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1216;
  color: #b0b6bd;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-col p {
  font-size: .88rem;
  line-height: 1.8;
}
.footer-col ul li {
  margin-bottom: 8px;
  font-size: .88rem;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col .brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col .brand span { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #b0b6bd; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Inner Pages common ---------- */
.page-hero {
  background: linear-gradient(120deg, #1a1a2e 0%, #e53935 160%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: 2rem; }
.breadcrumb { font-size: .9rem; opacity: .85; }
.breadcrumb a:hover { color: #ffca28; }

.content-block {
  padding: 60px 0;
}
.content-block .container {
  max-width: 1100px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }

.block-text h2 { margin-bottom: 14px; }
.block-text p { color: var(--text-light); }
.block-text ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-light);
}
.block-text ul li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.block-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.block-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Content Center ---------- */
.content-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.cat-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
.cat-card .thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.cat-card .info {
  padding: 18px;
}
.cat-card .info h4 { margin-bottom: 6px; font-size: 1.05rem; }
.cat-card .info p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 0;
}
.cat-card .count {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-list .item {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--border);
}
.feature-list .item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-list .item p { color: var(--text-light); font-size: .92rem; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.news-card .thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.news-card .body {
  padding: 22px;
}
.news-card .meta {
  font-size: .8rem;
  color: var(--text-lighter);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.45;
}
.news-card p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdfe3;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  background: #fafafa;
  transition: all .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--text-light); }
.info-list { margin-top: 24px; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.info-list li .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff4f4;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-list li .info strong {
  display: block;
  font-size: .9rem;
  color: #111;
  margin-bottom: 2px;
}
.info-list li .info span {
  font-size: .88rem;
  color: var(--text-light);
}

.map-box {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.map-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  padding: 0 12px;
}
.pagination a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .content-categories { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse > :first-child { order: initial; }
  .two-col.reverse > :last-child  { order: initial; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; padding-top: 30px; }
  .hero-text { flex: none; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 30px; }
  .btn-group { justify-content: center; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,.05);
    transform: translateY(-120%);
    transition: transform .3s ease;
    gap: 4px;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 14px; }
  .hero { padding: 60px 0 50px; }
  .hero-text h1 { font-size: 1.85rem; }
  .section { padding: 55px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-categories { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats-grid .stat h3 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 50px 0; }
  .page-hero h1 { font-size: 1.6rem; }
}

/* ---------- A11y & Performance ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 4px;
  font-size: .85rem;
}
.skip-link:focus { top: 10px; }
