/* ============================================
   云南产教融合科学研究院 - 主样式表 v2
   配色基于 Logo 蓝色调 · 专业机构视觉系统
   ============================================ */

:root {
  --primary-dark: #16264F;
  --primary: #2847A0;
  --primary-light: #3B6BC4;
  --secondary: #3B9DD8;
  --secondary-light: #6BBDE9;
  --accent: #2D3A8F;
  --gold: #C9A227;
  --bg-light: #F4F7FC;
  --bg-soft: #EDF2FA;
  --bg-white: #FFFFFF;
  --text-primary: #182338;
  --text-secondary: #46536B;
  --text-muted: #7C899F;
  --border-color: #E5EAF3;
  --shadow-xs: 0 1px 2px rgba(22,38,79,0.06);
  --shadow-sm: 0 2px 8px rgba(22,38,79,0.06);
  --shadow-md: 0 8px 24px rgba(22,38,79,0.09);
  --shadow-lg: 0 18px 48px rgba(22,38,79,0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-deep: linear-gradient(135deg, #101d3f 0%, #22397e 45%, #2f77b5 100%);
  --transition: all 0.32s cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(59,157,216,0.22); }

/* ========== Header & Nav ========== */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 74px;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-area img { height: 62px; width: 62px; max-width: 62px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 2px 10px rgba(30,48,96,0.12); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .zh-name { font-size: 16.5px; font-weight: 800; color: var(--primary-dark); line-height: 1.3; letter-spacing: 1.5px; }
.logo-text .en-name { font-size: 9.5px; color: var(--text-muted); letter-spacing: 0.6px; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 9px 15px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary); position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--grad-brand); border-radius: 2px; transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active { font-weight: 600; }
.main-nav a:hover::after, .main-nav a.active::after { width: 20px; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--primary-dark); }

@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--bg-white); flex-direction: column; padding: 12px 24px;
    border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; font-size: 15px; }
  .main-nav a::after { display: none; }
}

/* ========== Home Hero ========== */
.hero-banner {
  background: var(--grad-deep);
  color: white; padding: 118px 24px 104px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
}
.hero-banner::after {
  content: ''; position: absolute; top: -30%; right: -12%;
  width: 560px; height: 560px; background: radial-gradient(circle, rgba(59,157,216,0.35), transparent 62%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 26px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  font-size: 13px; letter-spacing: 1px; backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary-light); box-shadow: 0 0 8px var(--secondary-light); }
.hero-banner h1 {
  font-size: 46px; font-weight: 800; margin-bottom: 22px; letter-spacing: 3px; line-height: 1.28;
}
.hero-banner h1 .hl { background: linear-gradient(90deg,#8fd0f5,#c9e6fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-banner p.lead {
  font-size: 17px; opacity: 0.9; max-width: 720px; margin: 0 auto 36px; line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Page Hero (inner) ========== */
.page-hero {
  background: var(--grad-deep); color: white;
  padding: 76px 24px 64px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.5;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -40%; right: -8%;
  width: 420px; height: 420px; background: radial-gradient(circle, rgba(59,157,216,0.30), transparent 62%); border-radius: 50%;
}
.page-hero .ph-inner { position: relative; z-index: 2; }
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 14px; font-weight: 600;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 14px; letter-spacing: 2px; }
.page-hero p { font-size: 15.5px; opacity: 0.85; max-width: 640px; margin: 0 auto; }
.page-hero .crumb {
  margin-top: 20px; font-size: 13px; opacity: 0.72; position: relative; z-index: 2;
}
.page-hero .crumb a { color: rgba(255,255,255,0.9); }
.page-hero .crumb span { margin: 0 8px; opacity: 0.5; }

/* ========== Container ========== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 28px; }

/* ========== Section ========== */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-light); }
.section-deep { background: var(--grad-deep); color: #fff; }

.section-title { text-align: center; margin-bottom: 54px; }
.section-title .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--secondary); font-weight: 700; margin-bottom: 12px;
}
.section-title h2 {
  font-size: 31px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; letter-spacing: 1px;
}
.section-deep .section-title h2 { color: #fff; }
.section-title p { font-size: 15.5px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.section-deep .section-title p { color: rgba(255,255,255,0.8); }
.section-title .title-line {
  width: 56px; height: 3px; background: var(--grad-brand); border-radius: 2px; margin: 16px auto 0;
}
.section-title.left { text-align: left; }
.section-title.left .title-line { margin-left: 0; }

/* ========== Cards Grid ========== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-white); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px 28px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; background: var(--grad-brand); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 24px; color: white; font-weight: 700;
  box-shadow: 0 8px 18px rgba(40,71,160,0.28);
}
.card h3 { font-size: 18.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.card .card-tag {
  display: inline-block; margin-top: 16px; padding: 5px 15px;
  background: rgba(40,71,160,0.07); color: var(--primary); border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
}

/* numbered feature card */
.card .card-num {
  position: absolute; top: 18px; right: 22px; font-size: 40px; font-weight: 800;
  color: rgba(40,71,160,0.06); line-height: 1;
}

/* ========== Stats Bar ========== */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.stat-item {
  text-align: center; padding: 30px 16px; background: var(--bg-white);
  border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: var(--transition);
  position: relative;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.stat-num {
  font-size: 40px; font-weight: 800; background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.15;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.stat-item .stat-accent { width: 28px; height: 3px; background: var(--grad-brand); border-radius: 2px; margin: 12px auto 0; opacity: 0.5; }
/* stats on deep background */
.section-deep .stat-item, .stats-bar.on-deep .stat-item { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.section-deep .stat-num, .stats-bar.on-deep .stat-num { -webkit-text-fill-color: #cfe6f7; }
.section-deep .stat-label, .stats-bar.on-deep .stat-label { color: rgba(255,255,255,0.75); }

/* ========== Feature List ========== */
.feature-list { list-style: none; }
.feature-list li { padding: 14px 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 12px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .f-icon {
  width: 28px; height: 28px; min-width: 28px; background: var(--grad-brand); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 13px;
}
.feature-list .f-text strong { display: block; font-size: 15px; color: var(--text-primary); margin-bottom: 2px; }
.feature-list .f-text span { font-size: 13px; color: var(--text-secondary); }

/* ========== Expert Cards ========== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.expert-card {
  background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; gap: 24px; align-items: flex-start; transition: var(--transition);
  position: relative; overflow: hidden;
}
.expert-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand);
  transform: scaleY(0); transform-origin: top; transition: var(--transition);
}
.expert-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.expert-card:hover::before { transform: scaleY(1); }
.expert-avatar {
  width: 84px; height: 84px; min-width: 84px; background: var(--grad-brand); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(40,71,160,0.3); border: 3px solid #fff; outline: 2px solid rgba(59,157,216,0.25);
}
.expert-info h3 { font-size: 20px; font-weight: 800; color: var(--primary-dark); margin-bottom: 5px; }
.expert-info .role {
  display: inline-block; font-size: 12.5px; color: var(--secondary); font-weight: 700; margin-bottom: 12px;
  padding: 3px 12px; background: rgba(59,157,216,0.1); border-radius: 20px;
}
.expert-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

/* ========== Table Styles ========== */
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-white);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.data-table th {
  background: var(--primary-dark); color: white; padding: 15px 20px; font-size: 14px; font-weight: 600; text-align: left;
}
.data-table td { padding: 14px 20px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td, .data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: rgba(59,157,216,0.06); }

/* ========== Tags / Badges ========== */
.tag { display: inline-block; padding: 4px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(40,71,160,0.08); color: var(--primary); margin: 2px 4px; }
.tag-blue { background: rgba(59,157,216,0.12); color: var(--secondary); }
.tag-green { background: rgba(92,154,46,0.1); color: #5C9A2E; }

/* ========== Timeline ========== */
.timeline { position: relative; padding-left: 38px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary)); }
.tl-item { position: relative; margin-bottom: 30px; padding: 18px 22px; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); }
.tl-item:last-child { margin-bottom: 0; }
.tl-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.tl-item::before {
  content: ''; position: absolute; left: -33px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg-white); box-shadow: 0 0 0 3px var(--secondary-light);
}
.tl-item h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; font-weight: 700; }
.tl-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========== Two Column Layout ========== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ========== Content Block ========== */
.content-block { margin-bottom: 44px; }
.content-block > h3 {
  font-size: 22px; font-weight: 800; color: var(--primary-dark); margin-bottom: 18px; padding-left: 16px;
  position: relative; line-height: 1.4;
}
.content-block > h3::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: var(--grad-brand); border-radius: 3px;
}
.content-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px; }
.content-block ul { list-style: none; padding-left: 0; }
.content-block ul li { padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; color: var(--text-secondary); }
.content-block ul li::before {
  content: ''; position: absolute; left: 6px; top: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--secondary);
}

/* card wrapper for inner-page blocks */
.panel {
  background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 36px 34px; box-shadow: var(--shadow-sm);
}
.panel.soft { background: var(--bg-light); box-shadow: none; }

/* ========== Highlight Box ========== */
.highlight-box {
  background: linear-gradient(135deg, rgba(40,71,160,0.05), rgba(59,157,216,0.08));
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 26px 30px; margin: 30px 0;
}
.highlight-box p { font-size: 15px; color: var(--text-primary); line-height: 1.85; margin: 0; }

/* ========== Footer ========== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 64px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.4;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 44px; padding-bottom: 44px; position: relative; z-index: 2; }
.footer-brand img { height: 76px; width: 76px; max-width: 76px; flex-shrink: 0; border-radius: 50%; object-fit: cover; margin-bottom: 18px; box-shadow: 0 3px 16px rgba(255,255,255,0.18); background: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.85; opacity: 0.72; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--secondary); }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: white; padding-left: 6px; }
.footer-contact p { font-size: 13.5px; padding: 6px 0; opacity: 0.75; line-height: 1.6; }
.footer-contact a { display: inline !important; padding: 0; color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 13px; opacity: 0.55; position: relative; z-index: 2; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 32px; border-radius: 30px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-align: center; }
.btn-primary { background: var(--grad-brand); color: white; box-shadow: 0 8px 20px rgba(40,71,160,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40,71,160,0.42); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-light { background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-light:hover { background: #fff; color: var(--primary-dark); }

/* ========== Contact Form ========== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; transition: var(--transition); background: var(--bg-white); color: var(--text-primary);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(59,157,216,0.13);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== Partner Logos ========== */
.partners-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 8px 0; align-items: center; }
.partner-badge {
  padding: 11px 26px; background: var(--bg-white); border: 1px solid var(--border-color);
  border-radius: 30px; font-size: 13.5px; color: var(--text-secondary); font-weight: 600; transition: var(--transition);
}
.partner-badge:hover { border-color: var(--secondary); color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-banner { padding: 76px 20px 60px; }
  .hero-banner h1 { font-size: 30px; letter-spacing: 1px; }
  .hero-banner p.lead { font-size: 15px; }
  .page-hero { padding: 56px 20px 46px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 38px; }
  .section-title h2 { font-size: 25px; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 32px; }
  .expert-grid { grid-template-columns: 1fr; }
  .expert-card { flex-direction: column; align-items: center; text-align: center; }
  .expert-card::before { display: none; }
  .panel { padding: 26px 22px; }
}

/* ========== Animations ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeInUp 0.7s cubic-bezier(.22,.61,.36,1) forwards; }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
