
/* 研究生教育学科专业目录系统：适配用户上传的 gkzs.net 首页视觉体系 */
:root{
  --brand:#10b981;
  --brand-2:#059669;
  --ink:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --soft-blue:#ecfdf5;
  --green:#059669;
  --amber:#d97706;
  --white:#fff;
  --shadow:0 10px 40px -10px rgba(0,0,0,.06);
  --radius:16px;
  --max:1280px;
}
html{scroll-padding-top:90px}
body{background:#f8fafc;color:#1e293b}
a{color:#059669}
a:hover{color:#047857}
.container{width:min(var(--max),calc(100% - 32px))}

/* Header adapted from the uploaded homepage */
.gk-header{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
.gk-header-inner{height:80px}
.gk-brand-title{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap;font-size:24px;line-height:1;font-weight:700;letter-spacing:-.025em;color:#1e293b}
.gk-brand-sub{font-size:11px;line-height:1.2;color:#64748b;margin-top:4px;font-weight:500;letter-spacing:.05em}
.gk-main-nav{align-items:center;gap:8px;margin:0 24px}
.gk-main-nav a{padding:10px 20px;border-radius:9999px;color:#475569;font-weight:500;transition:all .3s ease;white-space:nowrap}
.gk-main-nav a:hover{color:#fff;background:#059669;box-shadow:0 0 20px rgba(16,185,129,.36);transform:translateY(-2px) scale(1.04)}
.gk-main-nav a.active{background:#ecfdf5;color:#059669;font-weight:600;box-shadow:0 4px 12px rgba(16,185,129,.15)}
.gk-header .nav-toggle{display:none;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:#ecfdf5;color:#059669;font-size:22px;line-height:1;box-shadow:none}
.gk-header .nav-toggle:hover{background:#d1fae5;color:#047857}
.mobile-nav{border-top:1px solid #f1f5f9;background:#fff;box-shadow:0 12px 22px rgba(15,23,42,.08)}
.mobile-nav-inner{width:min(1280px,calc(100% - 32px));margin:0 auto;padding:12px 0 18px;display:grid;gap:4px}
.mobile-nav a{display:block;padding:12px 16px;border:0;border-radius:12px;color:#475569;font-size:14px;font-weight:500}
.mobile-nav a:hover,.mobile-nav a.active{color:#059669;background:#ecfdf5}

/* Main content: preserve original markup/functionality, apply uploaded site's visual language */
.hero{position:relative;overflow:hidden;background:#fff;border-bottom:1px solid #f1f5f9;padding:56px 0 48px}
.hero::before{content:"";position:absolute;z-index:0;left:50%;top:-330px;transform:translateX(-50%);width:1000px;height:500px;background:radial-gradient(circle,rgba(16,185,129,.15) 0%,rgba(255,255,255,0) 70%);opacity:.45;pointer-events:none}
.hero>.container{position:relative;z-index:1}
.hero h1{color:#1e293b;font-size:clamp(30px,4vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.25;margin-bottom:14px}
.hero p{color:#64748b;font-size:16px;line-height:1.8;max-width:880px}
.eyebrow{color:#059669;font-weight:700}.eyebrow:before{background:#10b981;height:3px;border-radius:999px}
.breadcrumb,.breadcrumb a{color:#94a3b8}.breadcrumb a:hover{color:#059669}
body[data-root=""] .hero{text-align:center;padding-top:64px;padding-bottom:56px}
body[data-root=""] .hero p{margin-left:auto;margin-right:auto}
body[data-root=""] .hero .eyebrow{justify-content:center}
body[data-root=""] .search-shell{margin-left:auto;margin-right:auto}

.search-shell{max-width:760px;margin-top:28px}
.search-box{border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 40px -10px rgba(0,0,0,.10);overflow:hidden;background:#fff}
.search-box:focus-within{border-color:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.10),0 10px 40px -10px rgba(0,0,0,.08)}
.search-box input{padding:16px 18px;font-size:16px;background:#fff;color:#1e293b}
.search-box button{background:#059669;padding:16px 25px;font-weight:600;transition:background .2s}
.search-box button:hover{background:#047857}
.search-hint{color:#94a3b8;margin-top:10px}
.search-results{top:58px;border-color:#e2e8f0;border-radius:16px;box-shadow:0 16px 40px rgba(15,23,42,.13)}
.search-result:hover{background:#f8fafc}.search-code{color:#059669}

.stats{gap:16px;margin-top:32px}
.stat{border:1px solid #f1f5f9;border-radius:16px;padding:20px;background:#fff;box-shadow:0 10px 40px -10px rgba(0,0,0,.06);transition:all .25s ease}
.stat:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(16,185,129,.09)}
.stat strong{color:#059669;font-size:28px}.stat span{color:#64748b}

.section{padding:48px 0}.section.alt{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9}
.section-head{margin-bottom:24px}.section-head h2{font-size:26px;font-weight:700;color:#1e293b}.section-head p{color:#64748b}
.category-grid{gap:14px}
.category-card{border:1px solid #f1f5f9;border-radius:16px;padding:18px;background:#fff;box-shadow:0 4px 20px -4px rgba(0,0,0,.035);transition:all .28s ease}
.category-card:hover{transform:translateY(-4px);border-color:#d1fae5;box-shadow:0 12px 30px -4px rgba(16,185,129,.10)}
.category-code{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:28px;padding:0 9px;border-radius:999px;background:#ecfdf5;color:#059669;font-weight:700}
.category-card h3{color:#1e293b;font-size:17px;margin-top:10px}.category-card p{color:#94a3b8}

.panel,.explain,.side-card{border-color:#f1f5f9;border-radius:16px;box-shadow:0 4px 20px -4px rgba(0,0,0,.035)}
.toolbar{background:#fff;border-bottom-color:#f1f5f9;padding:16px}
.toolbar input{border-color:#e2e8f0!important;border-radius:12px!important;padding:10px 13px!important;background:#fff}
.toolbar input:focus{border-color:#10b981!important;box-shadow:0 0 0 4px rgba(16,185,129,.09)!important}
.filter-btn{border-color:#e2e8f0;border-radius:999px;color:#64748b;padding:8px 14px;font-weight:500;transition:all .2s}
.filter-btn:hover{border-color:#a7f3d0;color:#059669;background:#ecfdf5}
.filter-btn.active{background:#059669;border-color:#059669;color:#fff;box-shadow:0 4px 12px rgba(16,185,129,.18)}
.directory-table th{background:#f8fafc;color:#64748b}.directory-table th,.directory-table td{border-bottom-color:#f1f5f9}.directory-table tr:hover td{background:#f8fafc}
.code-pill,.name-link:hover{color:#059669}.name-link{color:#334155}
.type-pill.prof{background:#ecfdf5;color:#059669}.type-pill.master{background:#fffbeb;color:#d97706}
.big-code{background:linear-gradient(135deg,#10b981,#059669);border-radius:12px;box-shadow:0 8px 18px rgba(16,185,129,.20)}
.detail-title-row h2{color:#1e293b}.meta-grid{border-color:#e2e8f0;border-radius:14px}.meta-item{border-color:#f1f5f9}.meta-item span{color:#94a3b8}
.notice{border-left-color:#10b981;background:#ecfdf5;color:#475569}.notice.warn{border-left-color:#f59e0b;background:#fffbeb}
.side-list a{border-color:#f1f5f9;color:#475569}.side-list a:hover{color:#059669}.side-list code{color:#059669}
.code-demo strong{color:#059669}.mapping-table th{background:#f8fafc}.mapping-table th,.mapping-table td{border-bottom-color:#f1f5f9}

/* Footer adapted from uploaded homepage */
.gk-footer{margin-top:48px}.gk-footer a{color:inherit}.gk-footer a:hover{color:#34d399}
.gk-footer .footer-link-list a{font-size:14px;color:#94a3b8}
.gk-footer .footer-link-list a:hover{color:#34d399}

.skip-link{background:#0f172a}
.filter-btn:focus-visible,.search-box button:focus-visible,.nav-toggle:focus-visible,a:focus-visible{outline:2px solid #10b981;outline-offset:2px}

@media(max-width:1100px){
  .gk-main-nav a{padding:9px 13px;font-size:14px}
}
@media(max-width:767px){
  .gk-header-inner{height:72px}
  .gk-brand-title{font-size:20px}.gk-brand-sub{display:none}
  .gk-main-nav{display:none!important}
  .gk-header .nav-toggle{display:grid!important;place-items:center}
  .hero{padding:42px 0 38px}.hero h1{font-size:28px}.hero p{font-size:14px}
  body[data-root=""] .hero{padding-top:48px;padding-bottom:44px}
  .section{padding:36px 0}
}
@media(max-width:640px){
  .container{width:min(100% - 24px,var(--max))}
  .stats{gap:10px}.stat{padding:15px}.stat strong{font-size:23px}
  .category-card{padding:15px}
  .search-box input{font-size:14px;padding:14px}.search-box button{padding:14px 16px}
  .section-head h2{font-size:23px}
}

/* V4：首页统计卡片改为更明显的浅绿色底色 */
.home-stats .stat {
  background: linear-gradient(145deg, #ecfdf5 0%, #e4f8ef 100%);
  border-color: #a7f3d0;
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.08);
}
.home-stats .stat:hover {
  border-color: #6ee7b7;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.13);
}
.home-stats .stat strong {
  color: #047857;
}

/* V4：数据说明页正文改为分块式阅读结构 */
.about-section {
  background: #f8fafc;
}
.about-grid {
  align-items: start;
}
.about-explain {
  padding: 8px 28px;
  overflow: hidden;
}
.about-rule {
  padding: 25px 0 24px;
  border-bottom: 1px solid #e8eef3;
}
.about-rule:last-child {
  border-bottom: 0;
}
.about-rule-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.about-rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .06em;
}
.about-rule h2 {
  margin: 0;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 750;
}
.about-rule p {
  margin: 0;
  padding-left: 54px;
  color: #475569;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .01em;
}
.about-aside {
  position: sticky;
  top: 104px;
}
.about-feedback p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .about-aside {
    position: static;
  }
}
@media (max-width: 640px) {
  .about-explain {
    padding: 4px 18px;
  }
  .about-rule {
    padding: 21px 0 20px;
  }
  .about-rule-head {
    align-items: flex-start;
  }
  .about-rule p {
    padding-left: 0;
    font-size: 14px;
    line-height: 1.9;
  }
}


/* V5：首页代码说明模块优化 */
.code-guide-section{padding-top:42px;padding-bottom:54px}
.code-guide{padding:0;overflow:hidden}
.code-guide-head{padding:26px 28px 20px;border-bottom:1px solid #f1f5f9;background:linear-gradient(180deg,#fff 0%,#fbfefc 100%)}
.code-guide-kicker{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:700;letter-spacing:.04em;margin-bottom:10px}
.code-guide-head h2{margin:0;color:#1e293b;font-size:22px;line-height:1.35;font-weight:700}
.code-guide-head p{margin:8px 0 0;color:#64748b;font-size:14px;line-height:1.8}
.code-guide-list{padding:6px 28px}
.code-guide-item{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid #eef2f7}
.code-guide-item:last-child{border-bottom:0}
.code-guide-code{padding:14px 16px;border:1px solid #d1fae5;border-radius:14px;background:linear-gradient(145deg,#ecfdf5,#f7fffb)}
.code-guide-code span{display:block;color:#059669;font-size:12px;font-weight:650;margin-bottom:5px}
.code-guide-code strong{display:block;color:#047857;font-size:30px;line-height:1.1;letter-spacing:.13em;font-variant-numeric:tabular-nums}
.code-guide-copy h3{margin:0 0 6px;color:#334155;font-size:17px;font-weight:700}
.code-guide-copy p{margin:0;color:#64748b;font-size:14px;line-height:1.9}
.code-guide-copy b{color:#047857;font-weight:700}
.code-guide-note{display:flex;align-items:flex-start;gap:12px;margin:8px 28px 28px;padding:15px 17px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.code-guide-note-mark{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#d1fae5;color:#047857;font-size:13px;font-weight:800;margin-top:1px}
.code-guide-note p{margin:0;color:#64748b;font-size:13px;line-height:1.85}
.code-guide-note strong{color:#334155}
@media(max-width:640px){
  .code-guide-head{padding:22px 20px 17px}
  .code-guide-list{padding:4px 20px}
  .code-guide-item{grid-template-columns:1fr;gap:12px;padding:18px 0}
  .code-guide-code{max-width:190px}
  .code-guide-note{margin:6px 20px 22px}
}
