/* ===== 51网 - 全站样式表 ===== */
/* 设计风格：商务简约（深蓝+白色+灰色线条） */
/* CSS前缀：ww- */

/* === 基础重置与变量 === */
:root {
  --ww-primary: #0D47A1;
  --ww-white: #FFFFFF;
  --ww-accent: #42A5F5;
  --ww-text: #37474F;
  --ww-gray: #F5F5F5;
  --ww-border: #E0E0E0;
  --ww-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --ww-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --ww-transition: all 0.2s ease-out;
  --ww-font-heading: 'Roboto', sans-serif;
  --ww-font-body: 'Noto Sans SC', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ww-font-body);
  color: var(--ww-text);
  background-color: var(--ww-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ww-primary);
  text-decoration: none;
  transition: var(--ww-transition);
}

a:hover {
  color: var(--ww-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ww-font-heading);
  color: var(--ww-primary);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin-bottom: 1rem; }

/* === 干扰标签隐藏 === */
.brief-jammer-block {
  display: none;
}

/* === 容器 === */
.ww-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .ww-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .ww-container { padding: 0 2rem; }
}

/* === 导航栏 === */
#ww-header {
  background: var(--ww-white);
  border-bottom: 1px solid var(--ww-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
}

.ww-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ww-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ww-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ww-primary);
}

.ww-logo img {
  height: 36px;
  width: auto;
}

.ww-nav-links {
  display: none;
  list-style: none;
  gap: 0;
}

.ww-nav-links li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--ww-text);
  font-size: 0.95rem;
  position: relative;
}

.ww-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--ww-accent);
  transition: width 0.2s ease-out;
}

.ww-nav-links li a:hover::after,
.ww-nav-links li a.ww-active::after {
  width: 60%;
}

.ww-nav-links li a:hover {
  color: var(--ww-primary);
}

@media (min-width: 1024px) {
  .ww-nav-links {
    display: flex;
  }
  .ww-hamburger {
    display: none;
  }
}

/* 汉堡菜单 */
.ww-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.ww-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ww-text);
  transition: var(--ww-transition);
}

/* 移动端侧边菜单 */
.ww-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--ww-white);
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: right 0.3s ease-out;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.ww-mobile-menu.ww-open {
  right: 0;
}

.ww-mobile-menu .ww-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ww-text);
  background: none;
  border: none;
}

.ww-mobile-menu ul {
  list-style: none;
  margin-top: 2rem;
}

.ww-mobile-menu ul li a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ww-border);
  color: var(--ww-text);
  font-size: 1rem;
}

.ww-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  display: none;
}

.ww-overlay.ww-show {
  display: block;
}

/* === Hero 区域 === */
.ww-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ww-primary) 0%, #1565C0 100%);
  color: var(--ww-white);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.ww-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-banner.webp') center/cover no-repeat;
  opacity: 0.15;
}

.ww-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ww-hero h1 {
  color: var(--ww-white);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.ww-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.ww-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--ww-accent);
  color: var(--ww-white);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--ww-transition);
  font-size: 1rem;
  font-family: var(--ww-font-body);
}

.ww-btn:hover {
  background: #1E88E5;
  color: var(--ww-white);
  transform: translateY(-2px);
  box-shadow: var(--ww-shadow-hover);
}

.ww-btn:active {
  transform: scale(0.97);
}

.ww-btn-outline {
  background: transparent;
  border: 2px solid var(--ww-white);
  color: var(--ww-white);
}

.ww-btn-outline:hover {
  background: var(--ww-white);
  color: var(--ww-primary);
}

.ww-btn-primary {
  background: var(--ww-primary);
}

.ww-btn-primary:hover {
  background: #1565C0;
}

/* === 模块通用 === */
.ww-section {
  padding: 3.5rem 0;
}

.ww-section:nth-child(even) {
  background: var(--ww-gray);
}

.ww-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ww-section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.ww-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--ww-accent);
}

.ww-section-title p {
  color: #607D8B;
  margin-top: 0.8rem;
  font-size: 1rem;
}

/* === 卡片 === */
.ww-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ww-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ww-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.ww-card {
  background: var(--ww-white);
  border: 1px solid var(--ww-border);
  box-shadow: var(--ww-shadow);
  padding: 1.5rem;
  transition: var(--ww-transition);
}

.ww-card:hover {
  box-shadow: var(--ww-shadow-hover);
  transform: translateY(-3px);
}

.ww-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.ww-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ww-card p {
  font-size: 0.9rem;
  color: #607D8B;
}

.ww-tag {
  display: inline-block;
  background: #E3F2FD;
  color: var(--ww-primary);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  margin-top: 0.5rem;
}

.ww-budget {
  color: var(--ww-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* === 人才推荐 === */
.ww-talent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ww-talent-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .ww-talent-grid { grid-template-columns: repeat(4, 1fr); }
}

.ww-talent-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--ww-white);
  border: 1px solid var(--ww-border);
  transition: var(--ww-transition);
}

.ww-talent-card:hover {
  box-shadow: var(--ww-shadow-hover);
  transform: translateY(-2px);
}

.ww-talent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--ww-accent);
}

.ww-talent-card h4 {
  color: var(--ww-text);
  margin-bottom: 0.3rem;
}

.ww-talent-card .ww-skill {
  font-size: 0.85rem;
  color: #607D8B;
}

.ww-rating {
  color: #FFA000;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* === 薪资指南表格 === */
.ww-table-wrap {
  overflow-x: auto;
}

.ww-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ww-table th,
.ww-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ww-border);
}

.ww-table th {
  background: var(--ww-primary);
  color: var(--ww-white);
  font-weight: 500;
}

.ww-table tr:hover {
  background: #E3F2FD;
}

/* === 评价滚动 === */
.ww-testimonial-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.ww-testimonial-item {
  min-width: 300px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--ww-white);
  border: 1px solid var(--ww-border);
  padding: 1.5rem;
}

.ww-testimonial-item blockquote {
  font-style: italic;
  color: #546E7A;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ww-testimonial-item .ww-author {
  font-weight: 600;
  color: var(--ww-primary);
}

/* === 会员模块 === */
.ww-membership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ww-membership-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ww-membership-grid { grid-template-columns: repeat(3, 1fr); }
}

.ww-membership-card {
  background: var(--ww-white);
  border: 2px solid var(--ww-border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--ww-transition);
}

.ww-membership-card.ww-featured {
  border-color: var(--ww-accent);
  position: relative;
}

.ww-membership-card.ww-featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ww-accent);
  color: var(--ww-white);
  padding: 0.2rem 1rem;
  font-size: 0.8rem;
}

.ww-membership-card h3 {
  margin-bottom: 0.5rem;
}

.ww-membership-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ww-primary);
  margin: 1rem 0;
}

.ww-membership-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #607D8B;
}

.ww-membership-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.ww-membership-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ww-gray);
  font-size: 0.9rem;
}

.ww-membership-features li::before {
  content: '✓';
  color: var(--ww-accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* === 表单 === */
.ww-form-group {
  margin-bottom: 1.5rem;
}

.ww-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--ww-text);
}

.ww-form-group input,
.ww-form-group select,
.ww-form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ww-border);
  font-family: var(--ww-font-body);
  font-size: 0.95rem;
  color: var(--ww-text);
  transition: border-color 0.2s;
}

.ww-form-group input:focus,
.ww-form-group select:focus,
.ww-form-group textarea:focus {
  outline: none;
  border-color: var(--ww-accent);
}

.ww-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 分步表单 */
.ww-step-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.ww-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ww-step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ww-border);
  color: #607D8B;
  font-weight: 600;
  font-size: 0.85rem;
}

.ww-step.ww-step-active .ww-step-num {
  background: var(--ww-primary);
  color: var(--ww-white);
}

.ww-step.ww-step-done .ww-step-num {
  background: var(--ww-accent);
  color: var(--ww-white);
}

.ww-step-line {
  width: 40px;
  height: 2px;
  background: var(--ww-border);
  margin: 0 0.3rem;
}

.ww-step-panel {
  display: none;
}

.ww-step-panel.ww-step-visible {
  display: block;
  animation: wwFadeIn 0.3s ease-out;
}

@keyframes wwFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === APP下载页 === */
.ww-app-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .ww-app-section {
    flex-direction: row;
    gap: 3rem;
  }
}

.ww-app-mockup {
  flex: 0 0 auto;
  max-width: 300px;
}

.ww-app-mockup img {
  width: 100%;
}

.ww-app-info {
  flex: 1;
}

.ww-app-info h1 {
  margin-bottom: 1rem;
}

.ww-app-info p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.ww-download-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ww-qr-code {
  width: 150px;
  height: 150px;
  background: var(--ww-gray);
  border: 1px solid var(--ww-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #607D8B;
  margin-top: 1.5rem;
}

/* === 页脚 === */
#ww-footer {
  background: #263238;
  color: #B0BEC5;
  padding: 3rem 0 1.5rem;
}

.ww-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .ww-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.ww-footer-col h4 {
  color: var(--ww-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.ww-footer-col ul {
  list-style: none;
}

.ww-footer-col ul li {
  margin-bottom: 0.5rem;
}

.ww-footer-col ul li a {
  color: #B0BEC5;
  font-size: 0.9rem;
}

.ww-footer-col ul li a:hover {
  color: var(--ww-accent);
}

.ww-footer-bottom {
  border-top: 1px solid #37474F;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.ww-footer-bottom .ww-honor {
  margin-bottom: 0.8rem;
  color: #90A4AE;
}

.ww-footer-bottom .ww-license {
  margin-bottom: 0.5rem;
}

.ww-footer-bottom .ww-license a {
  color: #90A4AE;
}

.ww-footer-bottom .ww-copyright {
  color: #78909C;
}

/* === 公告列表 === */
.ww-announcement-list {
  list-style: none;
}

.ww-announcement-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ww-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ww-announcement-list li .ww-date {
  font-size: 0.85rem;
  color: #90A4AE;
  flex-shrink: 0;
}

/* === 内页通用 === */
.ww-page-header {
  background: var(--ww-primary);
  color: var(--ww-white);
  padding: 2.5rem 0;
  text-align: center;
}

.ww-page-header h1 {
  color: var(--ww-white);
  font-size: 2rem;
}

.ww-page-header p {
  opacity: 0.85;
  margin-top: 0.5rem;
}

.ww-page-content {
  padding: 3rem 0;
}

/* === 响应式断点 === */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .ww-hero h1 { font-size: 1.8rem; }
}

@media (min-width: 361px) and (max-width: 767px) {
  .ww-hero h1 { font-size: 2rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ww-hero { padding: 5rem 0 4rem; }
}

@media (min-width: 1024px) {
  .ww-hero { padding: 6rem 0 5rem; }
  .ww-hero h1 { font-size: 2.8rem; }
}

@media (min-width: 1440px) {
  .ww-container { max-width: 1320px; }
}

/* === 法律保障模块 === */
.ww-legal-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ww-legal-features { grid-template-columns: repeat(3, 1fr); }
}

.ww-legal-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--ww-white);
  border: 1px solid var(--ww-border);
}

.ww-legal-item .ww-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* === 淡入动画 === */
.ww-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ww-fade-in.ww-visible {
  opacity: 1;
  transform: translateY(0);
}
