/* ============================================
   坚锋Topcentral - 统一全局样式表
   所有页面共享此样式，确保完全一致
   ============================================ */

:root {
  --primary: #0a1628;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --surface: #111d2e;
  --surface-light: #1a2d42;
  --surface-hover: #223a52;
  --text: #e8ecf1;
  --text-muted: #8a9bb0;
  --border: rgba(255,255,255,0.08);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-gold: linear-gradient(135deg, #c9a96e 0%, #e8d5a3 50%, #c9a96e 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation - 统一导航栏
   ============================================ */
nav {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: block;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

/* ============================================
   Page Header - 统一页面头部
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.page-header h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  font-size: 1.2em;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   Back Link - 返回链接
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 20px;
  margin: 20px 40px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  z-index: 10;
}
.back-link:hover {
  background: rgba(0, 212, 255, 0.1);
  padding-left: 25px;
}

/* ============================================
   Main Container - 统一内容容器
   ============================================ */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

/* ============================================
   Card Styles - 统一卡片
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

/* ============================================
   Button Styles - 统一按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(201, 169, 110, 0.4);
}

/* ============================================
   Form Styles - 统一表单
   ============================================ */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95em;
}
.form-group label .required {
  color: var(--accent);
  margin-left: 4px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-control::placeholder {
  color: var(--text-muted);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9bb0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ============================================
   Footer - 统一页脚
   ============================================ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  font-size: 1.5em;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}
.footer-brand p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95em;
}
.footer-links h4 {
  font-size: 1em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.3s;
  font-size: 0.95em;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
}
.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
  .page-header { padding: 60px 20px 40px; }
  .page-header h1 { font-size: 2em; }
  .main-container { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
