/* ==========================================================================
   信科智教 官网样式表 (学堂纸墨设计系统)
   ========================================================================== */

:root {
  --bg-paper: #f6f5f2;
  --color-primary: #1f3a5f;
  --color-primary-hover: #17304f;
  --color-gold: #b08d3e;
  --color-gold-light: #f5eedf;
  --color-dark-bar: #152238;
  --color-dark-surface: #1e314f;
  --text-main: #1b1b1f;
  --text-muted: #6e6e73;
  --text-light: #ffffff;
  --border-color: #ddd9d0;
  --border-gold: rgba(176, 141, 62, 0.4);
  --shadow-sm: 0 2px 8px rgba(21, 34, 56, 0.04);
  --shadow-md: 0 4px 16px rgba(21, 34, 56, 0.06);
  --shadow-lg: 0 10px 30px rgba(21, 34, 56, 0.09);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", -apple-system, sans-serif;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-paper);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navbar (吸顶导航)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(246, 245, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-en {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-admin-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 7px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: all 0.2s ease;
}

.nav-admin-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-primary);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Hero 首屏
   ========================================================================== */
.hero-section {
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 18%, rgba(176, 141, 62, 0.09) 0%, transparent 65%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.hero-badge {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background-color: var(--color-gold);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons (按钮系统)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 6px 16px rgba(31, 58, 95, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: #ffffff;
}

.btn-disabled {
  background-color: #e5e3dc;
  color: #8c887f;
  border-color: #d6d3cb;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

.btn-disabled:hover {
  background-color: #e5e3dc;
  color: #8c887f;
  transform: none;
}

/* ==========================================================================
   Section Headers (通用区块标题)
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-alt {
  background-color: #f1efe9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features 亮点网格
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--color-gold-light);
  color: var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Screenshots 截图展台
   ========================================================================== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.shot-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.shot-img-wrap {
  width: 100%;
  background-color: #e9e6df;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.shot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.shot-card:hover .shot-img-wrap img {
  transform: scale(1.02);
}

.shot-info {
  padding: 20px 24px;
}

.shot-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  background-color: var(--color-gold-light);
  color: var(--color-gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.shot-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Download 客户端下载区
   ========================================================================== */
.download-card {
  background: linear-gradient(145deg, #ffffff 0%, #fcfbfa 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

.download-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.download-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.download-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-meta {
  font-size: 0.88rem;
  color: #8c887f;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Footer (深色页脚)
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark-bar);
  color: #d1d5db;
  padding: 56px 0 32px;
  margin-top: auto;
  border-top: 2px solid var(--color-gold);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 440px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.65;
}

.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: rgba(176, 141, 62, 0.08);
}

.footer-admin-btn:hover {
  background: var(--color-gold);
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-beian a {
  color: #6b7280;
  text-decoration: none;
}

.footer-beian a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Toast 提示组件
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background-color: var(--color-dark-bar);
  color: #ffffff;
  border: 1px solid var(--color-gold);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFade 2.8s ease forwards;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(16px); }
  10% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ==========================================================================
   Responsive (响应式)
   ========================================================================== */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    height: 60px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg-paper);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    gap: 16px;
    align-items: flex-start;
  }
  .nav-menu.open {
    display: flex;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .shots-grid {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 36px 20px;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
