:root {
    --gua-red: #d81e06;
    --gua-red-dark: #a81504;
    --gua-black: #121212;
    --gua-dark: #181818;
    --gua-gray: #6b7280;
    --gua-bg: #f4f4f5;
    --gua-card: #ffffff;
    --gua-line: #e5e7eb;
    --gua-radius: 14px;
    --gua-shadow: 0 12px 36px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--gua-bg);
    color: #1f2937;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

.gua-breaking {
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 7px 0;
    letter-spacing: .5px;
}
.gua-breaking .container { display: flex; align-items: center; gap: 10px; }
.gua-breaking-label {
    background: var(--gua-red);
    color: #fff;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
}
.gua-breaking-text { opacity: .9; }

.gua-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--gua-line);
    backdrop-filter: blur(10px);
}
.gua-nav { display: flex; align-items: center; min-height: 68px; gap: 22px; }
.gua-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 900; color: var(--gua-black); }
.gua-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--gua-red);
    color: #fff;
    border-radius: 9px;
    font-size: 19px;
}
.gua-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.gua-menu a { padding: 8px 13px; border-radius: 8px; color: #374151; font-size: 15px; font-weight: 600; }
.gua-menu a:hover { color: var(--gua-red); background: #fff1f0; }
.gua-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--gua-line); border-radius: 999px; overflow: hidden; }
.gua-search input { border: 0; outline: 0; padding: 8px 12px; width: 165px; background: transparent; }
.gua-search button { border: 0; background: var(--gua-red); color: #fff; padding: 8px 15px; cursor: pointer; font-weight: 700; }
.gua-nav-toggle { display: none; border: 0; background: var(--gua-red); color: #fff; border-radius: 8px; padding: 8px 11px; font-size: 18px; cursor: pointer; }

.gua-main { min-height: 60vh; }
.gua-hero { padding: 20px 0 8px; }
.carousel { position: relative; overflow: hidden; border-radius: var(--gua-radius); box-shadow: var(--gua-shadow); background: #ddd; }
.slides { display: flex; transition: transform .45s ease; }
.slide { position: relative; flex: 0 0 100%; height: 360px; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
    position: absolute;
    left: 28px;
    bottom: 25px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 800;
    border-left: 4px solid var(--gua-red);
}
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: #111; font-size: 25px; cursor: pointer; line-height: 1; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.carousel-dots .dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.carousel-dots .dot.active { background: var(--gua-red); width: 24px; border-radius: 999px; }

.gua-section { padding: 28px 0 42px; }
.gua-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gua-section-head h2 { margin: 0; font-size: 25px; display: flex; align-items: center; gap: 9px; }
.gua-section-head h2 i { width: 6px; height: 22px; background: var(--gua-red); border-radius: 99px; display: inline-block; }
.gua-section-head a { color: var(--gua-red); font-size: 14px; font-weight: 700; }
.gua-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gua-card { background: var(--gua-card); border: 1px solid var(--gua-line); border-radius: var(--gua-radius); overflow: hidden; box-shadow: var(--gua-shadow); transition: transform .2s, box-shadow .2s; }
.gua-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.gua-card-featured { grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; }
.gua-thumb { aspect-ratio: 16/9; overflow: hidden; background: #1f1f1f; }
.gua-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gua-thumb-text { display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #b91c1c, #000); font-size: 36px; font-weight: 900; }
.gua-card-featured .gua-thumb { height: 100%; aspect-ratio: auto; }
.gua-card-body { padding: 16px 18px; }
.gua-card-tag { display: inline-block; background: #fff1f0; color: var(--gua-red); padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.gua-card-body h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gua-card-body p { color: var(--gua-gray); font-size: 14px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gua-meta { color: var(--gua-gray); font-size: 13px; display: flex; gap: 15px; flex-wrap: wrap; }

.gua-page-title { background: linear-gradient(135deg, #0b0b0b, #2a0a0a); color: #fff; padding: 36px 0; border-bottom: 3px solid var(--gua-red); }
.gua-page-title h1 { margin: 0 0 6px; font-size: 30px; }
.gua-page-title p { margin: 0; opacity: .8; }
.gua-page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 22px; padding: 26px 0 44px; }
.gua-page-main { min-width: 0; }
.gua-list { display: grid; gap: 16px; }
.gua-list-item { background: var(--gua-card); border: 1px solid var(--gua-line); border-radius: var(--gua-radius); overflow: hidden; box-shadow: var(--gua-shadow); }
.gua-list-item > a { display: grid; grid-template-columns: 230px 1fr; min-height: 155px; }
.gua-list-thumb { height: 100%; background: #1f1f1f; }
.gua-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gua-list-body { padding: 18px 20px; }
.gua-list-body h2 { margin: 0 0 8px; font-size: 20px; }
.gua-list-body p { color: var(--gua-gray); font-size: 14px; margin: 0 0 12px; }
.gua-page-side { position: sticky; top: 88px; align-self: start; }
.gua-side-card { background: var(--gua-card); border: 1px solid var(--gua-line); border-radius: var(--gua-radius); padding: 18px; box-shadow: var(--gua-shadow); }
.gua-side-card h3 { margin: 0 0 12px; font-size: 18px; }
.gua-side-nav { display: flex; flex-direction: column; gap: 2px; }
.gua-side-nav a { padding: 9px 10px; border-radius: 8px; color: #374151; font-weight: 600; }
.gua-side-nav a:hover { background: #fff1f0; color: var(--gua-red); }

.gua-article { background: var(--gua-card); border: 1px solid var(--gua-line); border-radius: var(--gua-radius); padding: 30px 36px 36px; margin: 26px auto 48px; box-shadow: var(--gua-shadow); }
.gua-article-head { border-bottom: 1px solid var(--gua-line); padding-bottom: 20px; margin-bottom: 24px; }
.gua-article-head h1 { margin: 12px 0 14px; font-size: 32px; line-height: 1.4; }
.gua-article-content { font-size: 16px; line-height: 1.95; }
.gua-article-content h2, .gua-article-content h3 { margin-top: 1.4em; }
.gua-article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.gua-article-content p { margin: 0 0 16px; }
.gua-article-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--gua-line); font-size: 14px; }
.gua-article-pager a { color: var(--gua-red); font-weight: 700; }
.gua-related { margin-top: 24px; }
.gua-related h2 { font-size: 22px; }
.gua-empty { padding: 45px 0; text-align: center; color: var(--gua-gray); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--gua-line); border-radius: 8px; background: #fff; color: #374151; font-weight: 700; }
.pager a:hover { border-color: var(--gua-red); color: var(--gua-red); }
.pager .current { background: var(--gua-red); border-color: var(--gua-red); color: #fff; }

.gua-footer { background: #0d0d0d; color: #9ca3af; padding: 28px 0; margin-top: 20px; }
.gua-footer-brand { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.gua-footer p { margin: 0 0 4px; font-size: 13px; text-align: center; }
.stat-code { text-align: center; margin-top: 8px; }

@media (max-width: 900px) {
    .gua-article-grid { grid-template-columns: repeat(2, 1fr); }
    .gua-card-featured { grid-column: span 2; }
    .gua-page-layout { grid-template-columns: 1fr; }
    .gua-page-side { position: static; }
    .slide { height: 260px; }
}

@media (max-width: 640px) {
    .gua-nav { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
    .gua-nav-toggle { display: inline-flex; }
    .gua-menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; background: #fff; border-top: 1px solid var(--gua-line); padding: 8px 0; }
    .gua-menu.open { display: flex; }
    .gua-search { order: 2; flex: 1; }
    .gua-search input { width: 100%; }
    .slide { height: 200px; }
    .slide-caption { left: 14px; bottom: 14px; font-size: 16px; }
    .gua-article-grid { grid-template-columns: 1fr; }
    .gua-card-featured { grid-column: span 1; display: block; }
    .gua-list-item > a { grid-template-columns: 1fr; }
    .gua-list-thumb { height: 200px; }
    .gua-article { padding: 20px 18px; }
    .gua-article-head h1 { font-size: 25px; }
}
