/* =============================
   魅塔科技官网 - 样式表
   ============================= */

:root {
  /* 主色调 */
  --primary: #6d5efc;
  --primary-hover: #5a4be6;
  --primary2: #915cff;
  --success: #20b26b;
  --success-hover: #1a9959;
  
  /* 背景色 */
  --bg0: #0b1220;
  --bg1: #111b33;
  --bg-light: #f8fafc;
  
  /* 卡片 */
  --card: rgba(255, 255, 255, 0.95);
  --card-dark: rgba(20, 24, 33, 0.92);
  
  /* 文字 */
  --text: #101828;
  --text-light: #ffffff;
  --muted: rgba(16, 24, 40, 0.72);
  --muted2: rgba(16, 24, 40, 0.55);
  
  /* 边框和阴影 */
  --border: rgba(16, 24, 40, 0.10);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 25px 70px rgba(0, 0, 0, 0.20);
  
  /* 圆角 */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card: var(--card-dark);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --muted2: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.10);
    --bg-light: var(--bg1);
  }
}

/* =============================
   基础样式
   ============================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =============================
   导航栏
   ============================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: grid;
  place-items: center;
  font-size: 20px;
}

.navbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.navbar-links {
  display: flex;
  gap: 24px;
}

.navbar-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

@media (max-width: 640px) {
  .navbar {
    padding: 12px 16px;
  }
  
  .navbar-links {
    gap: 16px;
  }
  
  .navbar-link {
    font-size: 13px;
  }
}

/* =============================
   Hero 区域
   ============================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(109, 94, 252, 0.35), transparent 65%),
    radial-gradient(900px 500px at 85% 35%, rgba(32, 178, 107, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  text-align: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(109, 94, 252, 0.15);
  border: 1px solid rgba(109, 94, 252, 0.30);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================
   按钮样式
   ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(109, 94, 252, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(109, 94, 252, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--success) 0%, #19be8e 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(32, 178, 107, 0.30);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(32, 178, 107, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.40);
}

/* =============================
   应用展示区
   ============================= */

.apps-section {
  padding: 100px 24px;
  background: var(--bg-light);
}

@media (prefers-color-scheme: dark) {
  .apps-section {
    background: var(--bg1);
  }
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
}

.apps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* =============================
   应用卡片
   ============================= */

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.app-card-header {
  padding: 32px 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}

.app-icon.iwordlist {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.app-icon.quotes {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

.app-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-info p {
  font-size: 14px;
  color: var(--muted);
}

.app-card-body {
  padding: 0 28px 28px;
}

.features-list {
  list-style: none;
  margin-bottom: 24px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.12), rgba(145, 92, 255, 0.08));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}

.feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 13px;
  color: var(--muted);
}

.app-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-buttons .btn {
  padding: 12px 16px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .app-buttons {
    grid-template-columns: 1fr;
  }
}

/* =============================
   关于我们
   ============================= */

.about-section {
  padding: 100px 24px;
  background:
    radial-gradient(800px 400px at 80% 80%, rgba(109, 94, 252, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-section .section-title {
  color: var(--text-light);
}

.about-section .section-subtitle {
  color: rgba(255, 255, 255, 0.70);
}

.about-content {
  margin-top: 40px;
  padding: 32px;
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.about-content p {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* =============================
   页脚
   ============================= */

.footer {
  padding: 48px 24px;
  background: var(--bg0);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-brand h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted2);
}

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

.footer-column h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--muted2);
}

.footer-icp {
  font-size: 13px;
  color: var(--muted2);
}

.footer-icp a {
  color: var(--muted);
}

.footer-icp a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================
   Toast 提示
   ============================= */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.90);
  color: white;
  font-size: 14px;
  display: none;
  max-width: min(520px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
  text-align: center;
}

.toast.show {
  display: block;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* =============================
   辅助类
   ============================= */

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
