/* ========================================
   TK 智能匹配平台 - 沉浸式窗户风格设计
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1677ff;
  --primary-dark: #115ed0;
  --primary-light: #4096ff;
  --bg: #f5f7fb;
  --text: #1f2d3d;
  --muted: #68778a;
  --border: #e3e8ef;
  --card: #ffffff;
  --dark: #1f3552;
  --danger: #d9363e;
  --success: #16a34a;
  
  /* 窗户风格专用变量 */
  --window-frame: #2a2a2a;
  --window-frame-light: #3d3d3d;
  --window-rivet: #4a4a4a;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.15);
  --seat-color: #8B4513;
  --seat-accent: #A0522D;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========================================
   沉浸式窗户布局 - 首页专用
   ======================================== */

.immersive-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* 视频背景层 */
.video-background {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* 天空渐变叠加层 */
.sky-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(135, 206, 235, 0.3) 0%,
    rgba(135, 206, 235, 0.1) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* 云朵动画层 */
.clouds-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(20px);
  animation: cloudFloat linear infinite;
}

.cloud-1 {
  width: 200px;
  height: 80px;
  top: 10%;
  animation-duration: 45s;
}

.cloud-2 {
  width: 150px;
  height: 60px;
  top: 20%;
  animation-duration: 60s;
  animation-delay: -20s;
}

.cloud-3 {
  width: 180px;
  height: 70px;
  top: 8%;
  animation-duration: 55s;
  animation-delay: -35s;
}

@keyframes cloudFloat {
  0% { transform: translateX(-300px); }
  100% { transform: translateX(calc(100vw + 300px)); }
}

/* ========================================
   火车车厢框架
   ======================================== */

.train-cabin {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 10;
  padding-bottom: 40px;
}

/* 车厢顶部装饰 */
.cabin-roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: 100;
}

/* 车厢底部装饰 */
.cabin-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(0deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: 100;
}

/* ========================================
   导航栏 - 玻璃拟态风格
   ======================================== */

.immersive-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 16px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  box-shadow: 
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.immersive-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(22, 119, 255, 0.3);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.immersive-nav {
  display: flex;
  gap: 8px;
}

.immersive-nav a {
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.immersive-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.immersive-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.header-cta {
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   三窗户布局
   ======================================== */

.windows-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 20px;
}

/* 单个窗户 */
.window-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 0 3px var(--window-frame-light),
    inset 0 0 0 6px var(--window-frame);
}

/* 窗户金属边框 */
.window-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 8px solid var(--window-frame);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  z-index: 20;
  pointer-events: none;
}

/* 铆钉装饰 */
.window-frame::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  z-index: 21;
  pointer-events: none;
}

/* 侧边窗户（小） */
.window-side {
  width: 180px;
  height: 400px;
  flex-shrink: 0;
}

/* 中间窗户（大） */
.window-main {
  width: 680px;
  height: 520px;
  flex-shrink: 0;
}

/* 窗户玻璃效果 */
.window-glass {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
}

/* 窗户反光效果 */
.window-reflection {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 50%;
  height: 40%;
  border-radius: 18px 0 50% 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  z-index: 22;
  pointer-events: none;
}

/* 窗户内容区 */
.window-content {
  position: relative;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 25;
  color: white;
}

/* 侧窗户内容 */
.window-side .window-content {
  padding: 30px 20px;
}

.side-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.side-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.side-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* 主窗户内容 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '✨';
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CTA按钮组 */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btn-primary::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 座位装饰 */
.seat-left,
.seat-right {
  position: fixed;
  bottom: 0;
  width: 200px;
  height: 150px;
  z-index: 50;
  pointer-events: none;
}

.seat-left {
  left: 0;
  background: linear-gradient(135deg, var(--seat-color) 0%, var(--seat-accent) 100%);
  border-radius: 0 100px 0 0;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.seat-right {
  right: 0;
  background: linear-gradient(225deg, var(--seat-color) 0%, var(--seat-accent) 100%);
  border-radius: 100px 0 0 0;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 座位纹理 */
.seat-left::before,
.seat-right::before {
  content: '';
  position: absolute;
  inset: 20px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(0, 0, 0, 0.05) 5px,
    rgba(0, 0, 0, 0.05) 10px
  );
  border-radius: inherit;
}

/* ========================================
   功能特性区域
   ======================================== */

.features-section {
  position: relative;
  padding: 80px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 30;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 50px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  color: white;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.3);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ========================================
   页脚
   ======================================== */

.immersive-footer {
  position: relative;
  padding: 40px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  z-index: 30;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.footer-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
}

.footer-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: right;
}

.footer-info a {
  color: var(--primary-light);
}

.footer-info a:hover {
  text-decoration: underline;
}

/* ========================================
   其他页面样式（下载、联系等）
   ======================================== */

.standard-page {
  min-height: 100vh;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f3552, #1677ff);
  color: #fff;
  font-size: 18px;
}

.brand-text {
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-banner {
  background: linear-gradient(135deg, #1f3552, #325b87);
  color: #fff;
  padding: 48px 0;
}

.page-banner h1 {
  margin: 0 0 12px;
  font-size: 36px;
}

.section {
  padding: 40px 0;
}

.section.alt {
  background: #edf2f7;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 24px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(31, 45, 61, 0.06);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.1);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(31, 45, 61, 0.06);
}

.download-card h2 {
  margin-bottom: 16px;
}

.download-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.api-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(31, 45, 61, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand-text {
  font-weight: bold;
  margin-bottom: 4px;
}

.footer-sub {
  color: var(--muted);
  font-size: 14px;
}

.footer-contact {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.flash-wrap {
  padding: 16px;
}

.flash {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  animation: fadeSlideIn 0.25s ease;
}

.flash-success {
  background: #e8f7ee;
  color: #166534;
}

.flash-error {
  background: #fff1f2;
  color: #b42318;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
  .window-main {
    width: 550px;
    height: 450px;
  }
  
  .window-side {
    width: 150px;
    height: 350px;
  }
  
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 980px) {
  .immersive-header {
    top: 10px;
    padding: 12px 20px;
  }
  
  .header-content {
    gap: 20px;
  }
  
  .brand-name {
    display: none;
  }
  
  .immersive-nav {
    gap: 4px;
  }
  
  .immersive-nav a {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .windows-container {
    flex-direction: column;
    padding: 100px 20px 80px;
    gap: 16px;
  }
  
  .window-side {
    display: none;
  }
  
  .window-main {
    width: calc(100% - 40px);
    max-width: 500px;
    height: auto;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .seat-left,
  .seat-right {
    display: none;
  }
  
  .contact-grid,
  .cards.three {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .immersive-nav {
    display: none;
  }
  
  .header-cta {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .window-content {
    padding: 30px 20px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .features-section {
    padding: 50px 20px;
  }
  
  .features-title {
    font-size: 24px;
  }
}

/* ========================================
   动画和过渡效果
   ======================================== */

/* 页面加载动画 */
.immersive-page .window-frame {
  animation: windowFadeIn 0.8s ease-out;
}

@keyframes windowFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 按钮点击效果 */
.btn:active {
  transform: scale(0.98);
}

/* 滚动提示 */
.scroll-hint {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 40;
  animation: bounce 2s infinite;
}

.scroll-hint::after {
  content: '↓';
  font-size: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   单页滚动 - 区域样式
   ======================================== */

/* 英雄区域 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

/* 通用大标题 */
.section-title-large {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 50px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   下载区域
   ======================================== */

.download-section {
  position: relative;
  padding: 120px 40px;
  z-index: 30;
}

.download-container {
  max-width: 800px;
  margin: 0 auto;
}

.download-card-large {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  transition: all 0.3s ease;
}

.download-card-large:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.download-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 30px rgba(22, 119, 255, 0.3);
}

.download-details {
  color: white;
}

.download-filename {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.download-meta .divider {
  margin: 0 8px;
}

.btn-download {
  background: white;
  color: var(--primary);
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.download-arrow {
  font-size: 24px;
  animation: downloadBounce 1.5s ease-in-out infinite;
}

@keyframes downloadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.download-tips {
  margin-top: 30px;
  text-align: center;
}

.download-tips p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: inline-block;
}

/* ========================================
   联系我们区域
   ======================================== */

.contact-section {
  position: relative;
  padding: 120px 40px;
  z-index: 30;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card,
.contact-form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px;
  color: white;
}

.contact-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
}

.contact-qr {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qr-image {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-label {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 联系表单 */
.contact-form-new {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(22, 119, 255, 0.4);
}

/* ========================================
   增强动态背景效果
   ======================================== */

/* 更多云朵 */
.cloud-4 {
  width: 250px;
  height: 100px;
  top: 15%;
  animation-duration: 50s;
  animation-delay: -10s;
}

.cloud-5 {
  width: 180px;
  height: 70px;
  top: 25%;
  animation-duration: 70s;
  animation-delay: -45s;
}

/* ========================================
   平滑滚动导航
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* 导航高亮 */
.immersive-nav a {
  position: relative;
}

.immersive-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.immersive-nav a.active::after,
.immersive-nav a:hover::after {
  width: 60%;
}

/* ========================================
   响应式调整
   ======================================== */

@media (max-width: 980px) {
  .section-title-large {
    font-size: 32px;
  }
  
  .download-card-large {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .download-info {
    flex-direction: column;
  }
  
  .contact-grid-new {
    grid-template-columns: 1fr;
  }
  
  .contact-section,
  .download-section {
    padding: 80px 20px;
  }
}

@media (max-width: 600px) {
  .section-title-large {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .download-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .download-filename {
    font-size: 18px;
  }
  
  .btn-download {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* ========== Admin Dashboard Styles ========== */

.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #1f3552, #325b87);
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.admin-login-brand {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f3552, #1677ff);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.admin-login-tips {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

.admin-body {
  background: #eef2f7;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  background: linear-gradient(180deg, #1f3552, #243f61);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
  font-weight: bold;
}

.admin-sidebar-title {
  font-size: 18px;
  font-weight: bold;
}

.admin-sidebar-subtitle {
  margin-top: 6px;
  color: #c7d6e5;
  font-size: 13px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 14px;
  padding: 14px 14px;
  background: transparent;
  color: #d8e3ef;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-btn.active {
  background: #fff;
  color: var(--dark);
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

.admin-nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #1677ff;
  border-radius: 0 3px 3px 0;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.admin-content {
  min-width: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.admin-flash-wrap {
  padding: 18px 28px 0;
}

.admin-title {
  font-size: 26px;
  font-weight: bold;
}

.admin-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-main {
  padding: 24px 28px 40px;
}

.admin-panel {
  padding: 24px;
}

.admin-panel h2 {
  margin-top: 0;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-form-grid label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  line-height: 1.4;
  min-height: 1.4em;
}

.admin-form-grid input {
  width: 100%;
}

.admin-form-grid select {
  width: 100%;
}

.admin-form-grid textarea {
  resize: vertical;
  min-height: 92px;
}

.full-row {
  grid-column: 1 / -1;
}

.settings-grid {
  grid-template-columns: repeat(2, 1fr);
}

.field-tip {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.qr-preview-box {
  width: 180px;
  min-height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.qr-preview-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: #f0f5ff;
}

.admin-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.admin-table tbody tr:nth-child(even):hover {
  background: #f0f5ff;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.badge-success {
  background: #e8f7ee;
  color: #166534;
}

.badge-danger {
  background: #fff1f2;
  color: #b42318;
}

.badge-info {
  background: #e8f1ff;
  color: #175cd3;
}

.badge-warning {
  background: #fff7e6;
  color: #b54708;
}

.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.device-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: #fafbfd;
}

.contact-qr-section {
  margin: 14px 0 18px;
}

.contact-qr-title {
  margin-bottom: 10px;
  font-weight: bold;
}

.contact-qr-image {
  width: 220px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(31, 45, 61, 0.08);
}

.btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form.wrap {
  flex-wrap: wrap;
  align-items: center;
}

.btn-group-v {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-input {
  width: 92px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mini-input.wide {
  width: 160px;
}

.mini-select {
  width: 130px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f1ff, #d0e2ff);
  color: #325b87;
  padding: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sub-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fbfdff;
}

.sub-panel h3 {
  margin-bottom: 14px;
}

.admin-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.admin-list li + li {
  margin-top: 8px;
}

.compact-log-list {
  display: grid;
  gap: 10px;
}

.compact-log-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.btn-warning {
  background: #f79009;
  color: #fff;
}

.log-code {
  display: inline-block;
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: #334155;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inner-panel {
  margin-bottom: 18px;
}

.button-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.no-margin {
  margin: 0;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards.three,
  .contact-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    gap: 14px;
  }

  .header-inner,
  .footer-inner,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .admin-two-col,
  .info-grid,
  .info-grid.compact {
    grid-template-columns: 1fr;
  }
}

/* ========== Admin 2.0: Nav icons & grouping ========== */

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-nav-btn.active .nav-icon {
  opacity: 1;
  color: #1677ff;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-group {
  display: grid;
  gap: 6px;
}

.admin-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 14px 2px;
  margin-top: 6px;
}

.admin-nav-group:first-child .admin-nav-label {
  margin-top: 0;
}

/* ========== Admin 2.0: Card wrapper ========== */

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-card h2 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 22px;
}

/* 公司运营后台：以公司、账号和使用数据为主线。 */
.company-admin-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  background: #f5f7fb;
}

.company-admin-shell .admin-sidebar {
  background: #172b46;
  padding: 24px 16px;
  gap: 18px;
}

.company-admin-shell .admin-sidebar-brand {
  padding: 4px 8px 20px;
}

.company-admin-shell .admin-sidebar-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #236bc2;
  font-size: 16px;
}

.company-admin-shell .admin-nav {
  gap: 3px;
}

.company-admin-shell .admin-nav-label {
  margin-top: 14px;
  padding: 7px 12px 5px;
  color: #7890ad;
  font-size: 11px;
}

.company-admin-shell .admin-nav-label:first-child {
  margin-top: 0;
}

.company-admin-shell .admin-nav-btn {
  border-radius: 8px;
  padding: 11px 12px;
  color: #c2d0e1;
  font-size: 14px;
}

.company-admin-shell .admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.company-admin-shell .admin-nav-btn.active {
  background: #eaf3ff;
  color: #165a9c;
  box-shadow: none;
}

.company-admin-shell .admin-nav-btn.active::before {
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2682dd;
}

.nav-symbol {
  width: 20px;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.nav-count {
  margin-left: auto;
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #e8a33b;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.company-admin-shell .admin-sidebar-footer .btn {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.company-admin-header {
  min-height: 104px;
  padding: 26px 38px;
  background: #fff;
}

.company-admin-main {
  max-width: 1500px;
  padding: 34px 38px 54px;
}

.company-admin-shell .admin-title {
  font-size: 25px;
  color: #182b43;
}

.admin-kicker {
  color: #6f89a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c6b88;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ca56f;
  box-shadow: 0 0 0 4px #e6f6ee;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading-row h1,
.section-heading-row h2 {
  margin: 5px 0 7px;
  color: #182b43;
}

.section-heading-row h1 {
  font-size: 28px;
}

.section-heading-row h2 {
  font-size: 19px;
}

.section-heading-row p {
  margin: 0;
  color: #7890a8;
  font-size: 13px;
}

.compact-heading {
  align-items: center;
  margin-bottom: 17px;
}

.compact-heading h2 {
  margin-top: 0;
}

.company-admin-main .btn-primary,
.company-admin-main .btn-secondary {
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 13px;
}

.company-admin-main .btn-primary {
  background: #2878c6;
  color: #fff;
  box-shadow: none;
}

.company-admin-main .btn-primary:hover {
  background: #2168ae;
  box-shadow: 0 5px 12px rgba(40, 120, 198, .2);
  transform: translateY(-1px);
}

.company-admin-main .btn-primary::after {
  content: none;
}

.company-admin-main .btn-secondary {
  background: #eef5fb;
  color: #376486;
  border: 1px solid #dce8f2;
  box-shadow: none;
}

.company-admin-main .btn-secondary:hover {
  background: #e4f0fa;
  color: #245d8d;
  transform: translateY(-1px);
}

.company-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.company-admin-main .stat-card {
  min-height: 108px;
  padding: 18px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(31, 59, 89, .04);
}

.stat-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #edf5ff;
  color: #2875c4;
  font-size: 17px;
  font-weight: 700;
}

.company-admin-main .stat-label {
  margin-bottom: 5px;
  color: #8095aa;
  font-size: 12px;
}

.company-admin-main .stat-value {
  color: #1c3855;
  font-size: 25px;
}

.stat-value-small {
  font-size: 18px !important;
  line-height: 1.7;
}

.admin-section-block {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #e5ebf2;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 59, 89, .025);
}

.company-overview-list {
  display: grid;
}

.company-overview-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(74px, .7fr)) minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.company-overview-row:last-child {
  border-bottom: 0;
}

.company-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.company-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #eaf3ff;
  color: #216db9;
  font-size: 17px;
  font-weight: 700;
}

.company-identity div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.company-identity strong,
.company-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-identity span {
  color: #8095aa;
  font-size: 12px;
}

.company-metric {
  display: grid;
  gap: 3px;
}

.company-metric span,
.company-row-status small {
  color: #8b9daf;
  font-size: 11px;
}

.company-metric strong {
  color: #294867;
  font-size: 15px;
}

.company-row-status {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.3;
}

.status-pill.success { background: #e8f7ef; color: #20764e; }
.status-pill.warning { background: #fff4df; color: #a36a16; }
.status-pill.danger { background: #fff0f0; color: #b54747; }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quick-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e5ebf2;
  border-radius: 9px;
  background: #fff;
}

.quick-icon {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0f6fc;
  color: #2875c4;
  font-size: 20px;
}

.quick-item strong { color: #2d4964; font-size: 14px; }
.quick-item p { margin: 4px 0 0; color: #899bad; font-size: 12px; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: #2673be; cursor: pointer; font: inherit; font-size: 12px; }
.danger-text { color: #c25a5a; }
.count-label { margin-left: 5px; padding: 3px 7px; border-radius: 5px; background: #eef4fa; color: #68829d; font-size: 11px; font-weight: 400; vertical-align: middle; }

.company-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.company-form-grid label,
.settings-upload-grid label {
  display: grid;
  gap: 7px;
  color: #4e6780;
  font-size: 12px;
  font-weight: 600;
}

.company-form-grid input,
.company-form-grid select,
.company-form-grid textarea,
.settings-upload-grid input,
.account-toolbar select,
.account-toolbar input,
.admin-list-table select {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  background: #fff;
  color: #29435d;
  font: inherit;
  font-size: 13px;
}

.company-form-grid textarea { resize: vertical; }
.company-form-grid input:focus,
.company-form-grid select:focus,
.company-form-grid textarea:focus { outline: 0; border-color: #65a4da; box-shadow: 0 0 0 3px rgba(52, 133, 204, .1); }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.company-management-list { display: grid; gap: 10px; }
.company-management-item { border: 1px solid #e1e9f1; border-radius: 8px; overflow: hidden; }
.company-management-item summary { display: grid; grid-template-columns: minmax(220px, 1fr) auto 20px; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.company-management-item summary::-webkit-details-marker { display: none; }
.company-management-item summary:hover { background: #f9fbfd; }
.company-summary-metrics { display: flex; align-items: center; gap: 15px; color: #728ba4; font-size: 12px; }
.disclosure { color: #7f9ab5; font-size: 18px; transition: transform .2s ease; }
.company-management-item[open] .disclosure { transform: rotate(180deg); }
.company-management-body { padding: 4px 16px 16px; border-top: 1px solid #edf1f5; background: #fcfdff; }
.compact-company-form { padding-top: 15px; }
.company-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf1f5; }
.company-account-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf1f5; }
.company-account-list-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #45647f; font-size: 13px; }
.company-account-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #e1eaf2; border-radius: 6px; background: #fff; color: #376486; font-size: 12px; }
.account-chip:hover { border-color: #a8c9e5; background: #f7fbff; }

.account-create-block { border-left: 3px solid #428bd0; }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.account-toolbar h2 { display: inline; margin: 0 8px 0 0; color: #203d5a; font-size: 19px; }
.account-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.account-toolbar-actions select { width: 125px; }
.account-toolbar-actions input { width: 145px; }
.account-toolbar-actions input[type="number"] { width: 100px; }
.account-table-wrap { margin: 0 -4px; }
.account-table { min-width: 1050px; }
.account-table th, .account-table td, .usage-table th, .usage-table td { padding: 12px 10px; font-size: 12px; white-space: nowrap; }
.account-table td > strong, .account-table td > small, .usage-table td > strong, .usage-table td > small { display: block; }
.account-table td > small, .usage-table td > small { margin-top: 3px; color: #91a1b1; font-size: 11px; }
.company-cell { color: #356487; font-weight: 600; }
.table-actions { display: flex; align-items: center; gap: 10px; }
.table-actions form { margin: 0; }

.usage-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usage-table { min-width: 820px; }
.settings-block h2, .settings-form h2, .role-note h2 { margin: 0 0 17px; color: #203d5a; font-size: 18px; }
.settings-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-upload-grid form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 15px; border: 1px solid #e7edf3; border-radius: 7px; background: #fbfdff; }
.settings-upload-grid .btn { white-space: nowrap; }
.settings-note, .role-note p { margin-top: 12px; color: #7c91a6; font-size: 12px; }
.settings-form { display: grid; gap: 18px; }
.admin-list-table { margin-top: 20px; }
.admin-list-table .inline-form { align-items: center; }
.role-note { padding: 3px 10px; }
.role-note p { margin: 10px 0; }
.role-note strong { color: #45647f; }

.empty-state { padding: 28px 12px; color: #8b9daf; text-align: center; font-size: 13px; }

@media (max-width: 1200px) {
  .company-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-overview-row { grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(72px, .7fr)) minmax(120px, 1fr); }
  .company-overview-row .company-metric:nth-of-type(4) { display: none; }
}

@media (max-width: 980px) {
  .company-admin-shell { grid-template-columns: 1fr; }
  .company-admin-shell .admin-sidebar { min-height: auto; }
  .company-admin-shell .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .company-admin-shell .admin-nav-label { grid-column: 1 / -1; }
  .company-admin-shell .admin-sidebar-footer { grid-template-columns: 1fr 1fr; }
  .company-admin-header { padding: 24px; }
  .company-admin-main { padding: 26px 22px 40px; }
  .company-overview-row { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(68px, .7fr)) minmax(115px, 1fr); }
  .company-overview-row .company-metric:nth-of-type(3), .company-overview-row .company-metric:nth-of-type(4) { display: none; }
  .quick-grid, .settings-upload-grid, .admin-two-col { grid-template-columns: 1fr; }
  .account-toolbar { align-items: flex-start; flex-direction: column; }
  .account-toolbar-actions { width: 100%; flex-wrap: wrap; }
  .account-toolbar-actions select, .account-toolbar-actions input { flex: 1 1 130px; width: auto; }
}

@media (max-width: 620px) {
  .company-admin-shell .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-admin-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .company-stats-grid, .usage-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-overview-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .company-row-status { grid-column: 1 / -1; }
  .company-form-grid { grid-template-columns: 1fr; }
  .span-all { grid-column: auto; }
  .company-summary-metrics { display: none; }
  .company-management-item summary { grid-template-columns: 1fr 20px; }
  .settings-upload-grid form { grid-template-columns: 1fr; }
}

/* ========== Admin 2.0: Settings row layout ========== */

.settings-row-grid {
  display: grid;
  gap: 16px;
}

.settings-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.settings-row label {
  width: 140px;
  flex-shrink: 0;
  padding-top: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.settings-row input,
.settings-row select,
.settings-row textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-row input:focus,
.settings-row select:focus,
.settings-row textarea:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.settings-row textarea {
  resize: vertical;
  min-height: 72px;
}

/* ========== Admin 2.0: User actions dropdown ========== */

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions-toggle-wrap {
  position: static;
}

.actions-toggle-btn {
  user-select: none;
}

.actions-dropdown {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 9999;
  min-width: 280px;
}

.actions-toggle-wrap:not(.expanded) .actions-dropdown {
  display: none;
}

.actions-toggle-wrap.expanded .actions-dropdown {
  display: block;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.dropdown-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
}

.dropdown-close:hover {
  color: #333;
}

.dropdown-body {
  padding: 12px 16px;
}

.dropdown-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dropdown-form-row:last-of-type {
  margin-bottom: 0;
}

.dropdown-form-row .mini-input {
  flex-shrink: 0;
}

.dropdown-btn-full {
  width: 100%;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 14px -16px;
}

/* ========== Admin 2.0: Dropdown 设备列表 ========== */

.device-list {
  display: grid;
  gap: 8px;
}

.device-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fafbfd;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.device-item-name {
  font-weight: 600;
  font-size: 13px;
  color: #222;
}

.device-item-meta {
  font-size: 11px;
  color: #888;
  word-break: break-all;
}

/* ========== Admin 2.0: 创建账号表单 ========== */

.create-user-form {
  max-width: 520px;
}

.create-user-form .settings-row-action {
  padding-top: 8px;
}

/* ========== Bulk toolbar ========== */

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bulk-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.bulk-count {
  font-size: 13px;
  color: var(--muted);
  min-width: 70px;
}

/* ========== Table columns ========== */

.col-chk {
  width: 40px;
  text-align: center;
}

.col-actions {
  white-space: nowrap;
  min-width: 160px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ========== Admin 2.0: Misc ========== */

.btn-block {
  width: 100%;
}
