/* Base */
:root {
  --bg: #0A1429;
  --bg-elev: #0F1E3D;
  --card: #0D1A33;
  --text: #E9EEF7;
  --muted: #99A6BF;
  --line: #1E2A4A;
  --brand: #2F80ED;
  --brand-2: #1AC6FF;
  --accent: #22C55E;
  --warning: #F59E0B;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 75% -10%, #142145 0%, #0A1429 60%) no-repeat, var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 4.5vw, 54px); letter-spacing: .2px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-ghost { background: transparent; border-color: #2c3e66; color: var(--text); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 920px) {
  .grid-2 { grid-template-columns: 1.1fr .9fr; gap: 38px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,20,41,.75);
  backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { font-weight: 700; letter-spacing: .4px; font-size: 18px; }

.nav-toggle { display: inline-flex; background: transparent; color: var(--text); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; }
.nav-list { display: none; gap: 22px; align-items: center; }
.nav-list a { color: var(--muted); padding: 8px 6px; border-radius: 6px; }
.nav-list a.active, .nav-list a:hover { color: #fff; background: rgba(255,255,255,.06); }
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; }
  .brand-text { font-size: 20px; }
}

/* Keep hero title and lead in one line on desktop */
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; }
  .hero-copy { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-copy h1 { white-space: nowrap; font-size: clamp(42px, 6vw, 68px); letter-spacing: .8px; margin-bottom: 44px; }
  .hero .lead { white-space: nowrap; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .4px; margin-bottom: 60px; }
  .hero-stats { margin-bottom: 64px; justify-items: center; gap: 28px; grid-template-columns: repeat(5, minmax(160px, 1fr)); }
  .hero-stats .num { font-size: 38px; }
  .hero-stats .label { font-size: 16px; }
  .hero-ctas { justify-content: center; gap: 20px; }
  .hero-ctas .btn { padding: 18px 32px; font-size: 18px; }
}

/* Hero */
.hero { position: relative; padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.hero-copy { max-width: 1200px; }
.hero-copy h1 { margin-bottom: 36px; font-size: clamp(38px, 5vw, 58px); letter-spacing: .4px; }
.hero .lead { margin-bottom: 46px; font-size: clamp(18px, 2vw, 24px); letter-spacing: .2px; }
.hero-stats { margin-top: 0; margin-bottom: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-ctas { margin-top: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-ctas .btn { padding: 12px 20px; font-size: 15px; }
.hero-stats .num { display: block; font-weight: 700; font-size: 22px; white-space: nowrap; }
.hero-stats .label { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-stats .num { font-size: 24px; }
  .hero-stats .label { font-size: 13px; }
}
.hero-art { justify-self: center; max-width: 520px; }
.scroll-down { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); color: var(--muted); font-size: 22px; }
@media (min-width: 920px) {
  .hero { padding: 140px 0 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-stats { grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 20px; }
  .hero-stats .num { font-size: 30px; }
  .hero-stats .label { font-size: 15px; }
  .hero-ctas .btn { padding: 16px 28px; font-size: 17px; }
}

/* Sections */
.section { padding: 50px 0; border-top: 1px solid rgba(255,255,255,.06); }
@media (min-width: 920px) {
  .section { padding: 80px 0; }
}
.highlights ul { display: grid; gap: 10px; }
.highlights li { padding-left: 10px; border-left: 3px solid var(--brand); }

.bullets { display: grid; gap: 8px; }

/* About panel */
.about-panel { display: grid; grid-template-columns: 1fr; align-items: stretch; background: radial-gradient(1200px 600px at 20% -40%, rgba(255,255,255,.06), rgba(255,255,255,.02)) , #0F1E3D; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ap-copy { padding: 24px 20px; }
.ap-cn { font-size: clamp(24px, 3.2vw, 42px); font-weight: 700; letter-spacing: .6px; margin-bottom: 8px; }
.ap-en { font-size: clamp(18px, 2.6vw, 34px); letter-spacing: 2px; color: #c9d4ea; margin-bottom: 12px; text-transform: uppercase; }
.ap-line { width: 80px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 4px; margin: 12px 0 14px; }
.ap-content { color: #cfd6e6; display: grid; gap: 10px; line-height: 1.8; font-size: 14px; }
.ap-photo { position: relative; background: #0b1731; min-height: 240px; }
.ap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 920px) {
  .about-panel { grid-template-columns: 1.2fr .8fr; }
  .ap-copy { padding: 40px 36px; }
  .ap-en { letter-spacing: 4px; }
  .ap-line { width: 120px; height: 4px; margin: 16px 0 18px; }
  .ap-content { gap: 12px; line-height: 1.9; font-size: 15px; }
  .ap-photo { min-height: auto; }
}

/* Founder panel */
.founder-panel {
  display: grid;
  grid-template-columns: 1fr;
  background: radial-gradient(800px 400px at 10% 10%, rgba(255,255,255,.06), rgba(255,255,255,.02)) , #0F1E3D;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.fp-copy { padding: 24px 20px; }
.fp-role { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.fp-name { font-weight: 700; font-size: clamp(32px, 6vw, 82px); line-height: 1.05; margin-bottom: 10px; }
.fp-content { color: #cfd6e6; line-height: 1.8; display: grid; gap: 10px; font-size: 14px; }
.fp-photo { position: relative; background: #0b1731; min-height: 280px; order: -1; }
.fp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 920px) {
  .founder-panel { grid-template-columns: 1.2fr .8fr; }
  .fp-copy { padding: 34px 34px 34px 34px; }
  .fp-role { font-size: 16px; }
  .fp-content { line-height: 1.9; font-size: 15px; }
  .fp-photo { min-height: auto; order: 0; }
}

.profile { display: none; }
.avatar { display: none; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (min-width: 920px) { .portfolio-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; } }
.portfolio-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); box-shadow: var(--shadow); }
.portfolio-card img { width: 100%; height: 120px; object-fit: contain; background: #0c1730; padding: 18px; border-bottom: 1px solid var(--line); }
.pc-body { padding: 14px 16px 18px; }
.pc-body p { color: var(--muted); margin: 8px 0 0; }

.services .service-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 920px) { .services .service-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; } }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); box-shadow: var(--shadow); }
.service-card p { color: var(--muted); margin: 6px 0 0; }

.contact .contact-list { display: grid; gap: 10px; margin: 14px 0 22px; }
.contact .cl-label { display: inline-block; min-width: 88px; color: var(--muted); }
.wechat-block { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.wechat-block img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--line); background: #0c1730; }

.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; color: var(--text); background: #0b1731; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #3157ff; box-shadow: 0 0 0 3px rgba(49,87,255,.18); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; background: #081024; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* Back to top */
.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(47,128,237,.9); color: #fff; display: grid; place-items: center; border: none; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Active link underline */
.site-nav a.active { position: relative; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 2px;
}

/* Utilities */
.header-spacer { height: 68px; }

/* News Section */
.news-section { min-height: 60vh; }
.news-header { text-align: center; margin-bottom: 50px; }
.news-header h1 { margin-bottom: 12px; }
.news-header .muted { font-size: 16px; }

.news-list { display: grid; gap: 16px; margin-bottom: 40px; }
.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s ease;
  gap: 20px;
}
.news-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color: rgba(47,128,237,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.news-item-content { flex: 1; min-width: 0; }
.news-title {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s ease;
}
/* 鼠标悬停时标题变紫色（品牌色），并添加下划线效果 */
.news-item:hover .news-title {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(47, 128, 237, 0.5);
  text-underline-offset: 4px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  transition: color .3s ease;
}
.news-source { 
  color: var(--muted);
  transition: color .3s ease;
}
.news-date { 
  color: var(--muted);
  transition: color .3s ease;
}
/* 鼠标悬停时元信息也稍微变亮 */
.news-item:hover .news-source,
.news-item:hover .news-date {
  color: rgba(153, 166, 191, 0.8);
}
.news-arrow {
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.news-item:hover .news-arrow {
  transform: translateX(4px);
}

/* Pagination */
.news-pagination { margin-top: 40px; }
.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(.active) {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color: rgba(47,128,237,.4);
}
.pagination-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  font-weight: 500;
}
.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

@media (min-width: 920px) {
  .news-item { padding: 24px 28px; }
  .news-title { font-size: 18px; }
  .news-meta { font-size: 14px; }
}


