/* ===== CSS Variables ===== */
.cursor-theme {
  --primary-color: #7cb9e8;
  --primary-light: #a8d8f0;
  --primary-dark: #5a9fd4;
  --secondary-color: #b0d4f1;
  --accent-color: #6bb6ff;
  --bg-color: #f0f7ff;
  --card-bg: #fafcff;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ===== Background Shapes ===== */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cursor-theme .shape-1 {
  background: rgba(124, 185, 232, 0.2);
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
}

.cursor-theme .shape-2 {
  background: rgba(176, 212, 241, 0.15);
  width: 600px;
  height: 600px;
  bottom: -300px;
  left: -200px;
}

.cursor-theme .shape-3 {
  background: rgba(107, 182, 255, 0.12);
  width: 400px;
  height: 400px;
  top: 40%;
  right: 30%;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: hsla(0, 0%, 100%, 0.92);
  border-bottom: 1px solid rgba(124, 185, 232, 0.15);
  box-shadow: 0 2px 16px rgba(124, 185, 232, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(124, 185, 232, 0.3));
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #409eff, #7cb9e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.site-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ===== Header (legacy) ===== */
.modern-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: hsla(0, 0%, 100%, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.7));
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(64, 158, 255, 0.15);
  border: 1px solid hsla(0, 0%, 100%, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(64, 158, 255, 0.25);
}

.logo-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, hsla(0, 0%, 100%, 0.8) 50%, transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  z-index: 1;
  pointer-events: none;
}

.logo-container.active-brand {
  border: 2px solid #409eff;
  box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
}

.logo-container.inactive-brand {
  opacity: 0.7;
  cursor: pointer;
  border: 2px solid transparent;
}

.logo-container.inactive-brand:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: #67c23a;
  box-shadow: 0 4px 15px rgba(103, 194, 58, 0.3);
}

.logo-wrapper {
  position: relative;
  margin-right: 12px;
}

.logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(64, 158, 255, 0.4);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 1;
  top: 0;
  left: 0;
  animation: pulse 2s infinite;
}

.windsurf-glow {
  background: radial-gradient(circle, rgba(103, 194, 58, 0.3) 0, transparent 70%) !important;
}

.kiro-glow {
  background: radial-gradient(circle, rgba(245, 166, 35, 0.3) 0, transparent 70%) !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, #409eff, #67c23a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  margin-bottom: -2px;
}

.windsurf-brand {
  background: linear-gradient(135deg, #67c23a, #14b8a6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.kiro-brand {
  background: linear-gradient(135deg, #f5a623, #ffd07a) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.brand-slogan {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  letter-spacing: 1px;
}

.premium-badge {
  background: linear-gradient(45deg, #f56c6c, #e6a23c);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px hsla(0, 87%, 69%, 0.3);
  animation: badge-glow 2s infinite;
}

.windsurf-badge {
  background: linear-gradient(135deg, #67c23a, #14b8a6) !important;
}

.kiro-badge {
  background: linear-gradient(135deg, #f5a623, #ff8c00) !important;
}

/* ===== Main Container ===== */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== Notice Banner ===== */
.notice-banner {
  background: linear-gradient(135deg, #7cb9e8, #a8d8f0);
  color: #fff;
  padding: 12px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(124, 185, 232, 0.3);
  border-radius: 10px;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.notice-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bell {
  font-size: 20px;
  animation: bellRing 2s infinite;
}

.notice-label {
  color: gold;
  font-weight: 600;
  font-size: 14px;
}

.notice-text-wrapper {
  flex: 1;
  overflow: hidden;
  height: 24px;
}

.notice-text {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.notice-text.scroll-animation {
  animation: scrollLeft 15s linear infinite;
}

/* ===== Hero Section ===== */
.hero-section {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 4px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.animated-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out;
}

.title-main-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cursor-theme .gradient-text {
  background: linear-gradient(135deg, #7cb9e8, #a8d8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.highlight-dot {
  font-size: 36px;
  color: var(--primary-color);
  animation: pulseDot 1.5s infinite;
}

.sub-title {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text-primary);
  margin-top: 5px;
  display: block;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 540px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.highlight-text {
  font-weight: 700;
  color: var(--primary-color);
  background-color: rgba(124, 185, 232, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.animated-text {
  display: inline-block;
  background: linear-gradient(90deg, #5a6c7d, #7cb9e8, #a8d8f0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
}

.action-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease-out 0.6s both;
}

.tutorial-view-btn {
  position: relative;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7cb9e8, #5a9fd4);
  color: #fff;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(124, 185, 232, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 185, 232, 0.6);
  background: linear-gradient(135deg, #a8d8f0, #7cb9e8);
}

.btn-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: particles 1.5s linear infinite;
}

.btn-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.btn-particles span:nth-child(2) { top: 60%; left: 15%; animation-delay: 0.2s; }
.btn-particles span:nth-child(3) { top: 40%; left: 70%; animation-delay: 0.4s; }
.btn-particles span:nth-child(4) { top: 65%; left: 80%; animation-delay: 0.6s; }
.btn-particles span:nth-child(5) { top: 30%; left: 90%; animation-delay: 0.8s; }

.support-btn-container {
  position: relative;
}

.support-btn {
  background: linear-gradient(135deg, #ff5858, #f09819);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(240, 152, 25, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(240, 152, 25, 0.6);
}

.support-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4d4f;
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  padding: 2px 8px;
  font-weight: 700;
  animation: bounce 2s infinite;
}

.pulse-animation {
  animation: pulse-border 2s infinite;
}

/* ===== Error Solutions ===== */
.model-selection-section {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #fff, #f7f9fc);
  border: 1px solid hsla(0, 0%, 100%, 0.8);
}

.model-selection-card {
  padding: 24px 20px;
  background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-selection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='30' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='70' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E");
  animation: matrixMove 20s linear infinite;
}

.model-selection-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.error-image-container {
  width: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(100, 200, 255, 0.25);
}

.error-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.error-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.error-code {
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
}

.error-desc {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 14px;
}

.premium-model-btn {
  padding: 10px 24px;
  border-radius: 24px;
  border: 2px solid rgba(100, 200, 255, 0.5);
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(40, 40, 80, 0.9));
  color: #64c8ff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 100%;
  justify-content: center;
}

.premium-model-btn:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  border-color: rgba(100, 200, 255, 0.8);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent, hsla(0, 0%, 100%, 0.4) 50%, transparent);
  transform: rotate(45deg);
  animation: btn-shine 3s infinite;
}

/* ===== Content Grid ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.content-grid .notices-section {
  height: 100%;
}

.content-grid .installer-section {
  height: 100%;
}

/* ===== Glass Cards ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(124, 185, 232, 0.12);
  border: 1px solid rgba(124, 185, 232, 0.18);
  padding: 28px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon-inline {
  color: var(--primary-color);
}

/* ===== Download Section ===== */
.download-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download-card {
  padding: 20px;
  background: linear-gradient(145deg, var(--card-bg), #fff);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(124, 185, 232, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7cb9e8, #a8d8f0);
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(124, 185, 232, 0.2);
}

.download-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 185, 232, 0.1);
  margin-bottom: 15px;
  position: relative;
}

.platform-emoji {
  font-size: 36px;
}

.pulse-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  animation: pulse 2s infinite;
}

.platform-info h3 {
  font-size: 20px;
  margin: 0 0 5px;
}

.version-badge {
  display: inline-block;
  background: rgba(124, 185, 232, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.version-tag {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 15px;
}

.primary-btn {
  padding: 10px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7cb9e8, #5a9fd4);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 185, 232, 0.4);
}

.success-btn {
  padding: 10px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #67c23a, #5daf34);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(103, 194, 58, 0.4);
}

.download-btn {
  padding: 8px 20px;
  border-radius: 20px;
}

/* ===== Notices ===== */
.notices-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(124, 185, 232, 0.1);
  border: 1px solid rgba(124, 185, 232, 0.15);
  padding: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 185, 232, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
}

.notices-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-item {
  padding: 15px 20px;
  border-radius: 10px;
  background: rgba(124, 185, 232, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.notice-highlight {
  background: rgba(124, 185, 232, 0.15);
  border-left: 3px solid var(--primary-color);
}

.notice-item:hover {
  transform: translateX(5px);
  background: rgba(124, 185, 232, 0.12);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.notice-title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.notice-time {
  color: #909399;
  font-size: 13px;
}

.expand-icon {
  color: #909399;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.notice-content-detail {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e4e7ed;
}

.notice-content-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.empty-notices {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  color: #909399;
  gap: 10px;
}

/* ===== Installer Section ===== */
.installer-tabs {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7fa;
}

.tab-header {
  display: flex;
  background: #ebeef5;
}

.tab {
  flex: 1;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #909399;
}

.tab.active {
  background: var(--card-bg);
  box-shadow: 0 0 15px rgba(124, 185, 232, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.tab-content {
  padding: 25px;
  background: var(--card-bg);
}

.installer-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.installer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: rgba(124, 185, 232, 0.05);
  border-radius: 12px;
  width: auto;
  transition: all 0.3s ease;
}

.installer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 185, 232, 0.15);
}

.installer-card .platform-icon {
  width: 60px;
  height: 60px;
}

.version-number {
  font-size: 18px;
  font-weight: 600;
  margin: 15px 0;
  color: var(--text-primary);
}

.installer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.feature {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(124, 185, 232, 0.08);
  font-size: 13px;
}

/* ===== Footer ===== */
.modern-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(240, 242, 245, 0.8));
  padding: 24px 0 32px;
  border-top: 1px solid rgba(124, 185, 232, 0.1);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #909399;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #606266;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #409eff;
}

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: none;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: hsla(0, 0%, 100%, 0.3);
  transform: scale(1.1);
}

.tutorial-dialog-header {
  background: linear-gradient(120deg, #7cb9e8, #a8d8f0);
  color: #fff;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.tutorial-dialog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tutorial-dialog-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.tutorial-tabs {
  padding: 20px;
}

.tutorial-tab-header .tab {
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
}

.tutorial-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutorial-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  gap: 20px;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-tutorial {
  border-left: 4px solid var(--primary-color);
}

.doc-tutorial {
  border-left: 4px solid var(--accent-color);
}

.tutorial-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  flex-shrink: 0;
}

.video-tutorial .tutorial-icon {
  background: rgba(124, 185, 232, 0.15);
  color: var(--primary-color);
}

.doc-tutorial .tutorial-icon {
  background: rgba(107, 182, 255, 0.15);
  color: var(--accent-color);
}

.pulse-circle {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: pulseAnimation 2s infinite;
  opacity: 0.7;
  border: 1px solid currentColor;
}

.tutorial-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.tutorial-info p {
  margin: 0 0 15px;
  color: #606266;
  font-size: 14px;
}

.tutorial-btn {
  padding: 10px 20px;
  border-radius: 20px;
}

/* Support Modal */
.modal-header-gradient {
  background: linear-gradient(90deg, #7cb9e8, #a8d8f0);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.modal-header-gradient h3 {
  font-size: 20px;
  font-weight: 600;
}

.wechat-dialog-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode-frame {
  position: relative;
  width: 240px;
  height: 240px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.qrcode-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.qrcode-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #909399;
  gap: 8px;
}

.qrcode-icon {
  font-size: 48px;
}

.qrcode-hint {
  font-size: 12px;
}

.qrcode-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #409eff, transparent);
  animation: scanQrCode 2s infinite;
}

.qrcode-info {
  text-align: center;
  margin-top: 20px;
}

.qrcode-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.qrcode-expire {
  font-size: 13px;
  color: #909399;
}

/* Device Error Modal */
.device-error-modal {
  max-width: 500px;
}

.magic-container {
  padding: 30px;
}

.magic-requirement {
  background: linear-gradient(135deg, #fff3cd, #fef8e6);
  border: 1px solid gold;
  border-radius: 15px;
  padding: 25px;
}

.requirement-title {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  color: #d68910;
}

.solution-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.requirement-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Model Error Modal */
.model-error-modal {
  max-width: 800px;
}

.tutorial-container {
  max-height: 65vh;
  overflow-y: auto;
  padding: 20px 30px;
}

.tutorial-container::-webkit-scrollbar {
  width: 6px;
}

.tutorial-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.tutorial-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.tutorial-step {
  border: 1px solid #e4e7ed;
  border-radius: 20px;
  padding: 25px;
  background: #fff;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tutorial-step:hover {
  box-shadow: 0 8px 25px rgba(124, 185, 232, 0.15);
}

.tutorial-step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.step-number {
  width: 44px;
  height: 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7cb9e8, #5a9fd4);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(124, 185, 232, 0.3);
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: #303133;
  margin: 0;
}

.step-image {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.step-description p {
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
  margin: 0 0 10px;
}

.step-tips {
  background: linear-gradient(135deg, #fff7e6, #fef3e2);
  border: 1px solid #ffd591;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: #d46b08;
  line-height: 1.5;
}

.solution-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: hsla(0, 0%, 100%, 0.8);
  border-radius: 12px;
}

.solution-step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.dialog-footer {
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #e4e7ed;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #303133;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: linear-gradient(135deg, #67c23a, #5daf34);
}

/* ===== Animations ===== */
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 2px 8px hsla(0, 87%, 69%, 0.3); }
  50% { box-shadow: 0 2px 15px hsla(0, 87%, 69%, 0.5); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes textShine {
  to { background-position: 200%; }
}

@keyframes scrollLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes bellRing {
  0%, 50%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 88, 88, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 88, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 88, 88, 0); }
}

@keyframes particles {
  0% { transform: scale(0) translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: scale(1.5) translateY(-20px); opacity: 0; }
}

@keyframes btn-shine {
  0% { left: -50%; }
  100% { left: 150%; }
}

@keyframes matrixMove {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-40px) translateX(-10px); }
}

@keyframes pulseAnimation {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

@keyframes scanQrCode {
  0% { top: 0; opacity: 1; }
  50% { top: calc(100% - 3px); opacity: 1; }
  50.1% { opacity: 0; }
  51% { top: 0; opacity: 1; }
  100% { top: 0; opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-aside {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .download-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 16px;
    gap: 24px;
  }

  .site-header-inner {
    padding: 12px 16px;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .installer-cards {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .tutorial-card {
    flex-direction: column;
    text-align: center;
  }

  .action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tutorial-view-btn,
  .support-btn {
    width: 100%;
    justify-content: center;
  }

  .notice-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 28px;
  }

  .sub-title {
    font-size: 22px;
  }

  .glass-card {
    padding: 20px 16px;
  }
}
