/* ====== KC集团首页 - 样式 ====== */

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

:root {
  --bg: #fafbfc;
  --text: #1a1a2e;
  --text2: #666;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --card-bg: #fff;
  --border: #e8e8e8;
  --radius: 10px;
  --g1: #667eea;
  --g2: #764ba2;
  --g3: #f093fb;
  --g4: #f5576c;
  --g5: #4facfe;
  --g6: #00f2fe;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f0f4ff 0%, #fafbfc 30%, #fdf2f8 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244,114,182,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ====== 标题区 ====== */
.section-hero {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}
.section-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--g5), var(--g1), var(--g2), transparent);
  border-radius: 2px;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  max-width: 140px;
  max-height: 140px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ====== 区块 ====== */
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.section-last {
  border-bottom: none;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--g1), var(--g2)) 1;
}

/* ====== 创始人合影 ====== */
.photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrapper img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 40px;
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: var(--radius);
  color: #999;
  font-size: 14px;
  width: 100%;
}

/* ====== 创始人列表 ====== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.founder-card.clickable {
  cursor: pointer;
}
.founder-card.clickable:hover {
  box-shadow: 0 4px 20px rgba(102,126,234,0.15);
  border-color: var(--g1);
  transform: translateY(-2px);
}

.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-info {
  flex: 1;
  min-width: 0;
}

.founder-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.founder-role {
  font-size: 13px;
  color: var(--text2);
  display: block;
  margin-top: 2px;
}

/* ====== 集团简介 & 加入我们 ====== */
.intro-text {
  font-size: 15px;
  color: #444;
  line-height: 2;
  white-space: pre-line;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.intro-text::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g5), var(--g1), var(--g2));
}

/* ====== 相关链接 ====== */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--accent);
  font-size: 15px;
  transition: all 0.25s;
}
.link-item:hover {
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  border-color: var(--g1);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(102,126,234,0.12);
}

.link-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ====== 底部 ====== */
.footer {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
  font-size: 13px;
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4d4f7, transparent);
  margin: 0 auto 20px;
}

/* ====== 公告弹窗 ====== */
.announce-banner {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 800px;
  flex: 1;
  justify-content: center;
}

.announce-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.announce-text {
  line-height: 1.5;
}

.announce-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.announce-close:hover {
  color: #fff;
}

/* ====== 右下角管理按钮 ====== */
.admin-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  z-index: 100;
}

.admin-btn:hover {
  width: auto;
  border-radius: 18px;
  padding: 0 14px;
  color: #666;
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-btn:hover::after {
  content: '管理';
  font-size: 12px;
  margin-left: 5px;
}

.admin-btn svg {
  flex-shrink: 0;
}

/* ====== 验证码弹窗 ====== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g5), var(--g1), var(--g2));
}

.modal-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.modal-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.modal-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  margin-bottom: 18px;
}

.modal-box input:focus {
  border-color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.modal-actions .btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.modal-hint {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
}

/* ====== 响应式 ====== */
@media (max-width: 640px) {
  .hero-title { font-size: 28px; }
  .section { padding: 32px 0; }
  .section-hero { padding: 50px 0 40px; }
  .founders-grid { grid-template-columns: 1fr; }
}

/* ====== 人物讲解弹窗 ====== */
.desc-box {
  text-align: left;
}

.desc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.desc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.desc-header strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.desc-role {
  font-size: 13px;
  color: var(--text2);
}

.desc-text {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}
