/* =============================================
   薪邦官网公共样式 - www.xinbang.vip
   ============================================= */
:root {
  --blue: #1a6fe8;
  --blue-dark: #1558c0;
  --blue-light: #e8f0fd;
  --orange: #ff7b00;
  --orange-light: #fff3e8;
  --green: #00b96b;
  --gray-100: #f7f8fc;
  --gray-200: #eef0f6;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,111,232,.08);
  --shadow-md: 0 8px 32px rgba(26,111,232,.13);
  --shadow-lg: 0 16px 48px rgba(26,111,232,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- NAV ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26,111,232,.08); padding: 0 5%; height: 64px; display: flex; align-items: center; justify-content: space-between; transition: box-shadow var(--transition); }
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: .95rem; color: var(--gray-600); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-btn { background: var(--blue); color: var(--white) !important; padding: 8px 22px; border-radius: 24px; font-weight: 600 !important; transition: background var(--transition), transform var(--transition) !important; }
.nav-btn:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 5% 60px; background: linear-gradient(135deg, #f0f6ff 0%, #fafbff 50%, #fff8f2 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(26,111,232,.06) 0%, transparent 70%); top: -100px; right: -100px; }
.hero::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,123,0,.05) 0%, transparent 70%); bottom: 0; left: -50px; }
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue); padding: 6px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title .accent { color: var(--blue); }
.hero-title .accent-orange { color: var(--orange); }
.hero-desc { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 28px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(26,111,232,.3); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,111,232,.4); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 4px 16px rgba(255,123,0,.3); }
.btn-orange:hover { background: #e06d00; transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ---- SECTIONS ---- */
.section { padding: 80px 5%; }
.section-gray { background: var(--gray-100); }
.section-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: var(--blue-light); color: var(--blue); padding: 4px 14px; border-radius: 12px; font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.section-tag-orange { background: var(--orange-light); color: var(--orange); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--gray-600); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.section-blue .section-desc { color: rgba(255,255,255,.8); }

/* ---- CARDS ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(26,111,232,.2); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.icon-blue { background: var(--blue-light); color: var(--blue); }
.icon-orange { background: var(--orange-light); color: var(--orange); }
.icon-green { background: #e6f9f2; color: var(--green); }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--gray-600); font-size: .95rem; line-height: 1.7; }

/* ---- ROLE CARDS (首页入口) ---- */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.role-card { border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; transition: all var(--transition); cursor: pointer; }
.role-card.blue { background: linear-gradient(135deg, var(--blue), #3a87f5); color: var(--white); }
.role-card.orange { background: linear-gradient(135deg, var(--orange), #ffaa44); color: var(--white); }
.role-card.green { background: linear-gradient(135deg, var(--green), #00d084); color: var(--white); }
.role-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.role-card .icon { font-size: 3rem; margin-bottom: 16px; }
.role-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.role-card p { opacity: .9; font-size: .95rem; margin-bottom: 24px; }
.role-card .btn-card { display: inline-block; background: rgba(255,255,255,.25); color: var(--white); padding: 10px 24px; border-radius: 20px; font-weight: 600; border: 1.5px solid rgba(255,255,255,.5); transition: background var(--transition); }
.role-card .btn-card:hover { background: rgba(255,255,255,.4); }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.section-blue .stat-num { color: var(--white); }
.stat-label { color: var(--gray-600); font-size: .9rem; margin-top: 6px; }
.section-blue .stat-label { color: rgba(255,255,255,.75); }

/* ---- PROCESS ---- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; position: relative; }
.process-step { text-align: center; padding: 24px 16px; position: relative; }
.process-step:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 32px; color: var(--blue); font-size: 1.4rem; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-title { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.step-desc { color: var(--gray-600); font-size: .85rem; }

/* ---- FOOTER ---- */
.footer { background: var(--gray-800); color: rgba(255,255,255,.7); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ---- PAGE HERO (内页) ---- */
.page-hero { padding: 120px 5% 70px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; opacity: .9; max-width: 560px; margin: 0 auto 32px; }

/* ---- FEATURE LIST ---- */
.feature-list { display: grid; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.feature-item:hover { box-shadow: var(--shadow-md); border-color: rgba(26,111,232,.2); transition: all var(--transition); }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.feature-text h4 { font-weight: 700; margin-bottom: 6px; }
.feature-text p { color: var(--gray-600); font-size: .93rem; }

/* ---- TIMELINE ---- */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gray-200); transform: translateX(-50%); }
.timeline-item { display: flex; gap: 32px; margin-bottom: 40px; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { flex: 1; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.timeline-dot { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; margin-top: 8px; z-index: 1; }
.timeline-year { color: var(--blue); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.timeline-content h4 { font-weight: 700; margin-bottom: 6px; }
.timeline-content p { color: var(--gray-600); font-size: .9rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: var(--gray-800); transition: background var(--transition); }
.faq-question:hover { background: var(--gray-100); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--gray-600); font-size: .95rem; line-height: 1.8; }
.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }
.faq-toggle { color: var(--blue); font-size: 1.2rem; transition: transform .3s; }
.faq-toggle.open { transform: rotate(45deg); }

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 1rem; color: var(--gray-800); outline: none; transition: border-color var(--transition); font-family: inherit; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,232,.1); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ---- BADGE / TAG ---- */
.tag { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: .8rem; font-weight: 600; }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.tag-green { background: #e6f9f2; color: var(--green); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .role-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-step:not(:last-child)::after { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { width: 32px; height: 32px; font-size: .75rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px 5%; box-shadow: var(--shadow-md); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
