/* ==================== CSS Reset & Variables ==================== */
:root {
  --primary: #0056b3;
  --primary-dark: #003d80;
  --primary-light: #e8f0fe;
  --accent: #ff6b35;
  --accent-dark: #e55a25;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ==================== Header ==================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { height: 40px; width: auto; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  font-size: 13px; color: var(--text-light); cursor: pointer;
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }

.search-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-light); color: var(--text-light); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--primary); color: #fff; }

/* Search overlay */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: rgba(0,0,0,0.6); display: none; align-items: flex-start; justify-content: center; padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff; padding: 40px; border-radius: 12px; width: 90%; max-width: 600px;
  box-shadow: var(--shadow-lg);
}
.search-box h3 { margin-bottom: 20px; font-size: 20px; }
.search-box input {
  width: 100%; padding: 14px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 16px; outline: none; transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); }
.search-box .search-close {
  position: absolute; top: 15px; right: 15px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--text-muted);
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 0; }
.nav-item {
  position: relative; padding: 0 18px; height: var(--header-height);
  display: flex; align-items: center; font-size: 15px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: var(--transition);
}
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--primary); transition: var(--transition); border-radius: 2px;
}
.nav-item:hover::after, .nav-item.active::after { width: 60%; }

.nav-item .arrow { margin-left: 5px; font-size: 10px; transition: var(--transition); }
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 180px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: all 0.25s ease; padding: 8px 0; border-top: 2px solid var(--primary);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; }
.dropdown a {
  display: block; padding: 10px 24px; font-size: 14px; color: var(--text);
  white-space: nowrap; transition: var(--transition);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

/* Mobile menu */
.mobile-menu-btn {
  display: none; width: 36px; height: 36px; border: none; cursor: pointer;
  background: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: var(--transition);
}

/* ==================== Banner ==================== */
.banner-section { margin-top: var(--header-height); position: relative; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 500px; }
.banner-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.banner-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,40,80,0.6), rgba(0,86,179,0.2));
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.banner-text h1 {
  font-size: 48px; color: #fff; font-weight: 700; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.banner-text p { font-size: 20px; color: rgba(255,255,255,0.9); max-width: 600px; }

.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  color: #fff; font-size: 20px; display: flex; align-items: center;
  justify-content: center; transition: var(--transition);
}
.banner-nav:hover { background: rgba(255,255,255,0.4); }
.banner-prev { left: 30px; }
.banner-next { right: 30px; }

.banner-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.banner-dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; transition: var(--transition);
}
.banner-dot.active { background: #fff; width: 30px; border-radius: 6px; }

/* ==================== Quick Nav ==================== */
.quick-nav { padding: 60px 0; background: var(--bg); }
.quick-nav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.quick-nav-item {
  text-align: center; padding: 40px 20px; border-radius: var(--radius);
  background: var(--bg-light); transition: var(--transition); cursor: pointer;
}
.quick-nav-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quick-nav-icon {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px;
}
.quick-nav-item h3 { font-size: 16px; margin-bottom: 8px; }
.quick-nav-item p { font-size: 13px; color: var(--text-muted); }

/* ==================== Section Common ==================== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-header {
  text-align: center; margin-bottom: 50px;
}
.section-header h2 { font-size: 32px; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-muted); }
.section-header .section-line {
  width: 60px; height: 3px; background: var(--primary); margin: 16px auto 0; border-radius: 2px;
}

.section-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 14px; font-weight: 500; margin-top: 8px;
}
.section-more:hover { gap: 12px; }

/* ==================== Applications ==================== */
.app-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.app-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 220px; cursor: pointer; group: true;
}
.app-card img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary), #0078d4);
}
.app-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  transition: var(--transition);
}
.app-card:hover .app-card-overlay { background: linear-gradient(to top, rgba(0,86,179,0.9), transparent); }
.app-card-overlay h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.app-card-overlay p { color: rgba(255,255,255,0.8); font-size: 13px; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.app-card:hover .app-card-overlay p { opacity: 1; transform: translateY(0); }

/* ==================== News ==================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 24px; }
.news-card-date { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.news-card-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.news-card-title:hover { color: var(--primary); }
.news-card-summary { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.news-card-more {
  font-size: 14px; color: var(--primary); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}
.news-card-more:hover { gap: 8px; }

/* ==================== CTA Banner ==================== */
.cta-section { padding: 80px 0; }
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.cta-card {
  position: relative; height: 250px; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.cta-card:nth-child(2) { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.cta-card-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 30px;
}
.cta-card h3 { font-size: 28px; margin-bottom: 12px; }
.cta-card p { font-size: 15px; opacity: 0.9; }
.cta-card-icon { font-size: 40px; margin-bottom: 15px; }

/* ==================== Footer ==================== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 50px 0 30px; }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px; flex-wrap: wrap; gap: 40px;
}
.footer-brand .logo-text { color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 350px; }
.footer-links { display: flex; gap: 60px; }
.footer-links-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 4px 0;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 30px auto 0; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px;
}

/* ==================== Page Banner ==================== */
.page-banner {
  margin-top: var(--header-height); height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner h1 { color: #fff; font-size: 36px; position: relative; z-index: 1; }
.page-banner p { color: rgba(255,255,255,0.8); font-size: 16px; margin-top: 10px; position: relative; z-index: 1; }

/* ==================== Content Page ==================== */
.content-section { padding: 80px 0; }
.content-sidebar {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.sidebar-nav {
  position: sticky; top: calc(var(--header-height) + 30px); align-self: start;
}
.sidebar-nav h3 {
  padding: 16px 20px; background: var(--primary); color: #fff; font-size: 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.sidebar-nav a {
  display: block; padding: 14px 20px; border: 1px solid var(--border);
  border-top: none; font-size: 15px; transition: var(--transition);
}
.sidebar-nav a:first-of-type { border-top: 1px solid var(--border); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.content-main { line-height: 1.8; }
.content-main h2 { font-size: 24px; margin: 30px 0 16px; color: var(--text); }
.content-main h3 { font-size: 20px; margin: 24px 0 12px; }
.content-main p { margin-bottom: 16px; color: var(--text-light); font-size: 15px; }
.content-main img { border-radius: var(--radius); margin: 20px 0; }
.content-main ul, .content-main ol { padding-left: 20px; margin-bottom: 16px; }
.content-main li { margin-bottom: 8px; color: var(--text-light); list-style: disc; }

/* ==================== Product Grid ==================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-light);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.product-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Product Category Tabs */
.product-tabs {
  display: flex; gap: 0; margin-bottom: 40px; border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.product-tab {
  padding: 12px 24px; font-size: 15px; cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.product-tab:hover { color: var(--primary); }
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ==================== Contact / Message ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-list { margin-bottom: 30px; }
.contact-info-item {
  display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.contact-info-icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary); font-size: 20px;
}
.contact-info-item h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item p { font-size: 16px; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: var(--transition); font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,86,179,0.1); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ==================== Job List ==================== */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 30px; transition: var(--transition);
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.job-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.job-card-header h3 { font-size: 18px; }
.job-card-tags { display: flex; gap: 10px; }
.job-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
  background: var(--primary-light); color: var(--primary);
}
.job-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.job-card-detail {
  display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
  line-height: 1.8;
}
.job-card-detail.open { display: block; }

/* ==================== Honor Grid ==================== */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.honor-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); text-align: center; padding: 30px 20px;
}
.honor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.honor-card-img {
  width: 100px; height: 100px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 36px;
}
.honor-card h3 { font-size: 16px; margin-bottom: 8px; }
.honor-card p { font-size: 13px; color: var(--text-muted); }

/* ==================== Breadcrumb ==================== */
.breadcrumb {
  padding: 15px 20px; font-size: 13px; color: var(--text-muted);
  max-width: var(--max-width); margin: 0 auto;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ==================== Pagination ==================== */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.pagination a, .pagination span {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; cursor: pointer; transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== Back to top ==================== */
.back-top {
  position: fixed; bottom: 40px; right: 40px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary); color: #fff; border: none;
  cursor: pointer; font-size: 18px; display: none; align-items: center;
  justify-content: center; z-index: 999; box-shadow: var(--shadow);
  transition: var(--transition);
}
.back-top.show { display: flex; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .app-grid, .product-grid, .honor-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .banner-slider { height: 300px; }
  .banner-text h1 { font-size: 28px; }
  .banner-text p { font-size: 14px; }
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .product-grid, .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 20px; }
  .page-banner { height: 200px; }
  .page-banner h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .app-grid, .product-grid, .honor-grid { grid-template-columns: 1fr 1fr; }
  .quick-nav-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .quick-nav-item { padding: 24px 12px; }
  .banner-nav { display: none; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1500;
  background: rgba(0,0,0,0.5); display: none;
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
  background: #fff; z-index: 1501; transition: right 0.3s ease;
  overflow-y: auto; padding: 20px;
}
.mobile-nav.active { right: 0; }
.mobile-nav-close {
  width: 36px; height: 36px; border: none; background: var(--bg-light);
  border-radius: 50%; cursor: pointer; font-size: 18px; display: flex;
  align-items: center; justify-content: center; margin-left: auto;
}
.mobile-nav-list { margin-top: 20px; }
.mobile-nav-list a {
  display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border);
}
.mobile-nav-list .sub-list { padding-left: 20px; }
.mobile-nav-list .sub-list a { font-size: 14px; border-bottom-color: #f0f0f0; }
.mobile-nav-toggle {
  padding: 14px 0; font-size: 16px; cursor: pointer; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav-toggle .arrow { transition: transform 0.3s; }
.mobile-nav-toggle.open .arrow { transform: rotate(180deg); }
.mobile-sub-list { display: none; }
.mobile-sub-list.open { display: block; }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.loading::after {
  content: ''; display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; top: 20px; right: 20px; z-index: 9999; padding: 14px 24px;
  background: #333; color: #fff; border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-lg); transform: translateX(120%); transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }

/* Detail page */
.news-detail { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.news-detail h1 { font-size: 28px; margin-bottom: 16px; }
.news-detail-meta {
  display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 30px; font-size: 14px; color: var(--text-muted);
}
.news-detail-content { line-height: 1.8; font-size: 15px; }
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content img { max-width: 100%; border-radius: var(--radius); }
