/* ========================================
   云朵空间艺术 - 主样式表
   Design: Premium dark-gold theme
   ======================================== */

/* === 基础重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0d0d0d;
  --color-bg-dark: #080808;
  --color-bg-card: #1a1a1a;
  --color-bg-card-hover: #222222;
  --color-gold: #c9a84c;
  --color-gold-light: #d4b96a;
  --color-gold-dark: #a08030;
  --color-text: #e0e0e0;
  --color-text-light: #a0a0a0;
  --color-text-dim: #666666;
  --color-white: #ffffff;
  --color-border: #2a2a2a;
  --color-overlay: rgba(0, 0, 0, 0.7);
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-width: 1200px;
  --section-padding: 100px 0;
  --transition: all 0.3s ease;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section {
  padding: var(--section-padding);
  position: relative;
}

/* === Section Header === */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Button === */
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-bg-dark);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
  color: var(--color-bg-dark);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-gold);
}

.read-more:hover {
  gap: 12px;
  color: var(--color-gold-light);
}

/* ========================================
   导航栏
   ======================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.main-nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 4px;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--color-gold);
}

.nav-menu > li > a i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: var(--transition);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.dropdown li a:hover {
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.05);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ========================================
   Banner
   ======================================== */
.banner-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, rgba(201, 168, 76, 0.03) 25%, transparent 25%, transparent 50%, rgba(201, 168, 76, 0.03) 50%);
  background-size: 100% 100%, 100% 100%, 60px 60px;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 8px;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.banner-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-gold);
  width: 60px;
}

.banner-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
  z-index: 10;
}

.arrow {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-gold);
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--color-gold);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: var(--color-bg);
}

.about-tabs {
  margin-top: 20px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.tab-btn {
  padding: 16px 32px;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--color-gold);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.about-grid.reverse .about-text {
  order: -1;
}

.about-image .image-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.about-text p strong {
  color: var(--color-gold);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: 20px;
  min-width: 120px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

/* Concept Items */
.design-concept {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.concept-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px;
}

.concept-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.concept-item:hover {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.05);
}

.concept-item i {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.concept-item span {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: 2px;
}

/* Advantage List */
.advantage-list {
  list-style: none;
  padding: 0;
}

.advantage-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.advantage-list li i {
  color: var(--color-gold);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Qualifications */
.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.qual-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.qual-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.qual-card i {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.qual-card h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.qual-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
  background: var(--color-bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--color-bg-dark);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  padding: 4px 14px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

/* ========================================
   Team Section
   ======================================== */
.team-section {
  background: var(--color-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.avatar-placeholder i {
  font-size: 2rem;
  color: var(--color-bg-dark);
}

.team-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ========================================
   Cases Section
   ======================================== */
.cases-section {
  background: var(--color-bg-dark);
}

.cases-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.case-tab {
  padding: 12px 28px;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.case-tab:first-child {
  border-radius: 4px 0 0 4px;
}

.case-tab:last-child {
  border-radius: 0 4px 4px 0;
}

.case-tab:not(:first-child) {
  border-left: none;
}

.case-tab.active,
.case-tab:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-dark);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.case-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.case-card.hidden {
  display: none;
}

.case-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.case-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.case-card:hover .case-placeholder i {
  color: rgba(201, 168, 76, 0.4);
  transform: scale(1.1);
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.case-category {
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.case-info {
  padding: 20px;
}

.case-info h4 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: 1px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.case-info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* 案例图集按钮 */
.case-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.case-gallery-btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}

/* 图集弹窗 */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.gallery-modal-content {
  position: relative;
  width: 96%;
  max-width: 1400px;
  max-height: 92vh;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

.gallery-modal-header h3 {
  font-size: 1.05rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 1px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.5;
  padding-right: 12px;
}

.gallery-close {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-close:hover {
  color: var(--color-gold);
}

.gallery-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #0a0a0a;
}

.gallery-main-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-main-image img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
  z-index: 5;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-family: 'Noto Sans SC', sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-main:hover .gallery-zoom-hint {
  opacity: 1;
}

/* ===== 图片保护：水印 ===== */
.gallery-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.18;
}

.gallery-watermark span {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  transform: rotate(-25deg);
  padding: 12px 30px;
  letter-spacing: 2px;
}

/* 放大时隐藏水印 */
.gallery-main-image img.zoomed ~ .gallery-watermark,
.gallery-main-image:has(img.zoomed) .gallery-watermark {
  display: none;
}

/* ===== 图片保护：截图警告 ===== */
.gallery-screenshot-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 0, 0, 0.92);
  color: #fff;
  padding: 18px 36px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Noto Sans SC', sans-serif;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 100, 100, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: warningPulse 0.4s ease;
}

@keyframes warningPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.gallery-screenshot-warning i {
  font-size: 1.3rem;
}

/* ===== 图片保护：通用 ===== */
.gallery-modal {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery-modal img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-gold);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-family: 'Noto Sans SC', sans-serif;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--color-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 2;
}

.gallery-nav:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  flex-shrink: 0;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 3px;
}

.gallery-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-gold);
}

/* 响应式 */
@media (max-width: 768px) {
  .gallery-modal-content {
    width: 96%;
    max-height: 95vh;
  }

  .gallery-modal-header h3 {
    font-size: 0.9rem;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .gallery-thumb {
    width: 56px;
    height: 42px;
  }
}

/* ========================================
   News Section
   ======================================== */
.news-section {
  background: var(--color-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.news-card {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
  /* 固定卡片高度，超出部分内部滚动；避免长文章撑高整页 */
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover);
}

/* featured 头条：取消跨双行特殊布局，与其他卡片同高，仅在标题前加"头条"角标 */
.news-card.featured {
  /* grid-row: span 2; 已移除，长内容被卡片高度 + 内容区滚动条吃掉 */
}

.news-image {
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  height: 170px;
  flex-shrink: 0;
  position: relative;
}

/* featured 头条角标 */
.news-tag-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-gold);
  color: #1a1a1a;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 3px;
  z-index: 2;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder i {
  font-size: 3rem;
  color: rgba(201, 168, 76, 0.3);
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.news-card h4 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
  /* 标题最多两行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card h4 a {
  color: var(--color-white);
}

.news-card h4 a:hover {
  color: var(--color-gold);
}

.news-card p,
.news-card .news-content {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 内容区固定高度，超出滚动；这是防止整页被拉高的关键 */
.news-card .news-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  /* 自定义滚动条 */
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.08);
}

.news-card .news-content::-webkit-scrollbar {
  width: 5px;
}

.news-card .news-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.news-card .news-content::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

.news-card .news-content p {
  margin-bottom: 10px;
}

.news-card .news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
  display: block;
}

.news-card .news-content strong {
  color: var(--color-gold);
}

.news-card .news-content h3,
.news-card .news-content h4 {
  color: var(--color-white);
  margin: 14px 0 8px;
  font-size: 0.98rem;
}

.news-card .news-content h4 {
  -webkit-line-clamp: unset;
  display: block;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  background: var(--color-bg-dark);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.6;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question i {
  color: var(--color-gold);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 2;
}

.faq-answer strong {
  color: var(--color-gold);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--color-gold);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-qr {
  display: flex;
  justify-content: center;
}

.qr-card {
  text-align: center;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}

.qr-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
}

.footer-top {
  padding: 60px 0 40px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-company {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 2px;
  max-width: 200px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 0.95rem;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col li a {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col li a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer-geo {
  margin-top: 4px;
  font-size: 0.8rem !important;
  letter-spacing: 2px;
}

.footer-icp {
  margin-top: 6px;
}

.footer-icp a {
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: var(--color-gold);
}

/* ========================================
   Enhanced Placeholders & Patterns
   ======================================== */

/* Case placeholder with pattern overlay */
.case-placeholder {
  position: relative;
  overflow: hidden;
}

.case-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.case-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
  pointer-events: none;
}

/* News placeholder */
.news-placeholder {
  position: relative;
  overflow: hidden;
}

.news-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Banner enhanced visuals */
.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.slide-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 40%),
    linear-gradient(135deg, rgba(201, 168, 76, 0.04) 25%, transparent 25%, transparent 50%, rgba(201, 168, 76, 0.04) 50%);
  background-size: 100% 100%, 100% 100%, 60px 60px;
}

/* About image placeholder enhancement */
.about-image .image-placeholder {
  position: relative;
}

.about-image .image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Team avatar enhancement */
.avatar-placeholder {
  position: relative;
  overflow: hidden;
}

.avatar-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Service card icon glow */
.service-icon {
  position: relative;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  color: var(--color-bg-dark);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold-light);
  transform: translateY(-3px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qualifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 20px 40px;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 20px;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .slide-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .slide-subtitle {
    font-size: 0.95rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-grid.reverse .about-text {
    order: 0;
  }

  .about-image .image-placeholder {
    height: 260px;
  }

  .concept-items {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
  }

  .cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  /* 移动端单列也固定卡片高度，避免被超长文章撑高整页 */
  .news-card {
    height: 520px;
  }

  .news-card.featured {
    /* 取消 span 2 跨双行布局，保持单卡固定高度 */
    grid-row: auto;
  }

  .news-image {
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .tab-nav {
    gap: 0;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .cases-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .case-tab {
    border-radius: 4px !important;
    border-left: 1px solid var(--color-border) !important;
  }
}

/* ========================================
   News List Page (news.html)
   ======================================== */

/* 资讯页顶部 Banner */
.news-page-banner {
  padding: 140px 0 60px;
  background:
    linear-gradient(135deg, rgba(13,13,13,0.85) 0%, rgba(26,18,8,0.9) 50%, rgba(62,39,35,0.85) 100%),
    radial-gradient(ellipse at top, rgba(201,168,76,0.15), transparent 60%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.news-page-title {
  font-size: 2.4rem;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.news-page-subtitle {
  color: var(--color-gold);
  font-size: 0.9rem;
  letter-spacing: 6px;
  margin-bottom: 16px;
}

.news-page-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* 资讯列表区域 */
.news-list-section {
  background: var(--color-bg);
  padding: 60px 0;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-list-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.news-list-loading i {
  color: var(--color-gold);
  margin-right: 8px;
}

.news-list-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-light);
}

.news-list-empty i {
  font-size: 2.5rem;
  color: rgba(201, 168, 76, 0.4);
  display: block;
  margin-bottom: 16px;
}

/* 单条资讯卡片 */
.news-list-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.news-list-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover);
}

.news-list-item.is-featured {
  border-color: var(--color-gold);
}

.news-list-item-inner {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.news-list-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-list-thumb-placeholder i {
  font-size: 2.5rem;
  color: rgba(201, 168, 76, 0.3);
}

/* 头条角标 */
.news-list-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-gold);
  color: #1a1a1a;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 3px;
  z-index: 2;
}

.news-list-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.news-list-date {
  font-size: 0.82rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.news-list-date i {
  margin-right: 4px;
}

.news-list-featured-text {
  font-size: 0.78rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.news-list-featured-text i {
  margin-right: 4px;
}

.news-list-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.news-list-views i {
  font-size: 0.95rem;
  opacity: 0.9;
}

.news-list-views-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.news-list-heading {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.news-list-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1 1 auto;
}

.news-list-toggle {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.news-list-toggle:hover {
  background: var(--color-gold);
  color: #1a1a1a;
}

/* 全文内容区（默认折叠） */
.news-list-full {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  border-top: 0 solid transparent;
}

.news-list-item.open .news-list-full {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  padding-bottom: 24px;
}

.news-list-full p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.news-list-full img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
  display: block;
}

.news-list-full strong {
  color: var(--color-gold);
}

.news-list-full h3,
.news-list-full h4 {
  color: var(--color-white);
  margin: 18px 0 10px;
  font-size: 1rem;
}

.news-list-full ul,
.news-list-full ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.news-list-full li {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.news-list-full a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* 首页资讯板块"查看全部"按钮 */
.news-more-link {
  text-align: center;
  margin-top: 40px;
}

.news-more-btn {
  display: inline-block;
  padding: 12px 36px;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: 4px;
  font-size: 0.92rem;
  letter-spacing: 2px;
  text-decoration: none;
  transition: var(--transition);
}

.news-more-btn:hover {
  background: var(--color-gold);
  color: #1a1a1a;
}

.news-more-btn i {
  margin-left: 8px;
}

/* 资讯列表页响应式 */
@media (max-width: 768px) {
  .news-page-banner {
    padding: 110px 0 40px;
  }

  .news-page-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .news-list-item-inner {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .news-list-thumb {
    width: 100%;
    height: 180px;
  }

  .news-list-heading {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .news-list-section {
    padding: 40px 0;
  }

  .news-list-thumb {
    height: 150px;
  }

  .news-more-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}


/* ==================== 资讯详情页（news-detail.html）头条版式 ==================== */

.news-detail-body {
  background: #fafafa;
  color: #1a1a1a;
}

/* 面包屑 */
.detail-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  font-size: 14px;
  color: #888;
  margin-top: 60px;
}
.detail-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.detail-breadcrumb a:hover { color: #c9a84c; }
.detail-breadcrumb .bc-sep { color: #ccc; font-size: 10px; }
.detail-breadcrumb .bc-current { color: #1a1a1a; font-weight: 500; }

/* 主体 */
.detail-main {
  max-width: 800px;
  margin: 30px auto 40px;
  padding: 0 16px;
}

/* 文章容器（白底卡片） */
.detail-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* 封面图 */
.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 正文区 */
.detail-body { padding: 50px 60px 60px; }

.detail-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eee;
}

.detail-meta-top {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}
.detail-meta-top .detail-date { display: inline-flex; align-items: center; gap: 6px; }

.detail-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 12px 0 18px;
  letter-spacing: 0.5px;
}

.detail-meta-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #888;
}
.detail-meta-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta-bottom i { color: #c9a84c; }

.detail-views {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* 分类标签 */
.detail-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  background: #f0f0f0;
  color: #555;
  margin-right: 10px;
}
.detail-tag-featured { background: #e74c3c; color: #fff; }
.detail-tag i { margin-right: 4px; }

/* 正文（头条版式排版） */
.detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: #2a2a2a;
  word-wrap: break-word;
  /* 内容保护：正文禁止选中（配合 sentinel.js） */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.detail-content p { margin: 0 0 1.2em; }
.detail-content h1,
.detail-content h2 { font-size: 22px; font-weight: 700; margin: 1.6em 0 0.6em; color: #1a1a1a; }
.detail-content h3 { font-size: 18px; font-weight: 600; margin: 1.4em 0 0.5em; color: #1a1a1a; }
.detail-content h4 { font-size: 16px; font-weight: 600; margin: 1.2em 0 0.4em; color: #1a1a1a; }
.detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.detail-content blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid #c9a84c;
  background: #fafafa;
  color: #555;
  font-size: 15px;
}
.detail-content strong { color: #1a1a1a; font-weight: 700; }
.detail-content em { font-style: italic; color: #555; }
.detail-content ul,
.detail-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.detail-content li { margin-bottom: 0.4em; }
.detail-content a { color: #c9a84c; text-decoration: none; }
.detail-content a:hover { text-decoration: underline; }
.detail-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  color: #c7254e;
}
.detail-content pre {
  background: #2a2a2a;
  color: #f0f0f0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

/* 文章底部 */
.detail-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}
.detail-copyright i { color: #c9a84c; margin-right: 4px; }

/* 上下篇导航 */
.detail-pager {
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.detail-pager a {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #1a1a1a;
  transition: all .2s;
  min-height: 64px;
}
.detail-pager a:hover:not(.disabled) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.detail-pager a.disabled { opacity: 0.4; cursor: not-allowed; }
.detail-pager-prev { text-align: left; }
.detail-pager-next { text-align: right; }
.pager-label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.pager-title { display: block; font-size: 14px; color: #1a1a1a; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.detail-pager-back {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  color: #c9a84c !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.detail-pager-back i { margin-right: 6px; }

/* 加载/空态 */
.detail-loading,
.detail-empty {
  padding: 100px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.detail-loading i,
.detail-empty i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  color: #ccc;
}
.detail-back-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: #c9a84c;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.detail-back-btn:hover { background: #b8954a; color: #fff; }

/* ==================== 资讯列表新结构（a 包裹整张卡片） ==================== */
.news-list-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.news-list-link:hover { color: inherit; }
.news-list-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9a84c;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  transition: gap .2s;
}
.news-list-link:hover .news-list-readmore { gap: 10px; }

/* ==================== 详情页响应式 ==================== */
@media (max-width: 768px) {
  .detail-main { margin: 16px auto 24px; }
  .detail-body { padding: 24px 18px 30px; }
  .detail-title { font-size: 22px; }
  .detail-meta-bottom { flex-wrap: wrap; gap: 12px; }
  .detail-content { font-size: 15px; line-height: 1.8; }
  .detail-content h1,
  .detail-content h2 { font-size: 18px; }
  .detail-content h3 { font-size: 16px; }
  .detail-pager { grid-template-columns: 1fr; }
  .detail-pager-back { order: -1; }
  .detail-pager-prev,
  .detail-pager-next { text-align: left; }
  .pager-title { -webkit-line-clamp: 1; }
}


/* ==================== 详情页 / 资讯卡内的 markdown 表格 ==================== */
.detail-content table,
.news-content table,
.news-list-item table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
  word-wrap: break-word;
}
.detail-content table thead,
.news-content table thead,
.news-list-item table thead { background: #f5f5f5; }
.detail-content table th,
.detail-content table td,
.news-content table th,
.news-content table td,
.news-list-item table th,
.news-list-item table td {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.detail-content table th,
.news-content table th,
.news-list-item table th {
  font-weight: 600;
  color: #1a1a1a;
  background: #f5f5f5;
}
.detail-content table tbody tr:nth-child(even),
.news-content table tbody tr:nth-child(even),
.news-list-item table tbody tr:nth-child(even) { background: #fafafa; }

/* 移动端表格横向滚动（避免撑破容器） */
@media (max-width: 768px) {
  .detail-content table,
  .news-content table,
  .news-list-item table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
