@charset "utf-8";

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.8; }
a { color: #333; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c90001; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; border: none; }
input, button, select, textarea { outline: none; font-family: inherit; }

/* ===== Utility ===== */
.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ''; display: block; clear: both; }
.fl { float: left; }
.fr { float: right; }

/* ===== Top Bar ===== */
.top-bar { background: #8b0000; height: 36px; line-height: 36px; font-size: 12px; color: #fff; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #f0d0d0; margin-right: 18px; }
.top-bar a:hover { color: #fff; }
.top-bar .top-left a { padding: 0 10px; border-right: 1px solid #a33; }
.top-bar .top-left a:last-child { border-right: none; }
.top-bar .top-right a { padding: 0 8px; }

/* ===== Header ===== */
.header { background: #fff; border-bottom: 3px solid #c90001; }
.header .container { max-width: 1000px; height: 150px; display: flex; align-items: center; justify-content: space-between; padding: 0; }
.header .logo-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header .logo-wrap img { display: block; }

/* ===== Navigation ===== */
.nav-wrapper { background: #c90001; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav { display: flex; position: relative; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 0 24px; line-height: 50px; color: #fff; font-size: 15px; font-weight: bold; transition: background 0.2s; }
.nav > li > a:hover, .nav > li:hover > a { background: #a80000; }
.nav > li > a.home { background: #a80000; }
.nav > li > a.home:hover { background: #8b0000; }
.nav > li > ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999; border-top: 2px solid #c90001; }
.nav > li:hover > ul { display: block; }
.nav > li > ul li { border-bottom: 1px solid #f0f0f0; }
.nav > li > ul li a { display: block; padding: 10px 16px; color: #333; font-size: 14px; white-space: nowrap; }
.nav > li > ul li a:hover { background: #fef0f0; color: #c90001; padding-left: 20px; }
.nav-wrapper .nav-search { margin-left: auto; display: flex; align-items: center; padding: 0 10px; }
.nav-wrapper .nav-search form { display: flex; align-items: center; }
.nav-wrapper .nav-search input[type="text"] { height: 32px; border: 1px solid rgba(255,255,255,0.3); border-radius: 16px 0 0 16px; padding: 0 14px; width: 170px; font-size: 13px; background: #fff; color: #333; transition: border-color 0.2s; }
.nav-wrapper .nav-search input[type="text"]:focus { border-color: #fff; }
.nav-wrapper .nav-search input[type="text"]::placeholder { color: #aaa; }
.nav-wrapper .nav-search button { height: 32px; border: none; border-radius: 0 16px 16px 0; padding: 0 16px; background: #8b0000; color: #fff; cursor: pointer; font-size: 13px; font-weight: bold; letter-spacing: 1px; transition: background 0.2s; }
.nav-wrapper .nav-search button:hover { background: #6b0000; }

/* ===== Banner Slider ===== */
.banner { position: relative; width: 100%; height: 420px; overflow: hidden; background: #ddd; }
.banner .slider-list { position: relative; height: 100%; }
.banner .slider-list .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.banner .slider-list .slide.active { opacity: 1; }
.banner .slider-list .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .slider-list .slide .slide-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 30px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-size: 18px; }
.banner .slider-arrows .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.3); color: #fff; border: none; font-size: 24px; cursor: pointer; border-radius: 50%; line-height: 44px; text-align: center; z-index: 10; transition: background 0.2s; }
.banner .slider-arrows .arrow:hover { background: rgba(0,0,0,0.6); }
.banner .slider-arrows .arrow.prev { left: 20px; }
.banner .slider-arrows .arrow.next { right: 20px; }
.banner .slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.banner .slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.banner .slider-dots .dot.active { background: #c90001; }

/* ===== News Ticker ===== */
.news-ticker { background: #fff; border-bottom: 1px solid #e8e8e8; }
.news-ticker .container { display: flex; height: 40px; line-height: 40px; overflow: hidden; }
.news-ticker .ticker-label { background: #c90001; color: #fff; padding: 0 16px; font-weight: bold; font-size: 13px; white-space: nowrap; }
.news-ticker .ticker-content { flex: 1; overflow: hidden; position: relative; padding-left: 10px; }
.news-ticker .ticker-content ul { white-space: nowrap; padding: 0; margin: 0; display: inline-block; }
.news-ticker .ticker-content ul li { display: inline; margin-right: 40px; }
.news-ticker .ticker-content ul li a { color: #333; font-size: 13px; }
.news-ticker .ticker-content ul li a:hover { color: #c90001; }

/* ===== Section Common ===== */
.section { padding: 30px 0; }
.section-bg { background: #f5f5f5; }
.section-white { background: #fff; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #c90001; }
.section-title h2 { font-size: 20px; color: #c90001; font-weight: bold; padding-left: 12px; border-left: 4px solid #c90001; line-height: 1; }
.section-title .more { font-size: 13px; color: #999; }
.section-title .more:hover { color: #c90001; }

/* ===== Home: Important News ===== */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.news-grid .col { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.news-grid .col .col-title { padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #eee; font-size: 15px; font-weight: bold; color: #c90001; display: flex; justify-content: space-between; align-items: center; }
.news-grid .col .col-title .col-more { font-size: 12px; color: #999; font-weight: normal; }
.col-main-wrap { display: flex; gap: 20px; flex: 1; }
.col-slider-block { flex: 1; min-width: 0; }
.col-news-side { flex: 1; min-width: 0; }
.col-slider { position: relative; width: 100%; height: 280px; overflow: hidden; background: #f5f5f5; }
.col-slider-caption { display: block; padding: 8px 12px; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fafafa; border-bottom: 1px solid #eee; }
.col-slider-caption:hover { color: #c90001; }
.news-tab-nav { display: flex; background: #fafafa; border-bottom: 2px solid #c90001; }
.news-tab-nav .tab-item { padding: 10px 20px; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.news-tab-nav .tab-item:hover { color: #c90001; }
.news-tab-nav .tab-item.active { color: #c90001; font-weight: bold; border-bottom-color: #c90001; }
.news-tab-content { padding: 10px 0; flex: 1; }
.news-tab-content .tab-panel { display: none; }
.news-tab-content .tab-panel.active { display: block; }
.news-list li { padding: 8px 16px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.news-list li:last-child { border-bottom: none; }
.news-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.news-list li a:hover { color: #c90001; }
.news-list li .date { color: #999; font-size: 12px; white-space: nowrap; margin-left: 10px; }
.news-list li .new-icon { color: #c90001; font-size: 10px; margin-left: 4px; }
.news-list li.top-item { background: #fef8f8; }
.news-list li.top-item a { font-weight: bold; }

/* Image slider in col */
.col-slider a { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.col-slider a img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.col-slider a img.active { opacity: 1; }
.col-slider .col-slider-dots { position: absolute; bottom: 8px; right: 10px; display: flex; gap: 5px; background: rgba(0,0,0,0.35); padding: 4px 8px; border-radius: 10px; }
.col-slider .col-slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.col-slider .col-slider-dots span.active { background: #c90001; }
.col-news-list { padding: 10px 0; }
.col-news-list li { padding: 7px 16px; border-bottom: 1px dashed #f0f0f0; display: flex; justify-content: space-between; }
.col-news-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-news-list li .date { color: #aaa; font-size: 12px; }

/* Headline news */
.headline-news { padding: 16px; }
.headline-news h3 { font-size: 16px; margin-bottom: 6px; }
.headline-news h3 a { color: #c90001; }
.headline-news .headline-desc { color: #666; font-size: 13px; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Three Column Cards ===== */
.col-3-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card .card-header { padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.card .card-header h3 { font-size: 15px; color: #c90001; font-weight: bold; }
.card .card-header .card-more { font-size: 12px; color: #999; }
.card .card-body { padding: 10px 0; }
.card .card-body li { padding: 7px 16px; border-bottom: 1px dashed #f0f0f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .card-body li:last-child { border-bottom: none; }
.card .card-body li a:hover { color: #c90001; }

/* ===== Provincial Associations ===== */
.province-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.province-grid a { display: block; padding: 8px 6px; text-align: center; background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; font-size: 13px; transition: all 0.2s; }
.province-grid a:hover { border-color: #c90001; color: #c90001; background: #fef8f8; }

/* ===== Friend Links ===== */
.friend-links { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 16px 20px; }
.friend-links .link-title { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 10px; }
.friend-links select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; margin-right: 10px; min-width: 180px; cursor: pointer; }
.friend-links select:hover { border-color: #c90001; }

/* ===== Footer ===== */
.footer { background: #2d2d2d; color: #ccc; padding: 30px 0 20px; margin-top: 30px; }
.footer .footer-nav { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #444; margin-bottom: 16px; }
.footer .footer-nav a { color: #ccc; margin: 0 12px; font-size: 13px; }
.footer .footer-nav a:hover { color: #fff; }
.footer .footer-nav span { color: #555; }
.footer .footer-info { text-align: center; font-size: 13px; line-height: 2; }
.footer .footer-info a { color: #aaa; }
.footer .footer-info a:hover { color: #fff; }

/* ===== Back to Top ===== */
#back-to-top { position: fixed; right: 30px; bottom: 80px; width: 44px; height: 44px; background: #c90001; color: #fff; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: none; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: background 0.2s; }
#back-to-top:hover { background: #a80000; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c90001; }
.breadcrumb .current { color: #c90001; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ===== List Page ===== */
.list-page { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 20px 0; }
.sidebar { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); align-self: start; }
.sidebar .sidebar-title { padding: 14px 16px; background: #c90001; color: #fff; font-size: 16px; font-weight: bold; }
.sidebar .sidebar-menu li a { display: block; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.sidebar .sidebar-menu li a:hover, .sidebar .sidebar-menu li a.active { background: #fef8f8; color: #c90001; padding-left: 20px; }
.list-content { background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); min-height: 400px; }
.list-content .page-title { font-size: 20px; color: #333; padding-bottom: 12px; border-bottom: 2px solid #c90001; margin-bottom: 16px; }
.article-list li { padding: 14px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.article-list li:last-child { border-bottom: none; }
.article-list li a { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-list li a:hover { color: #c90001; }
.article-list li .date { color: #999; font-size: 13px; white-space: nowrap; margin-left: 16px; }

/* ===== Pagination ===== */
.pagination { text-align: center; padding: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 14px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; transition: all 0.2s; }
.pagination a:hover { border-color: #c90001; color: #c90001; }
.pagination .current { background: #c90001; border-color: #c90001; color: #fff; }
.pagination .prev, .pagination .next { font-weight: bold; }
.pagination .ellipsis { display: inline-block; padding: 6px 4px; border: none; color: #999; }

/* ===== Detail Page ===== */
.detail-page { padding: 20px 0; }
.detail-content { background: #fff; border-radius: 6px; padding: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.detail-content .detail-title { font-size: 24px; color: #333; text-align: center; margin-bottom: 16px; }
.detail-content .detail-meta { text-align: center; color: #999; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.detail-content .detail-meta span { margin: 0 10px; }
.detail-content .detail-body { font-size: 15px; line-height: 1.9; color: #444; }
.detail-content .detail-body p { margin-bottom: 14px; }
.detail-content .detail-body img { max-width: 100%; margin: 10px 0; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 16px; border-top: 1px solid #eee; font-size: 14px; }
.detail-nav a { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Search Page ===== */
.search-box { margin: 20px 0; text-align: center; }
.search-box input[type="text"] { width: 500px; height: 42px; border: 2px solid #c90001; border-radius: 4px 0 0 4px; padding: 0 16px; font-size: 15px; vertical-align: middle; }
.search-box button { height: 42px; padding: 0 24px; background: #c90001; color: #fff; border: none; border-radius: 0 4px 4px 0; font-size: 15px; cursor: pointer; vertical-align: middle; }
.search-box button:hover { background: #a80000; }

/* ===== Banner Image Below Ticker ===== */
.promo-banner { background: #fff; padding: 10px 0; }
.promo-banner img { width: 100%; border-radius: 4px; }

/* ===== Section Image Header ===== */
.section-img-header { margin-bottom: 16px; }
.section-img-header img { width: 100%; border-radius: 4px; }

/* ===== Home page extra ===== */
.home-section-header { display: flex; align-items: center; margin-bottom: 16px; }
.home-section-header img { width: 100%; border-radius: 4px; }
