@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Yu Gothic', sans-serif;
  color: #2c3a47;
  background: #e8eef3;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ========== Header ========== */
header {
  background: rgba(8, 22, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.site-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.site-subtitle {
  font-size: 0.58rem;
  color: #7ec8e3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 1px;
}

nav { display: flex; gap: 4px; }

nav a {
  color: #a8c8d8;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  background: url('../images/top/261.jpg') center 40% / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 20, 42, 0.15) 0%,
    rgba(8, 20, 42, 0.25) 40%,
    rgba(8, 20, 42, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: rgba(180, 220, 240, 0.9);
  font-weight: 300;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ========== Layout ========== */
.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ========== Article Cards ========== */
.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a7a9a;
  border-left: 3px solid #1a7a9a;
  padding-left: 10px;
  margin-bottom: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-grid { display: grid; gap: 18px; }

.article-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,30,60,0.08), 0 0 0 1px rgba(10,30,60,0.04);
  display: flex;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 6px 20px rgba(10,30,60,0.13);
  transform: translateY(-2px);
}

.card-thumbnail {
  width: 200px;
  min-height: 140px;
  object-fit: cover;
  background: #c8dce8;
  flex-shrink: 0;
}

.card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-category {
  background: #dff0f7;
  color: #1a7a9a;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-date { font-size: 0.78rem; color: #aab; }

.card-title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.55;
  color: #0a1628;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover { color: #1a7a9a; }

.card-excerpt {
  font-size: 0.84rem;
  color: #7a8a96;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.read-more {
  font-size: 0.78rem;
  color: #1a7a9a;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.read-more::after { content: ' →'; }

/* ========== Sidebar ========== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,30,60,0.08), 0 0 0 1px rgba(10,30,60,0.04);
}

.widget-title {
  background: #08162a;
  color: #7ec8e3;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.widget-body { padding: 16px; }

.affiliate-banner {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #dff0f7, #c8dce8);
  border-radius: 6px;
  text-align: center;
  padding: 40px 16px;
  color: #7a9aaa;
  font-size: 0.8rem;
  border: 2px dashed #a8c8d8;
  transition: opacity 0.15s;
}

.affiliate-banner:hover { opacity: 0.8; }

.popular-list { display: flex; flex-direction: column; gap: 12px; }

.popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.popular-rank {
  background: #0a1628;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.popular-rank.gold { background: #c8920a; }
.popular-rank.silver { background: #8a9aaa; }
.popular-rank.bronze { background: #7a6858; }

.popular-title {
  font-size: 0.84rem;
  color: #2c3a47;
  line-height: 1.5;
}

.popular-title:hover { color: #1a7a9a; }

.affiliate-links { display: flex; flex-direction: column; gap: 8px; }

.affiliate-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dde8f0;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #2c3a47;
  transition: background 0.15s;
}

.affiliate-link-item:hover { background: #dff0f7; }
.affiliate-link-item .icon { font-size: 1rem; }

/* ========== Article Detail ========== */
.article-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(10,30,60,0.08), 0 0 0 1px rgba(10,30,60,0.04);
  overflow: hidden;
}

.article-inner { padding: 32px; }

.article-category-badge {
  display: inline-block;
  background: #dff0f7;
  color: #1a7a9a;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.article-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0a1628;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: #9aabb8;
  font-size: 0.8rem;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaf0f4;
}

.article-thumbnail {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #c8dce8;
  border-radius: 8px;
  margin-bottom: 28px;
}

.affiliate-box {
  border: 2px solid #c8920a;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
  background: #fdf8ee;
}

.affiliate-box-label {
  font-size: 0.7rem;
  color: #c8920a;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.affiliate-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3a47;
  margin-bottom: 8px;
}

.affiliate-box p {
  font-size: 0.875rem;
  color: #6a7a86;
  margin-bottom: 14px;
}

.affiliate-btn {
  display: inline-block;
  background: #c8920a;
  color: #fff;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.affiliate-btn:hover { background: #a87808; }

.article-body { font-size: 0.95rem; line-height: 1.9; color: #3a4a58; }

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a1628;
  margin: 40px 0 16px;
  padding: 12px 16px;
  background: #eaf4f8;
  border-left: 4px solid #1a7a9a;
  border-radius: 0 6px 6px 0;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #a8c8d8;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }

.article-footer-affiliate {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #eaf0f4;
}

.article-footer-affiliate .title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0a1628;
  letter-spacing: 0.04em;
}

.affiliate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.affiliate-card {
  border: 1px solid #dde8f0;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s;
}

.affiliate-card:hover { box-shadow: 0 2px 10px rgba(10,30,60,0.1); }
.affiliate-card .name { font-size: 0.85rem; font-weight: 700; color: #0a1628; }
.affiliate-card .desc { font-size: 0.78rem; color: #8a9aaa; }

.affiliate-card .link {
  display: inline-block;
  background: #0a1628;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 0.78rem;
  color: #9aabb8;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: #1a7a9a; }
.breadcrumb a:hover { text-decoration: underline; }

/* ========== Footer ========== */
footer {
  background: #08162a;
  color: #6a8a9a;
  text-align: center;
  padding: 36px 20px;
  margin-top: 64px;
  font-size: 0.8rem;
}

footer a { color: #6a8a9a; margin: 0 10px; }
footer a:hover { color: #7ec8e3; }
.footer-links { margin-bottom: 12px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .card-thumbnail { width: 100%; height: 180px; }
  .article-title { font-size: 1.3rem; }
  .article-thumbnail { height: 220px; }
  .article-inner { padding: 20px; }
  .affiliate-cards { grid-template-columns: 1fr; }
  .hero { height: 50vh; min-height: 320px; }
  nav { display: none; }
}
