/* ===== 基础变量与重置 ===== */
:root {
  --primary: #CA8A04;
  --primary-dark: #A16207;
  --primary-light: #FEF9C3;
  --accent: #FCCF00;
  --text: #1a1a2e;
  --text-secondary: #5a6270;
  --text-light: #8b95a5;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0d1b2a;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* ===== 头部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 区块通用 ===== */
.section {
  display: none;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  padding: 60px 0 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.home-banner-wrap {
  padding: 0 0 60px;
}

.growth-section {
  padding: 60px 0 0;
  background: var(--bg-alt);
}

.growth-header {
  text-align: center;
  margin-bottom: 48px;
}

.growth-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.growth-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #CA8A04;
  font-weight: 600;
  margin-bottom: 12px;
}

.growth-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.home-full-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  padding: 0 24px;
}

/* ===== 四大核心优势 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.gallery-overlay-title::before,
.gallery-overlay-title::after {
  content: '——';
  margin: 0 6px;
  opacity: 0.8;
}

.gallery-overlay-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  line-height: 1.7;
}

.news-loading,
.about-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* ===== 付费资讯 ===== */
.section-news {
  background: var(--bg-alt);
  padding: 48px 0 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.news-tag-inline {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.news-card-text .news-body {
  padding-top: 24px;
}

.news-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-body time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 12px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.news-paid-tag {
  color: #dc2626;
  font-weight: 600;
  margin-left: 4px;
}

.news-more {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== 关于我们 ===== */
.section-about {
  padding: 48px 0 80px;
  background: var(--bg-alt);
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.about-row-reverse {
  direction: rtl;
}

.about-row-reverse > * {
  direction: ltr;
}

.about-row-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-row-text h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.about-row-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: justify;
}

.about-banner {
  margin: 20px 0 40px;
}

.about-banner img {
  width: 100%;
  border-radius: var(--radius);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-left: 4px solid var(--primary);
}

.value-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 联系我们 ===== */
.section-contact {
  background: var(--bg-alt);
  padding-bottom: 80px;
}

.contact-grid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background: var(--bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-item-full {
  grid-column: 1 / -1;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}


/* ===== 页脚 ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  font-size: 0.875rem;
}

.footer-beian {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-beian:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links span {
  opacity: 0.3;
}

/* ===== 资讯详情弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-article {
  max-width: 800px;
  overflow-y: auto;
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 1.4rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
  line-height: 1;
  cursor: pointer;
  border: none;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.article-modal-body {
  padding: 48px 32px 32px;
}

.article-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
}

.article-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--primary-dark);
}

.article-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 24px;
}

.rich-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.rich-content p {
  margin-bottom: 16px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: var(--radius-sm);
}

.rich-content a {
  color: var(--primary-dark);
  word-break: break-all;
}

.rich-content strong {
  color: var(--text);
}

.modal-pay {
  max-width: 420px;
}

.pay-modal-header {
  text-align: center;
  padding: 36px 32px 16px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
}

.pay-modal-header h3 {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
}

.pay-modal-header h3 span {
  color: #dc2626;
  font-weight: 700;
}

.pay-modal-body {
  padding: 8px 32px 28px;
  text-align: center;
}

.pay-qr-wrap {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.pay-qr-wrap img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.pay-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pay-status.pay-status-error {
  color: #c0392b;
  line-height: 1.6;
}

.pay-contact {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pay-contact a {
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .news-grid,
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-row,
  .about-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .news-grid,
  .about-values {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 40px 0 28px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}
