/* ============================================
   众智商学院 - 认证项目聚合站
   Theme v2: 专业·信任·品牌突出
   ============================================ */

:root {
  --primary: #1a4a8a;
  --primary-light: #2a6cb8;
  --primary-dark: #0f2d55;
  --accent: #e8751a;
  --accent-light: #f59e38;
  --accent-glow: rgba(232, 117, 26, 0.3);
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.12);
  --shadow-xl: 0 30px 60px -15px rgba(0,0,0,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hero-gradient: linear-gradient(135deg, #0f2d55 0%, #1a4a8a 40%, #2a6cb8 100%);
  --card-gradient: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* === Navigation === */
nav {
  background: rgba(15, 45, 85, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

nav .logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
nav .logo img {
  height: 38px;
  width: auto;
}
nav .logo-text {
  background: linear-gradient(135deg, #fff 60%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
nav .logo-text .accent { color: var(--accent-light); -webkit-text-fill-color: var(--accent-light); }

nav .nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

nav .nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

nav .nav-links .hot-link {
  background: rgba(232, 117, 26, 0.2);
  color: var(--accent-light);
}
nav .nav-links .hot-link:hover {
  background: rgba(232, 117, 26, 0.35);
}

nav .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Hero === */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 56, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 108, 184, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero .hero-badge {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  position: relative;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  line-height: 1.8;
  position: relative;
}

.hero .cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  position: relative;
}

.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(232, 117, 26, 0.35);
}
.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 117, 26, 0.45);
}

.hero .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.hero .contact-float {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  position: relative;
}
.hero .contact-float .phone {
  font-weight: 700;
  color: var(--accent-light);
  font-size: 1.1rem;
}

.hero .stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
}

.hero .stat-item {
  text-align: center;
  padding: 0 0.5rem;
}

.hero .stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .stat-item .label {
  font-size: 0.85rem;
  opacity: 0.75;
  display: block;
  margin-top: 0.15rem;
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Section === */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-top: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 600px;
}

/* === Project Cards Grid === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-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;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card .badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  line-height: 1.4;
}

.project-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-card .tags span {
  background: #f1f5f9;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.project-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.project-card .btn:hover {
  background: var(--primary-light);
  gap: 0.6rem;
}

/* === About / Why Choose === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === Contact Banner (Brand Highlight) === */
.contact-banner {
  background: var(--hero-gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.contact-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 56, 0.1) 0%, transparent 70%);
}

.contact-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.contact-banner .contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.contact-banner .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.contact-banner .contact-item .big {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
}

.contact-banner .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(232, 117, 26, 0.3);
  position: relative;
}
.contact-banner .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 117, 26, 0.4);
}

/* === Comparison Table === */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:nth-child(even) { background: #f8fafc; }
.compare-table tr:hover td { background: #eef2ff; }

.compare-table .highlight {
  background: #fef9c3 !important;
  font-weight: 600;
}

/* === Article List === */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.article-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.article-item .meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.article-item h4 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.article-item h4 a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.article-item h4 a:hover { color: var(--primary); }

.article-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === Page Content === */
.page-header {
  background: var(--hero-gradient);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 { font-size: 2.4rem; margin-bottom: 0.75rem; position: relative; }
.page-header p { opacity: 0.9; max-width: 700px; margin: 0 auto; position: relative; font-size: 1.05rem; }

.content-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.8rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.content-section h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 1.25rem 0 0.75rem;
}

.content-section p,
.content-section li {
  color: var(--text);
  line-height: 2;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* === FAQ === */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.2rem 1.4rem;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
  transition: background 0.2s;
  font-size: 1.05rem;
  user-select: none;
}

.faq-question:hover { background: #eef2f7; }

.faq-question .icon { 
  font-size: 1.2rem; 
  transition: transform 0.3s; 
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

/* === Footer === */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

footer .footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

footer .footer-brand span { color: var(--accent-light); }

footer .footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

footer h4 { 
  color: #fff; 
  margin-bottom: 1.2rem; 
  font-size: 1rem; 
  position: relative;
  padding-bottom: 0.5rem;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

footer a { 
  color: rgba(255,255,255,0.65); 
  text-decoration: none; 
  display: block; 
  margin-bottom: 0.5rem; 
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

footer .contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

footer .contact-info .phone-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}

footer .copyright {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

footer .copyright a {
  display: inline;
  color: var(--accent-light);
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.5rem; }

/* === Article detail page === */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.content-section table th,
.content-section table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

.content-section table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.content-section table tr:nth-child(even) {
  background: #f8fafc;
}

.content-section hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

.content-section blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .stats { gap: 1.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  nav .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 45, 85, 0.98);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  nav .nav-links.show { display: flex; }
  nav .menu-toggle { display: block; }

  .content-section { padding: 1.5rem; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th,
  .compare-table td { padding: 0.5rem 0.6rem; }
  
  .contact-banner .contact-row { flex-direction: column; gap: 1rem; }
  
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* === Smooth fade in animation === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeInUp 0.5s ease both; }
.project-card { animation: fadeInUp 0.5s ease both; }
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }

/* === Utility === */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
