/* ========================================
   底特率影视传媒 — 官网样式表 v2
   风格：影视大片 / 暗色影院 / 金色点缀
   ======================================== */

/* === 阿里妈妈灵动体 (Alimama Agile) === */
@font-face {
  font-family: 'Alimama Agile';
  src: url('/fonts/AlimamaAgileVF-Thin.woff2') format('woff2'),
       url('/fonts/AlimamaAgileVF-Thin.woff') format('woff');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

/* === CSS 变量 === */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --color-bg-input: #161616;
  --color-text: #f0f0f0;
  --color-text-secondary: #999999;
  --color-text-light: #666666;
  --color-text-inverse: #0a0a0a;
  --color-border: #222222;
  --color-border-hover: #333333;
  --color-gold: #c9a96e;
  --color-gold-light: #d4b87a;
  --color-gold-dark: #a88a4e;
  --color-white: #ffffff;

  --font-display: 'Alimama Agile', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Alimama Agile', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1280px;
  --header-height: 72px;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(201,169,110,0.15);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* === Typography === */
h1, h2, h3, h4 { font-weight: 400; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-body);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  box-shadow: 0 0 30px rgba(201,169,110,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-text-inverse);
  box-shadow: 0 0 30px rgba(201,169,110,0.3);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-danger {
  border-color: #c0392b;
  color: #c0392b;
  background: transparent;
}
.btn-danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* === =====================================
   Header — 透明→暗色 滚动切换
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-white);
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list a {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  text-transform: uppercase;
}
.nav-list a:hover { color: var(--color-gold); }

.btn-portal { color: var(--color-gold) !important; font-weight: 500; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === =====================================
   Hero — 全屏电影级大标题 + 粒子画布
   ======================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #050505 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(180,150,100,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-content .hero-tag {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-gold);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.15s both;
}

.hero-content h1 .gold { color: var(--color-gold); }

.hero-content .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 6px;
  margin-bottom: 48px;
  animation: fadeInUp 1s ease 0.3s both;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.45s both;
}

.hero-cta .btn { min-width: 160px; }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 1s ease 0.8s both;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.25);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--color-gold);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -30%; }
  100% { top: 100%; }
}

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

/* === =====================================
   Section Common
   ======================================== */
.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header .section-tag {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.section-header .section-sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
}

.section-line {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 20px auto 0;
}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === =====================================
   About Section
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.about-visual .play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: rgba(201,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.about-visual .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid var(--color-gold);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.about-visual .play-btn:hover {
  background: var(--color-gold);
  box-shadow: 0 0 40px rgba(201,169,110,0.3);
}
.about-visual .play-btn:hover::after {
  border-left-color: var(--color-text-inverse);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.about-visual .visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
}

.about-text .about-tag {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 15px;
  font-weight: 300;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number .unit {
  font-size: 24px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === =====================================
   Services Section
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
}

.service-card {
  background: var(--color-bg);
  padding: 56px 36px 48px;
  position: relative;
  transition: all var(--transition);
  cursor: default;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }

.service-card .service-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: rgba(201,169,110,0.08);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: rgba(201,169,110,0.18); }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.service-card h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.service-card .service-line {
  width: 30px;
  height: 1px;
  background: var(--color-gold);
  margin-top: 24px;
  transition: width var(--transition);
}
.service-card:hover .service-line { width: 60px; }

/* === =====================================
   Works / Portfolio Section
   ======================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-card);
}

.work-thumb {
  width: 100%;
  height: 100%;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.06); }

.work-thumb .work-placeholder {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.3;
}

/* Work overlay on hover */
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.work-card:hover .work-overlay { opacity: 1; pointer-events: none; }

.work-overlay .work-category {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-overlay h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 6px;
}

.work-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-light);
}
.no-data .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.no-data p { font-size: 15px; }

/* === =====================================
   Contact Section
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info .contact-tag {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 40px;
  line-height: 1.3;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: border-color var(--transition);
}
.contact-item:hover .icon { border-color: var(--color-gold); }

.contact-item .label {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item .value {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 300;
}

/* Contact Form */
.contact-form {
  background: var(--color-bg-card);
  padding: 48px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.contact-form h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition);
  font-weight: 300;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

/* === =====================================
   Footer
   ======================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-white);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
  transition: color 0.3s;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--color-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

/* === =====================================
   Login Page
   ======================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 24px;
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.login-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 56px 48px;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.login-box .login-sub {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 40px;
  font-weight: 300;
}

.login-box .form-group input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition);
  border-radius: 0;
  font-weight: 300;
}
.login-box .form-group input:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}
.login-box .form-group input::placeholder {
  color: var(--color-text-light);
}

.login-box .btn {
  width: 100%;
  margin-top: 16px;
}

.login-error {
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  color: #e74c3c;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}

.login-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 1px;
  transition: color 0.3s;
}
.login-back:hover { color: var(--color-gold); }

/* === =====================================
   Portal Layout (暗色化)
   ======================================== */
.portal-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.portal-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
}

.portal-nav {
  display: flex;
  gap: 28px;
}

.portal-nav a {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.portal-nav a:hover,
.portal-nav a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.portal-user a { color: var(--color-text-light); font-size: 12px; }
.portal-user a:hover { color: var(--color-gold); }

.portal-body {
  margin-top: 56px;
  min-height: calc(100vh - 56px);
  background: var(--color-bg-alt);
}

.portal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px;
}

/* Portal Dashboard */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.portal-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 36px;
  transition: all var(--transition);
  display: block;
}
.portal-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.portal-card .card-icon {
  font-size: 36px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.portal-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.portal-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* Files Page */
.file-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.file-toolbar .filter-btn {
  padding: 8px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.file-toolbar .filter-btn:hover,
.file-toolbar .filter-btn.active {
  background: var(--color-gold);
  color: var(--color-text-inverse);
  border-color: var(--color-gold);
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition);
}
.file-item:hover { border-color: var(--color-border-hover); }

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.file-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.file-meta { min-width: 0; }

.file-meta .file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}

.file-meta .file-detail {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.file-category {
  font-size: 11px;
  background: var(--color-bg);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  flex-shrink: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* OpenClaw Page */
.openclaw-page {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.openclaw-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.openclaw-toolbar h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
}

.openclaw-iframe {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 500px;
  border: none;
  background: #fff;
}

.openclaw-fallback {
  text-align: center;
  padding: 64px 24px;
}
.openclaw-fallback p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* === =====================================
   Admin Layout (暗色化)
   ======================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: #050505;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
}

.sidebar-header {
  padding: 28px 20px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-header h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.sidebar-header .sidebar-user {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  letter-spacing: 1px;
}
.sidebar-nav a:hover {
  background: rgba(201,169,110,0.06);
  color: var(--color-gold);
}
.sidebar-nav a.active {
  background: rgba(201,169,110,0.1);
  color: var(--color-gold);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-footer a {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 1px;
}
.sidebar-footer a:hover { color: var(--color-gold); background: rgba(201,169,110,0.06); }

.admin-main {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  background: var(--color-bg);
}

.admin-content {
  padding: 40px;
  max-width: 1100px;
}

.admin-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 32px;
}

/* Admin Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--color-border-hover); }

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Admin Table */
.admin-table-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(201,169,110,0.03); }

.admin-table .badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}
.badge-admin { background: var(--color-gold); color: #0a0a0a; }
.badge-employee { background: var(--color-border); color: var(--color-text-secondary); }
.badge-active { background: rgba(46,125,50,0.2); color: #4caf50; }
.badge-inactive { background: rgba(198,40,40,0.2); color: #ef5350; }

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin Forms */
.admin-form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 36px;
  margin-bottom: 24px;
}

.admin-form-card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 24px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.admin-form .form-group.full { grid-column: 1 / -1; }
.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.admin-form .form-group textarea { height: 100px; resize: vertical; }
.admin-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.admin-form .form-actions {
  grid-column: 1 / -1;
  padding-top: 8px;
}

/* Alert */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.alert-success {
  background: rgba(46,125,50,0.1);
  color: #4caf50;
  border: 1px solid rgba(46,125,50,0.2);
}
.alert-error {
  background: rgba(198,40,40,0.1);
  color: #ef5350;
  border: 1px solid rgba(198,40,40,0.2);
}

/* Thumbnail */
.thumb-preview {
  width: 80px;
  height: 45px;
  border-radius: 2px;
  background: var(--color-bg);
  object-fit: cover;
}

/* Content Edit */
.content-edit-list {
  display: grid;
  gap: 16px;
}
.content-edit-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.content-edit-item h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.content-edit-item .section-label {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.content-edit-item textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
  min-height: 80px;
}
.content-edit-item textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.content-edit-item .btn { margin-top: 12px; }

/* === =====================================
   Prompt Workshop (暗色化)
   ======================================== */
.workshop-header { margin-bottom: 24px; }
.workshop-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 6px;
}
.workshop-header p { color: var(--color-text-secondary); font-size: 13px; }

.workshop-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--color-border);
}
.type-tab {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  letter-spacing: 1px;
}
.type-tab:hover { color: var(--color-text); }
.type-tab.active {
  background: var(--color-gold);
  color: var(--color-text-inverse);
}

.workshop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.workshop-shelf { display: grid; gap: 12px; }
.workshop-category {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.workshop-cat-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.workshop-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.workshop-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  user-select: none;
  letter-spacing: 1px;
}
.workshop-tag:hover { border-color: var(--color-gold); color: var(--color-gold); }
.workshop-tag.active {
  background: var(--color-gold);
  color: var(--color-text-inverse);
  border-color: var(--color-gold);
}

.workshop-cart {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: sticky;
  top: 80px;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.cart-header h3 { font-size: 14px; font-weight: 500; letter-spacing: 2px; color: var(--color-white); }
.cart-summary {
  padding: 16px 20px;
  min-height: 60px;
  max-height: 260px;
  overflow-y: auto;
}
.cart-empty { color: var(--color-text-light); font-size: 12px; text-align: center; padding: 12px 0; }
.cart-cat-group { margin-bottom: 10px; line-height: 1.8; }
.cart-cat-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cart-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin: 2px 4px;
  color: var(--color-text);
}
.cart-tag-remove {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0 2px;
  line-height: 1;
}
.cart-tag-remove:hover { color: #c0392b; }

.cart-result {
  margin: 0 20px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.result-label {
  font-size: 10px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.result-text { color: var(--color-text); font-size: 13px; line-height: 1.7; word-break: break-all; min-height: 24px; }
.cart-actions { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.copy-feedback { font-size: 12px; opacity: 0; transition: opacity 0.3s ease; color: var(--color-gold); }
.copy-feedback.show { opacity: 1; }

/* Duration slider */
.duration-slider-wrap { padding: 4px 0; }
.duration-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
}
.duration-display { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.duration-value { font-size: 26px; font-weight: 700; color: var(--color-white); min-width: 40px; text-align: center; }
.duration-unit { font-size: 13px; color: var(--color-text-secondary); margin-right: 8px; }
.duration-presets { display: flex; gap: 6px; }
.preset-btn {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
}
.preset-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.preset-btn.active { background: var(--color-gold); color: var(--color-text-inverse); border-color: var(--color-gold); }
.workshop-video-extras { border: 2px dashed var(--color-border); padding: 16px; border-radius: var(--radius-sm); }

/* === =====================================
   No Data / Empty States
   ======================================== */
.no-data {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-light);
}
.no-data .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.2; }
.no-data p { font-size: 14px; letter-spacing: 1px; }

/* === =====================================
   Video Modal — 站内视频弹窗
   ======================================== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.video-modal-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16/9;
  max-height: 85vh;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--color-white);
  font-size: 14px;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Click hint on work cards */
.work-card[data-video-url] {
  cursor: pointer;
  position: relative;
}

.work-card[data-video-url] .work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='white' stroke-width='2' opacity='0.8'/%3E%3Cpolygon points='24,18 24,42 44,30' fill='white' opacity='0.9'/%3E%3C/svg%3E") center/50px no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card[data-video-url]:hover .work-thumb::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .video-modal { padding: 12px; }
  .video-modal-close { top: 16px; right: 16px; width: 36px; height: 36px; font-size: 16px; }
  .video-modal-container { aspect-ratio: 16/9; max-height: 50vh; }
}

/* === =====================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workshop-layout { grid-template-columns: 1fr; }
  .workshop-cart { position: static; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .admin-form { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 56px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-list.open { display: flex; }

  .hero-content h1 { font-size: clamp(28px, 8vw, 48px); letter-spacing: 3px; }
  .hero-content .subtitle { font-size: 13px; letter-spacing: 3px; }
  .hero-content .hero-tag { font-size: 12px; letter-spacing: 4px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { min-width: 180px; }

  .works-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 10px; }

  .footer-links { flex-wrap: wrap; gap: 20px; justify-content: center; }

  /* Admin mobile */
  .admin-sidebar {
    width: 100%;
    position: relative;
    flex-direction: column;
    padding: 0;
  }
  .admin-layout { flex-direction: column; }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .portal-cards { grid-template-columns: 1fr; }
  .file-item { flex-direction: column; align-items: flex-start; }
  .login-box { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .admin-form { grid-template-columns: 1fr; }
}
