/* ========================================
   SunYu Photonics - Main Stylesheet
   Modern Tech/Photonics Company Website
   ======================================== */

/* CSS Variables */
:root {
  --primary: #0D47A1;
  --primary-dark: #0a3575;
  --primary-light: #1976D2;
  --secondary: #00ACC1;
  --accent: #FF6F00;
  --gradient: linear-gradient(135deg, #0D47A1, #00ACC1);
  --gradient-light: linear-gradient(135deg, #1976D2, #26C6DA);
  
  --bg-dark: #0A0A0F;
  --bg-light: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  
  --text-dark: #1A1A2E;
  --text-medium: #4A5568;
  --text-light: #A0AEC0;
  --text-white: #F9FAFB;
  
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 640px;
  margin: 0 auto;
}

.section-bg {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 71, 161, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.875rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-width: 0;
  overflow: visible;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
  min-width: 0;          /* 新增：允许 flex 子项收缩 */
  overflow: visible;     /* 新增：确保汉堡按钮不会被裁剪 */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.logo-text {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(13, 71, 161, 0.05);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.nav-dropdown-menu a:hover {
  background: rgba(13, 71, 161, 0.05);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 0.875rem;
  color: var(--text-medium);
  padding: 8px 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(0, 172, 193, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(13, 71, 161, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 111, 0, 0.05) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(135deg, #00ACC1, #26C6DA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  opacity: 0.9;
}

@media (max-width: 1200px) {
  .nav {
    gap: 2px;
  }
  
  .nav-link {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
  
  .header-actions {
    display: none;
  }
  
  .lang-switch {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-image {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-stat {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 220px;
  background: linear-gradient(135deg, #e3f2fd, #e0f7fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 28px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 12px;
}

.card h4 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.card-link:hover {
  gap: 12px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  display: block;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.news-date {
  color: var(--text-light);
}

.news-tag {
  background: var(--gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-content h3 a {
  color: var(--text-dark);
}

.news-content h3 a:hover {
  color: var(--primary);
}

.news-content p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.news-link:hover {
  gap: 12px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-item.active {
  background: var(--gradient);
  border-color: var(--primary);
  color: white;
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.pagination-jump input {
  width: 50px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

.pagination-jump input:focus {
  outline: none;
  border-color: var(--primary);
}

.pagination-jump button {
  padding: 8px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.pagination-jump button:hover {
  background: var(--primary-dark);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Solution Section */
.solution-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.solution-tab {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.solution-tab:hover,
.solution-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.solution-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.solution-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-text h3 {
  margin-bottom: 20px;
}

.solution-text p {
  margin-bottom: 24px;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.solution-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(0, 172, 193, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-visual {
  background: linear-gradient(135deg, #e3f2fd, #e0f7fa);
  border-radius: var(--radius-xl);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}

.solution-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .solution-visual {
    height: 280px;
    order: -1;
  }
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-medium);
}

.stat-label-white {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 2.25rem;
  }
}

/* Challenge Boxes */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.challenge-box {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.challenge-box:hover {
  box-shadow: var(--shadow-md);
}

.challenge-image {
  flex: 0 0 160px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.challenge-box h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.challenge-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  
  .challenge-box {
    flex-direction: column;
  }
  
  .challenge-image {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0 16px;
  text-align: center;
  border: 2px solid transparent;
}

.partner-logo img {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
}

.partner-logo:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.partner-logo:hover {
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Patents Grid - Card Layout */
.patents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.patent-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.patent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.patent-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.15);
}

.patent-card:hover::before {
  opacity: 1;
}

.patent-icon {
  width: 60px;
  height: 60px;
  font-size: 36px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  border-radius: 14px;
  padding: 12px;
}

.patent-card img.patent-icon {
  object-fit: contain;
}

.patent-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.patent-number {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 8px;
  display: inline-block;
}

.patent-desc {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 22px;
  text-align: justify;
}

.patent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patent-tags span {
  background: var(--bg-light);
  color: var(--text-medium);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.patent-tags span:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .patents-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  
  .patent-card {
    padding: 24px;
  }
  
  .patent-card h3 {
    font-size: 18px;
  }
  
  .patent-icon {
    width: 48px;
    height: 48px;
    font-size: 28px;
    padding: 10px;
  }
}

.patent-card img.patent-icon {
  object-fit: contain;
}
}

  
  .partner-logo {
    height: 60px;
    font-size: 0.8rem;
  }
  
  .partner-logo img {
    max-width: 80px;
    max-height: 35px;
  }
}

/* Timeline */
.timeline {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.timeline-content-wrapper {
  padding-right: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-item h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline-item p {
  color: var(--text-medium);
  margin-bottom: 0;
margin-top: 8px;  /* 添加这一行，让描述与标题保持间距 */
  font-size: 0.95rem;
  line-height: 1.6;
}

/* New timeline item header layout - year and title inline */
.timeline-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.timeline-item-header .timeline-year {
  margin-bottom: 0 !important;
  display: inline-block;
}

.timeline-item-header h4 {
  margin-bottom: 0 !important;
  font-size: 1.1rem;
  display: inline-block;
}

.timeline-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 450px;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .timeline-image {
    min-height: 300px;
    order: -1;
  }
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  display: flex;
  gap: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  width: calc(100% - 24px);
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content h4 {
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-medium);
  margin-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column;
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-content {
    width: 100%;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-text p {
  color: var(--text-medium);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form {
    padding: 28px;
  }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.25rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: white;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Page Header */
.page-header {
  background: var(--bg-dark);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(0, 172, 193, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(13, 71, 161, 0.2) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: white;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  padding: 80px 0;
}

/* News Detail Page */
.news-detail {
  padding: 120px 0 80px;
  background: var(--bg-light);
}

.news-detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-detail-header .news-meta {
  justify-content: center;
  margin-bottom: 16px;
}

.news-detail-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  max-height: 350px;
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.news-detail-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.news-detail-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 14px;
  color: var(--text-dark);
}

.news-detail-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.news-detail-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 12px;
  color: var(--text-medium);
}

.news-detail-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.news-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 48px auto 0;
}

.news-nav-item {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.news-nav-prev {
  text-align: left;
}

.news-nav-next {
  text-align: right;
}

.news-nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.news-nav-item a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.news-nav-item a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .news-detail-header h1 {
    font-size: 1.75rem;
  }
  
  .news-detail-content {
    padding: 28px;
  }
  
  .news-navigation {
    grid-template-columns: 1fr;
  }
  
  .news-nav-next {
    text-align: left;
  }
}

.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

.main-content article {
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.main-content article h2 {
  margin-bottom: 24px;
}

.main-content article h3 {
  margin: 32px 0 16px;
}

.main-content article p {
  margin-bottom: 20px;
}

.main-content article ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.main-content article li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 12px;
  color: var(--text-medium);
}

.main-content article li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  padding: 20px 24px;
  background: var(--gradient);
  color: white;
  margin: 0;
}

.sidebar-box ul {
  padding: 16px 24px;
}

.sidebar-box li {
  margin-bottom: 12px;
}

.sidebar-box a {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.sidebar-box a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .main-content article {
    padding: 28px;
  }
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner Carousel */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  background: var(--bg-dark);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  text-align: center;
}

.carousel-caption h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
}

.carousel-caption p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.4);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: white;
}

.dot:hover {
  background: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 300px;
  }
  
  .carousel-caption h3 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  /* 移动端菜单容器 */
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;            /* 明确宽度 */
    max-width: 100%;        /* 防止溢出 */
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-sizing: border-box; /* 确保 padding 包含在宽度内 */
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-bottom: 30px;
  }
  
  /* 所有菜单项（包括普通链接和下拉容器内的链接）统一左对齐，无额外内边距 */
  .nav-link {
    width: 100%;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--border-light);
    text-align: left !important;
    box-sizing: border-box;
    white-space: normal !important;      /* 允许换行 */
    word-break: break-word !important;   /* 长单词断行 */
  }
  
  /* 下拉菜单容器：完全重置边距 */
  .nav-dropdown {
    position: static;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 下拉菜单的链接（解决方案）与普通链接完全一致 */
  .nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* 改为从左侧开始排列 */
    gap: 8px;                     /* 文字与箭头之间的间距 */
    width: 100%;
    padding: 16px 0 !important;   /* 与普通链接相同 */
    margin: 0 !important;
    text-align: left !important;
  }
  
  /* 箭头样式 */
  .nav-dropdown > .nav-link::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.3s;
    color: var(--text-medium);
  }
  
  .nav-dropdown.active > .nav-link::after {
    transform: rotate(180deg);
  }
  
  /* 二级菜单样式 */
  .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0 0 20px !important;
    margin-top: 0 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    display: block !important;
  }
  
  .nav-dropdown-menu a {
    display: block;
    padding: 12px 0 12px 16px !important;
    font-size: 0.85rem !important;
    color: var(--text-medium);
    border-left: 2px solid var(--border);
    margin: 4px 0;
  }
  
  /* 语言切换链接 */
  .lang-switch {
    display: block !important;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Animations */
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-medium);
}

/* ========== 移动端全面优化 (≤768px) ========== */
@media (max-width: 768px) {
  /* 防止水平溢出 */
  body {
    overflow-x: hidden;
  }
  .container {
    padding: 0 20px;
  }

  /* 移动端页面头背景 */
  .page-header {
    padding: 80px 0 50px !important;      /* 保持原有高度 */
    background-size: auto 100% !important; /* 高度100%，宽度自适应，无上下留白 */
    background-position: center center !important; /* 水平居中，垂直居中 */
    background-repeat: no-repeat !important;
    background-color: var(--bg-light) !important; /* 左右留白区域与页面背景一致 */
  }

  /* 隐藏深色渐变叠加层 */
  .page-header::before {
    display: none !important;
  }

  /* 确保文字清晰可见（可加阴影） */
  .page-header h1,
  .page-header p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }


  .page-header .container {
    position: relative;
    z-index: 1;
  }
  .page-header h1,
  .page-header p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }

  /* 首页轮播图 - 移动端适配（保持左右轮播功能，图片完整显示） */
  .banner-carousel {
    height: 280px;
  }
  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .carousel-caption {
    padding: 20px 16px 15px;
  }
  .carousel-caption h3 {
    font-size: 1.2rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* 缩小上下间距 */
  .section {
    padding: 50px 0 !important;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .section-header p {
    font-size: 0.9rem;
  }

  /* 挑战卡片 */
  .challenges-grid {
    gap: 16px;
  }
  .challenge-box {
    flex-direction: column;
    padding: 20px;
  }
  .challenge-image {
    width: 100%;
    height: 140px;
  }

  /* 解决方案标签页 */
  .solution-tabs {
    gap: 8px;
  }
  .solution-tab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .solution-grid {
    gap: 24px;
  }
  .solution-text h3 {
    font-size: 1.3rem;
  }
  .solution-visual {
    height: 200px;
  }

  /* 卡片 */
  .cards-grid, .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-content, .news-content {
    padding: 16px;
  }
  /* 新闻列表页图片 - 移动端完整显示 */
  .news-image {
    height: auto;
    max-height: 220px;
  }
  .news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* 新闻详情页图片 - 移动端完整显示 */
  .news-detail-image {
    max-height: none;
    height: auto;
  }
  .news-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }


  /* 合作伙伴 */
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .partner-logo {
    height: 60px;
    padding: 0 8px;
  }
  .partner-logo img {
    max-width: 70px;
    max-height: 35px;
  }

  /* 发展历程 */
  .timeline-wrapper {
    gap: 20px;
  }
  .timeline-content-wrapper {
    padding-right: 0;
  }
  .timeline-item {
    padding: 16px;
  }
  .timeline-year {
    font-size: 1rem;
  }
  .timeline-image {
    min-height: 200px;
  }

  /* 核心优势卡片 */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 20px;
  }

  /* 联系我们 */
  .contact-grid {
    gap: 30px;
  }
  .contact-form {
    padding: 20px;
  }
  .contact-item {
    gap: 12px;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

/* CPO vs NPO 对比表格 —— 移动端保持两列，允许横向滚动 */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -10px;
  padding: 0 10px;
}

/* 将表格内的所有主要块（包括底部说明）都统一最小宽度 */
.comparison-wrapper > div {
  min-width: 580px;          /* 与表格内容一致 */
  width: 100%;
  box-sizing: border-box;
}

/* 确保 grid 列定义生效 */
.comparison-header,
.comparison-rows > div {
  grid-template-columns: 200px 1fr 1fr !important;
}


/* 防止任何容器水平溢出 */
html, body {
  max-width: 100%;
  overflow-x: clip; /* 优先使用 clip，比 hidden 更强 */
}

.container {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  overflow-x: clip;
}

/* 所有网格和 flex 容器强制不突破父级 */
.challenges-grid,
.features-grid,
.cards-grid,
.news-grid,
.partners-grid,
.comparison-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 修正挑战卡片的最小宽度 */
.challenges-grid {
  grid-template-columns: 1fr !important; /* 强制单列 */
}

.challenge-box {
  min-width: 0; /* 允许收缩 */
}
.header {
  width: 100%;
  max-width: 100vw;

}

/* 确保卡片内文字在极窄屏下自动换行 */
.challenge-box p,
.challenge-box strong,
.challenge-box span,
.challenge-box h4,
.faq-card p,
.faq-card strong,
.faq-card span,
.faq-card h4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;      /* 强制换行，即使是长英文单词 */
  hyphens: auto;               /* 英文自动加连字符，提升阅读体验 */
}

/* 卡片本身不要限制高度 */
.challenge-box,
.faq-card {
  height: auto !important;
  min-height: unset;
}

}

/* 超小屏幕 (≤480px) 进一步微调 */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .page-header {
    padding: 120px 0 60px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .solution-tab {
    flex: 0 0 auto;
  }
  /* 导航菜单内部文字缩小 */
  .nav-link {
    font-size: 0.9rem;          /* 稍减小字体 */
    padding: 12px 0 !important;  /* 减小垂直内边距 */
  }
  .nav-dropdown-menu a {
    font-size: 0.8rem;
    padding-left: 16px;
  }
  /* 联系表单按钮 */
  .btn {
    padding: 12px 24px;
  }
}

/* 为极窄屏幕（如折叠屏 280px）添加额外适配 */
@media (max-width: 360px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 10px 0 !important;
  }
  .nav-dropdown > .nav-link {
    gap: 4px;  /* 减小箭头与文字间距 */
  }
  .nav-dropdown-menu a {
    padding: 8px 0 8px 12px !important;
    font-size: 0.75rem !important;
  }
  .header-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.7rem;
  }
  .logo img {
    height: 36px;  /* 可选：logo稍微缩小 */
  width: auto;   /* 保持比例，避免拉伸 */
  }
  .logo {
    max-width: 70%;       /* 留出空间给右侧按钮 */
  }
  .header-inner {
    height: 60px;  /* 可选：头部高度微调 */
  }

  .challenge-box,
  .faq-card {
    padding: 16px !important;
  }
  .challenge-box h4,
  .faq-card h4 {
    font-size: 0.95rem;
  }
}

/* ========================================
   Solution Page - Feature Image Enhancement
   ======================================== */
.feature {
  text-align: center;
  margin-bottom: 2rem;
}

.feature img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  //border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}