:root {
  --ya-red: #fc3f1d;
  --ya-red-dark: #d6320f;
  --ya-yellow: #ffdb4d;
  --ya-yellow-dark: #fc0;
  --ya-black: #000;
  --ya-text: #21201f;
  --ya-gray: #999691;
  --ya-gray-light: #f5f4f2;
  --ya-border: #e7e5e1;
  --ya-link: #04b;
  --ya-white: #fff;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --font: "YS Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ya-text);
  background: var(--ya-white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--ya-link); text-decoration: none; }
a:hover { color: var(--ya-red); }

img { max-width: 100%; }

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

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--ya-border);
  background: var(--ya-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ya-black);
}
.logo:hover { color: var(--ya-black); }
.logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--ya-red);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--ya-text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: background .15s;
}
.main-nav a:hover { background: var(--ya-gray-light); color: var(--ya-text); }
.main-nav a.active { background: var(--ya-gray-light); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ya-text);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
  padding: 56px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ya-black);
}
.hero h1 .accent { color: var(--ya-red); }

.hero .hero-sub {
  margin: 12px auto 32px;
  color: var(--ya-gray);
  font-size: 17px;
  max-width: 640px;
}

/* Tabs */
.hero-tabs {
  display: inline-flex;
  background: var(--ya-gray-light);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
}
.hero-tab {
  border: none;
  background: transparent;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--ya-gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.hero-tab.active {
  background: var(--ya-white);
  color: var(--ya-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.hero-tab .flag { margin-right: 6px; }

/* Search box */
.search-box {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  border: 2px solid var(--ya-yellow-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ya-white);
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 17px;
  font-family: var(--font);
  color: var(--ya-text);
}
.search-box input::placeholder { color: var(--ya-gray); }
.search-box button {
  border: none;
  background: var(--ya-yellow-dark);
  color: var(--ya-black);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  padding: 0 32px;
  cursor: pointer;
  transition: background .15s;
}
.search-box button:hover { background: var(--ya-yellow); }

.search-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ya-gray);
}

/* Entry buttons */
.entry-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.entry-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.entry-btn.primary {
  background: var(--ya-red);
  color: var(--ya-white);
}
.entry-btn.primary:hover { background: var(--ya-red-dark); color: var(--ya-white); }
.entry-btn.secondary {
  background: var(--ya-white);
  color: var(--ya-text);
  border: 2px solid var(--ya-border);
}
.entry-btn.secondary:hover { border-color: var(--ya-red); color: var(--ya-red); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section.alt { background: var(--ya-gray-light); }

.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--ya-black);
  margin-bottom: 8px;
}
.section-desc {
  text-align: center;
  color: var(--ya-gray);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--ya-white);
  border: 1px solid var(--ya-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ya-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--ya-black); }
.card p { font-size: 14.5px; color: #555; }
.card a.more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Compare table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ya-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ya-border);
  font-size: 15px;
}
.compare-table th {
  background: var(--ya-black);
  color: var(--ya-white);
  font-weight: 700;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--ya-black); }
.compare-table tbody tr:hover { background: #fffbe8; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--ya-white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--ya-border);
  position: relative;
}
.step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ya-red);
  color: var(--ya-white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: #555; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--ya-white);
  border: 1px solid var(--ya-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ya-red);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 16px; color: #555; font-size: 14.5px; }

/* CTA */
.cta-band {
  background: var(--ya-red);
  color: var(--ya-white);
  text-align: center;
  padding: 48px 20px;
}
.cta-band h2 { font-size: 26px; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }
.cta-band .entry-btn.light {
  background: var(--ya-white);
  color: var(--ya-red);
}
.cta-band .entry-btn.outline {
  border: 2px solid rgba(255, 255, 255, .7);
  color: var(--ya-white);
}
.cta-band .entry-btn.outline:hover { background: rgba(255, 255, 255, .12); }

/* ===== Article / inner pages ===== */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
  padding: 44px 0;
  border-bottom: 1px solid var(--ya-border);
}
.page-hero h1 { font-size: 32px; font-weight: 800; color: var(--ya-black); }
.page-hero .breadcrumb { font-size: 13px; color: var(--ya-gray); margin-bottom: 10px; }
.page-hero .breadcrumb a { color: var(--ya-gray); }
.page-hero .breadcrumb a:hover { color: var(--ya-red); }
.page-hero .page-sub { color: var(--ya-gray); margin-top: 8px; max-width: 760px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 44px 0 64px;
}

.article h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--ya-black);
  padding-left: 14px;
  border-left: 4px solid var(--ya-red);
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 24px 0 10px; color: var(--ya-black); }
.article p { margin-bottom: 14px; color: #333; }
.article ul, .article ol { margin: 0 0 14px 22px; color: #333; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ya-black); }
.article .tip {
  background: #fffbe8;
  border: 1px solid var(--ya-yellow-dark);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14.5px;
}
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.article table th, .article table td { border: 1px solid var(--ya-border); padding: 10px 14px; text-align: left; }
.article table th { background: var(--ya-gray-light); }

.sidebar .side-card {
  background: var(--ya-gray-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar .side-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--ya-black); }
.sidebar .side-card ul { list-style: none; }
.sidebar .side-card li { margin-bottom: 10px; font-size: 14.5px; }
.sidebar .side-card .entry-btn { width: 100%; justify-content: center; margin-bottom: 10px; font-size: 15px; padding: 12px 16px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ya-black);
  color: #ccc;
  padding: 44px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--ya-white); font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #aaa; }
.footer-grid a:hover { color: var(--ya-yellow); }
.footer-brand .logo-mark {
  width: 28px; height: 28px; background: var(--ya-red); color: #fff;
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-right: 8px;
}
.footer-brand p { margin-top: 12px; color: #888; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .card-grid, .card-grid.cols-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--ya-white);
    flex-direction: column;
    border-bottom: 1px solid var(--ya-border);
    padding: 10px 20px 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 540px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-tab { padding: 9px 18px; font-size: 15px; }
  .search-box button { padding: 0 20px; }
  .compare-table { font-size: 13px; display: block; overflow-x: auto; }
}

/* ===== Go / redirect confirmation page ===== */
.go-card {
  max-width: 560px;
  margin: 48px auto;
  background: var(--ya-white);
  border: 1px solid var(--ya-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}
.go-icon { font-size: 40px; margin-bottom: 16px; }
.go-host { font-size: 24px; font-weight: 800; color: var(--ya-black); margin-bottom: 8px; }
.go-desc { color: var(--ya-gray); font-size: 15px; margin-bottom: 20px; }
.go-url {
  background: var(--ya-gray-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  word-break: break-all;
  margin-bottom: 28px;
}
.go-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.go-error { color: var(--ya-red); font-size: 15px; margin-bottom: 20px; }
