* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6; color: #2c3e50;
  background: #f0f2f5; min-height: 100vh;
}

.dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border: 1px solid #eef0f3; padding: 6px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.25s; z-index: 1001; }
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 14px; font-size: 13px; color: #555; text-decoration: none; border-radius: 7px; transition: all 0.15s; white-space: nowrap; }
.dropdown li a:hover { background: #fff5f5; color: #C00; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #555; border-radius: 2px; transition: all 0.3s; }

.top-bar { background: linear-gradient(135deg, #C00 0%, #8B0000 100%); color: #fff; padding: 24px 20px; text-align: center; box-shadow: 0 4px 20px rgba(192,0,0,0.25); position: relative; overflow: hidden; }
.top-bar::before { content: ''; position: absolute; top: -50%; right: -10%; width: 240px; height: 240px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.top-bar::after { content: ''; position: absolute; bottom: -60%; left: -5%; width: 180px; height: 180px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.top-bar h1 { font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; position: relative; z-index: 1; }
.top-bar p { font-size: 12px; opacity: 0.85; position: relative; z-index: 1; }

.layout { max-width: 1400px; margin: 0 auto; padding: 20px 20px 40px; display: grid; grid-template-columns: 360px 1fr 320px; gap: 20px; align-items: start; }
.sidebar-left { }
.form-area { min-width: 0; }
.card { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid #eef0f3; transition: box-shadow 0.3s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card-title { font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f5f6fa; display: flex; align-items: center; justify-content: space-between; }
.card-title .left { display: flex; align-items: center; gap: 8px; }
.card-title .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: linear-gradient(135deg, #C00, #8B0000); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; flex-shrink: 0; }
.card-title .right-tag { font-size: 11px; color: #C00; background: #fff5f5; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group > label { display: block; font-size: 13px; color: #555; margin-bottom: 8px; font-weight: 500; }
input[type="number"], input[type="text"], input[type="tel"], select, textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #e4e7ec; border-radius: 10px; font-size: 14px; color: #2c3e50; outline: none; background: #fafbfc; transition: all 0.25s; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: #C00; background: #fff; box-shadow: 0 0 0 4px rgba(192,0,0,0.08); }
input::placeholder, textarea::placeholder { color: #b8c0cc; }
textarea { resize: vertical; min-height: 72px; }
.hint { font-size: 11px; color: #97a1b0; margin-top: 6px; line-height: 1.5; }
.radio-group { display: flex; gap: 10px; }
.radio-group label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; padding: 10px 12px; border: 1.5px solid #e4e7ec; border-radius: 10px; background: #fafbfc; transition: all 0.25s; user-select: none; }
.radio-group label:has(input:checked) { border-color: #C00; background: linear-gradient(135deg, #fff5f5, #ffe8e8); color: #C00; font-weight: 600; box-shadow: 0 2px 8px rgba(192,0,0,0.12); }
.radio-group input[type="radio"] { display: none; }

.num-wrap { position: relative; display: flex; width: 100%; }
.num-wrap > input[type="number"] {
  flex: 1; width: auto; min-width: 0;
  padding-right: 44px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.num-wrap > input[type="number"]::-webkit-outer-spin-button,
.num-wrap > input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.num-wrap .num-btns {
  position: absolute;
  right: 3px; top: 3px; bottom: 3px;
  width: 34px;
  display: flex; flex-direction: column;
  border-left: 1px solid #e4e7ec;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}
.num-wrap .num-btn {
  flex: 1;
  background: #f0f2f5;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: #666;
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}
.num-wrap .num-btn:hover { background: #ffe8e8; color: #C00; }
.num-wrap .num-btn:active { background: #C00; color: #fff; }
.num-wrap .num-btn.up { border-bottom: 1px solid #e4e7ec; }
.num-wrap .num-btn svg { display: block; }

.score-panel { position: sticky; top: 80px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); border: 1px solid #eef0f3; }
.total-score-box { background: linear-gradient(135deg, #C00 0%, #8B0000 100%); color: #fff; padding: 28px 20px; text-align: center; position: relative; overflow: hidden; }
.total-score-box::before { content: ''; position: absolute; top: -40%; right: -20%; width: 160px; height: 160px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.total-score-box .label { font-size: 12px; opacity: 0.85; letter-spacing: 1px; margin-bottom: 8px; position: relative; z-index: 1; }
.total-score-box .score { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.total-score-box .score .unit { font-size: 16px; font-weight: 500; opacity: 0.8; margin-left: 4px; }
.total-score-box .tip { font-size: 11px; opacity: 0.7; margin-top: 10px; position: relative; z-index: 1; }
.qualify-warning { padding: 12px 20px; background: #fff8e6; color: #b8860b; font-size: 12px; text-align: center; border-bottom: 1px solid #f5e6c8; }
.score-list { padding: 8px 0; }
.score-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; font-size: 13px; transition: background 0.2s; }
.score-item:hover { background: #fafbfc; }
.score-item .name { display: flex; align-items: center; gap: 8px; color: #555; }
.score-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #d0d5dd; flex-shrink: 0; }
.score-item .dot.active { background: #C00; }
.score-item .val { font-weight: 700; color: #2c3e50; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.score-item .val.positive { color: #C00; }
.score-item .val.negative { color: #27ae60; }
.score-item .val.zero { color: #b8c0cc; }

.reference-line { padding: 14px 20px; background: #fafbfc; border-top: 1px solid #eef0f3; font-size: 11px; color: #97a1b0; text-align: center; line-height: 1.6; }
.year-line-title { font-weight: 700; color: #2c3e50; font-size: 12px; margin-bottom: 8px; text-align: left; }
.year-line-list { display: flex; flex-direction: column; gap: 4px; }
.year-line-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dashed #eef0f3; }
.year-line-item:last-child { border-bottom: none; }
.year-line-item .year { color: #555; font-size: 12px; }
.year-line-item .score-val { font-weight: 700; color: #C00; font-size: 12px; }
.year-line-note { margin-top: 8px; font-size: 10px; color: #97a1b0; line-height: 1.5; }

.service-card { background: linear-gradient(160deg, #faf7fd 0%, #f2eaf9 60%, #e8dcf5 100%); border: 1.5px solid #c8a8e0; position: relative; overflow: hidden; padding: 18px; }
.service-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(142,68,173,0.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.service-card .card-title { color: #5B2C6F; border-bottom-color: #dcc8e8; position: relative; z-index: 1; font-size: 16px; }
.service-card .card-title .num { background: linear-gradient(135deg, #8E44AD, #5B2C6F); }
.service-card .card-title .right-tag { background: #f0e3f8; color: #5B2C6F; }
.edu-highlight { background: linear-gradient(135deg, #f5eafc 0%, #e8d6f5 100%); border: 2px solid #b07fd0; border-radius: 12px; padding: 14px; margin-bottom: 14px; position: relative; z-index: 1; box-shadow: 0 3px 12px rgba(142,68,173,0.15); }
.edu-highlight .edu-badge { display: inline-block; background: linear-gradient(135deg, #8E44AD, #5B2C6F); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; margin-bottom: 8px; }
.edu-highlight .edu-title { font-size: 14px; font-weight: 700; color: #5B2C6F; margin-bottom: 6px; }
.edu-highlight .edu-desc { font-size: 12px; color: #7B5A8F; line-height: 1.7; margin-bottom: 10px; }
.edu-highlight .edu-desc strong { color: #8E44AD; font-size: 14px; }
.edu-highlight .edu-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #8E44AD, #5B2C6F); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 18px; text-decoration: none; transition: all 0.25s; box-shadow: 0 3px 10px rgba(142,68,173,0.3); border: none; cursor: pointer; }
.edu-highlight .edu-btn:hover { box-shadow: 0 5px 16px rgba(142,68,173,0.45); transform: translateY(-1px); }

/* ★ 改名为 jf-service-list / jf-service-item，避免和 jifen-index.css 冲突 */
.jf-service-list { list-style: none; margin-top: 4px; position: relative; z-index: 1; }
.jf-service-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin-bottom: 8px; background: rgba(255,255,255,0.8); border: 1px solid #dcc8e8; border-radius: 10px; font-size: 12px; line-height: 1.6; transition: all 0.25s; }
.jf-service-item:hover { background: #fff; box-shadow: 0 2px 10px rgba(142,68,173,0.12); }
.jf-service-item:last-child { margin-bottom: 0; }
.jf-service-item .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.jf-service-item .content { flex: 1; color: #555; min-width: 0; }
.jf-service-item .content strong { color: #5B2C6F; }
.jf-service-item .action { flex-shrink: 0; font-size: 11px; color: #8E44AD; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 2px 8px; border: 1px solid #c8a8e0; border-radius: 10px; background: #fff; align-self: center; }
.jf-service-item .action:hover { background: #8E44AD; color: #fff; }

.degree-zone { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #dcc8e8; position: relative; z-index: 1; }
.degree-zone-title { font-size: 13px; font-weight: 700; color: #5B2C6F; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.degree-zone-title .sub { font-size: 11px; font-weight: 400; color: #9B7DB5; margin-left: 4px; }
.degree-list { display: flex; flex-direction: column; gap: 6px; }
.degree-link { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: rgba(255,255,255,0.8); border: 1px solid #dcc8e8; border-radius: 10px; text-decoration: none; transition: all 0.25s; }
.degree-link:hover { background: #fff; border-color: #c8a8e0; box-shadow: 0 3px 12px rgba(142,68,173,0.15); transform: translateX(3px); }
.degree-link .degree-icon { font-size: 16px; flex-shrink: 0; }
.degree-link .degree-info { flex: 1; min-width: 0; }
.degree-link .degree-name { font-size: 12px; font-weight: 600; color: #7B5A8F; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.degree-link .degree-meta { font-size: 10px; color: #9B7DB5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.degree-link .degree-badge { flex-shrink: 0; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.degree-link .degree-badge.master { background: #e8f4fd; color: #2980b9; }
.degree-link .degree-badge.doctor { background: #fde8f0; color: #c0392b; }
.degree-link .degree-arrow { flex-shrink: 0; font-size: 12px; color: #c8a8e0; transition: transform 0.2s; }
.degree-link:hover .degree-arrow { transform: translateX(2px); color: #8E44AD; }
.contact-zone { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #dcc8e8; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.contact-zone .qr-box { flex-shrink: 0; width: 88px; height: 88px; background: #fff; border: 1px solid #dcc8e8; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.contact-zone .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.contact-zone .qr-box .qr-placeholder { font-size: 10px; color: #9B7DB5; text-align: center; line-height: 1.4; padding: 6px; }
.contact-zone .contact-info { flex: 1; min-width: 0; }
.contact-zone .contact-info .title { font-size: 12px; font-weight: 600; color: #5B2C6F; margin-bottom: 6px; }
.contact-zone .contact-info .phone { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #8E44AD; margin-bottom: 4px; }
.contact-zone .contact-info .desc { font-size: 10px; color: #9B7DB5; line-height: 1.5; }
.form-zone { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dcc8e8; position: relative; z-index: 1; }
.form-zone .form-zone-title { font-size: 12px; font-weight: 600; color: #5B2C6F; margin-bottom: 10px; }
.form-zone .form-row { margin-bottom: 8px; }
.form-zone .form-row input, .form-zone .form-row textarea { background: #fff; border-color: #dcc8e8; padding: 9px 11px; font-size: 12px; }
.form-zone .form-row input:focus, .form-zone .form-row textarea:focus { border-color: #8E44AD; box-shadow: 0 0 0 4px rgba(142,68,173,0.12); }
.form-zone .form-row.two-col { display: flex; gap: 8px; }
.form-zone .form-row.two-col input { flex: 1; min-width: 0; }
.submit-btn { width: 100%; padding: 11px; background: linear-gradient(135deg, #8E44AD, #5B2C6F); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s; box-shadow: 0 3px 12px rgba(142,68,173,0.3); margin-top: 4px; }
.submit-btn:hover { box-shadow: 0 5px 18px rgba(142,68,173,0.45); transform: translateY(-1px); }
.submit-tip { font-size: 10px; color: #9B7DB5; text-align: center; margin-top: 6px; }
.form-success { display: none; padding: 10px; background: #f0faf4; border: 1px solid #b8e6c8; border-radius: 10px; color: #27ae60; font-size: 12px; text-align: center; margin-top: 10px; }



.reset-btn { font-size: 11px; color: #fff; background: linear-gradient(135deg, #C00, #8B0000); border: none; padding: 5px 12px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 6px rgba(192,0,0,0.25); font-family: inherit; }
.reset-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,0,0,0.4); }
.reset-btn:active { transform: translateY(0); }

@media (max-width: 1200px) { .layout { grid-template-columns: 320px 1fr 300px; gap: 14px; } }
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-bottom: 1px solid #eef0f3; display: none; }
  .nav-menu.active { display: flex; }
  .nav-menu > li > a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid #f5f6fa; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: auto; display: none; }
  .nav-menu > li:hover .dropdown { display: none; }
  .nav-menu > li.open .dropdown { display: block; }
  .layout { grid-template-columns: 1fr 300px; gap: 14px; }
  .sidebar-left { grid-column: 1 / -1; order: 3; }
  .form-area { order: 1; }
  .score-panel { order: 2; }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; padding: 14px 12px 30px; }
  .score-panel {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: none;
    border-bottom: 2px solid #C00;
  }
  .total-score-box {
    padding: 8px 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .total-score-box::before { display: none; }
  .total-score-box .label {
    font-size: 10px;
    letter-spacing: 0;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.2;
  }
  .total-score-box .score {
    font-size: 28px;
    letter-spacing: -0.5px;
    line-height: 1.1;
  }
  .total-score-box .score .unit { font-size: 12px; margin-left: 2px; }
  .total-score-box .tip {
    font-size: 10px;
    margin-top: 0;
    opacity: 0.85;
    line-height: 1.2;
  }
  .score-list { display: none; }
  .reference-line { display: none; }
  .qualify-warning { padding: 5px 12px; font-size: 11px; }

  .layout { padding-top: 20px; }
  .form-area { order: 1; }
  .sidebar-left { order: 2; }
  .top-bar { padding: 18px 16px; }
  .top-bar h1 { font-size: 18px; }
  .card { padding: 16px; border-radius: 12px; }
  .contact-zone { flex-direction: row; }
  .contact-zone .qr-box { width: 100px; height: 100px; }
  .contact-zone .contact-info { width: auto; }


  .num-wrap .num-btns { width: 40px; }
  .num-wrap > input[type="number"] { padding-right: 50px; }
  .num-wrap .num-btn { font-size: 12px; }
}