/* ================================================================
   天启云创 - 全局样式
   苏州咖岛科技有限公司
   ================================================================ */

/* ===== CSS 变量 ===== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --danger: #DC2626;
  --success: #059669;
  --warning: #D97706;
  --bg: #F1F5F9;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3C8;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text);
  background: var(--bg); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== Container ===== */
.container {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}

/* ===== Header / Navbar ===== */
.header {
  background: var(--white); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); border-bottom: 1px solid var(--border);
}

.navbar { padding: 0; }

.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; flex-shrink: 0;
}
.logo:hover { color: var(--primary); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); background: #EFF6FF; }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.user-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.mobile-menu-btn {
  display: none; width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; padding: 6px; border-radius: 6px;
}
.mobile-menu-btn:hover { background: #F1F5F9; }
.mobile-menu-btn svg { width: 100%; height: 100%; }

.mobile-nav { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all .2s; text-decoration: none; line-height: 1.4;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: #EFF6FF; color: var(--primary); }

.btn-danger {
  background: var(--danger); color: #fff;
}
.btn-danger:hover { background: #B91C1C; color: #fff; }

.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 36px; font-size: 15px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--primary), #3B82F6);
  border: none; border-radius: 50px; cursor: pointer;
  transition: all .25s; margin: 0 auto; font-family: inherit;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.submit-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Footer ===== */
.footer {
  background: #0F172A; color: #CBD5E1; padding: 48px 0 0;
  margin-top: 60px; border-top: 3px solid var(--primary);
}

.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #1E293B;
}

.footer-section h3 {
  font-size: 16px; font-weight: 700; color: #F1F5F9;
  margin-bottom: 14px;
}

.footer-section p { font-size: 13px; margin-bottom: 6px; line-height: 1.8; }
.footer-section a {
  display: block; font-size: 13px; color: #94A3C8; margin-bottom: 6px;
  transition: color .2s;
}
.footer-section a:hover { color: #fff; }

.footer-bottom {
  text-align: center; padding: 20px 0;
  font-size: 12px; color: #64748B;
}
.footer-bottom a { color: #94A3C8; }
.footer-bottom a:hover { color: #fff; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .user-area { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav {
    display: none; background: var(--white); border-top: 1px solid var(--border);
    padding: 12px 16px; flex-direction: column; gap: 4px;
  }
  .mobile-nav.show { display: flex; }
  .mobile-nav a {
    display: block; padding: 10px 12px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); text-decoration: none; border-radius: 6px;
  }
  .mobile-nav a:hover { background: #F1F5F9; color: var(--primary); }
  .mobile-nav a.active { color: var(--primary); font-weight: 600; background: #EFF6FF; }

  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* ===== Mobile nav toggle script helper ===== */
.mobile-menu-btn.active { background: #EFF6FF; }
