*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif; background: #f4f7fb; color: #1e2a3a; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1a6ea0; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #0d4b73; text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: #0a1a2b; margin-top: 1.8rem; margin-bottom: 0.8rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; border-bottom: 3px solid #1a6ea0; padding-bottom: 0.4rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1.2rem; }
ul, ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
blockquote { border-left: 4px solid #1a6ea0; background: #e9f0f8; padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; font-style: italic; color: #2a4055; }
code { background: #eef3f7; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9rem; }
hr { border: none; border-top: 2px dashed #cbd5e1; margin: 2.5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.site-header { background: linear-gradient(135deg, #0a1a2b 0%, #1a3a55 100%); color: #fff; padding: 0 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.5rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.my-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; background: rgba(255,255,255,0.08); padding: 0.3rem 1rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.15); transition: background 0.3s; }
.my-logo:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: #fff; }
.my-logo span { color: #6fc3ff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 6px; transition: background 0.2s; }
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.main-nav { display: flex; gap: 0.2rem; flex-wrap: wrap; align-items: center; }
.main-nav a { color: #dce9f5; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500; transition: all 0.25s; }
.main-nav a:hover, .main-nav a:focus { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.main-nav a.active { background: #1a6ea0; color: #fff; }
.breadcrumb { background: #e9f0f8; padding: 0.7rem 1.5rem; font-size: 0.85rem; border-bottom: 1px solid #d0ddee; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li+li::before { content: "›"; margin-right: 0.5rem; color: #7a8fa3; }
.breadcrumb a { color: #1a6ea0; }
.breadcrumb .current { color: #4a5f73; font-weight: 500; }
.hero { background: linear-gradient(145deg, #0f2840 0%, #1b4a6e 100%); color: #fff; padding: 3.5rem 1.5rem; text-align: center; border-radius: 0 0 40px 40px; margin-bottom: 2.5rem; }
.hero h1 { font-size: 2.8rem; color: #fff; margin: 0 0 0.8rem; letter-spacing: -0.5px; }
.hero p { font-size: 1.2rem; opacity: 0.88; max-width: 700px; margin: 0 auto 1.5rem; color: #dce9f5; }
.hero-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: 0.95rem; color: #b0cee8; }
.hero-meta i { margin-right: 0.4rem; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin: 2rem 0; }
.content-main { min-width: 0; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.05); padding: 1.8rem; margin-bottom: 2rem; border: 1px solid #eaf0f6; transition: box-shadow 0.3s; }
.card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.08); }
.card h2:first-child { margin-top: 0; }
.featured-image { border-radius: 16px; overflow: hidden; margin: 1.8rem 0; box-shadow: 0 6px 30px rgba(0,0,0,0.08); }
.featured-image img { width: 100%; height: auto; }
.image-caption { font-size: 0.85rem; color: #5a6f83; text-align: center; padding: 0.6rem 1rem; background: #f4f8fd; border-radius: 0 0 12px 12px; }
.toc { background: #f0f5fc; border-radius: 12px; padding: 1.5rem 1.8rem; margin: 1.5rem 0; border-left: 4px solid #1a6ea0; }
.toc h3 { margin-top: 0; margin-bottom: 0.8rem; font-size: 1.1rem; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { font-size: 0.92rem; }
.link-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: center; margin: 1.5rem 0; padding: 0.8rem 0; border-top: 1px solid #e0e8f0; border-bottom: 1px solid #e0e8f0; }
.link-strip a { font-size: 0.9rem; background: #f0f5fc; padding: 0.25rem 1rem; border-radius: 30px; transition: all 0.2s; }
.link-strip a:hover { background: #1a6ea0; color: #fff; text-decoration: none; }
.search-box { display: flex; max-width: 500px; margin: 1.2rem auto; border-radius: 60px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.search-box input { flex: 1; padding: 0.9rem 1.5rem; border: 2px solid #dde6ef; border-right: none; border-radius: 60px 0 0 60px; font-size: 1rem; outline: none; transition: border 0.3s; }
.search-box input:focus { border-color: #1a6ea0; }
.search-box button { background: #1a6ea0; color: #fff; border: none; padding: 0.9rem 1.8rem; border-radius: 0 60px 60px 0; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.search-box button:hover { background: #0d4b73; }
.comment-section, .rating-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid #e0e8f0; }
.comment-section h3, .rating-section h3 { margin-top: 0; }
.comment-form textarea, .comment-form input { width: 100%; padding: 0.8rem 1rem; border: 2px solid #dde6ef; border-radius: 10px; font-size: 0.95rem; margin-bottom: 0.8rem; resize: vertical; transition: border 0.3s; font-family: inherit; }
.comment-form textarea:focus, .comment-form input:focus { border-color: #1a6ea0; outline: none; }
.comment-form button, .rating-form button { background: #1a6ea0; color: #fff; border: none; padding: 0.7rem 2rem; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.comment-form button:hover, .rating-form button:hover { background: #0d4b73; }
.rating-stars { display: flex; gap: 0.3rem; font-size: 1.8rem; margin-bottom: 0.8rem; cursor: pointer; }
.rating-stars i { color: #d0d8e0; transition: color 0.2s; }
.rating-stars i.active, .rating-stars i:hover { color: #f5b342; }
.rating-form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 350px; }
.sidebar .card h4 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; color: #4a6a85; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin-bottom: 0.5rem; }
.sidebar a { font-size: 0.92rem; display: block; padding: 0.3rem 0; border-bottom: 1px solid #f0f4f9; }
.sidebar a:hover { padding-left: 0.4rem; }
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.data-table th { background: #1a3a55; color: #fff; padding: 0.7rem 1rem; text-align: left; }
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #e0e8f0; }
.data-table tr:nth-child(even) { background: #f8fafc; }
.data-table tr:hover { background: #eef5fb; }
.site-footer { background: #0a1a2b; color: #b0c8dd; padding: 2.5rem 1.5rem 1.5rem; margin-top: 3rem; border-radius: 40px 40px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-inner h4 { color: #fff; margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-inner a { color: #8cb0d0; }
.footer-inner a:hover { color: #fff; }
.friend-link { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 0.5rem; }
.friend-link a { background: rgba(255,255,255,0.06); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.85rem; }
.friend-link a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.footer-bottom { border-top: 1px solid #1a3a55; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: 0.85rem; color: #7a9ab5; }
.footer-bottom a { color: #8cb0d0; }
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; margin-top: 0.8rem; flex-direction: column; align-items: stretch; gap: 0.3rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 1rem; border-radius: 8px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .toc ul { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { padding: 0.6rem 1rem; }
  .my-logo { font-size: 1.3rem; }
  .container { padding: 0 1rem; }
  .card { padding: 1.2rem; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-meta { gap: 1rem; font-size: 0.8rem; }
  .search-box { flex-direction: column; border-radius: 20px; }
  .search-box input { border-radius: 20px 20px 0 0; border-right: 2px solid #dde6ef; }
  .search-box button { border-radius: 0 0 20px 20px; }
  .rating-stars { font-size: 1.5rem; }
}
.text-muted { color: #5a6f83; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.flex-center { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.icon-list { list-style: none; padding: 0; }
.icon-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.icon-list i { color: #1a6ea0; margin-top: 0.2rem; min-width: 1.2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-item { background: #f0f5fc; border-radius: 12px; padding: 1.2rem; text-align: center; }
.stat-item .num { font-size: 1.8rem; font-weight: 800; color: #1a6ea0; display: block; }
.stat-item .label { font-size: 0.85rem; color: #4a6a85; }
