/* ============================================================
   CrystalDiskInfo 硬盘健康检测工具 - 中文官网克隆站
   Style: 蓝色科技风 / 卡片式布局 / 响应式
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #123c9e;
  --primary-light: #e8effd;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --dark: #0f1f3d;
  --dark-2: #16294f;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f6f8fc;
  --border: #e5e9f2;
  --shadow: 0 4px 20px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 31, 61, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--dark); }
.brand .logo { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-download {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-download:hover { opacity: .9; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(6, 182, 212, 0.25), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(26, 86, 219, 0.35), transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, #1a56db 100%);
  color: #fff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #dbeafe;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse 1.6s infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero p.sub { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 14px; }

.hero-points { list-style: none; margin: 22px 0 30px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.92); font-size: 15px; }
.hero-points li svg { flex-shrink: 0; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff !important; box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(37,99,235,.5); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff !important; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-blue { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff !important; box-shadow: 0 6px 20px rgba(26,86,219,.3); }
.btn-outline { background: #fff; color: var(--primary) !important; border: 1.5px solid var(--primary); }

/* Hero 右侧软件窗口 mockup */
.hero-window {
  background: #0d1b38;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.1); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,0.6); }

.window-body { padding: 18px; }
.window-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.window-status .model { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; }
.badge-good { background: rgba(52,211,153,.18); color: #34d399; border: 1px solid rgba(52,211,153,.4); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.window-health { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hcard { background: rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; }
.hcard .k { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.hcard .v { font-size: 20px; font-weight: 700; color: #fff; }
.hcard .v.green { color: #34d399; } .hcard .v.cyan { color: #22d3ee; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }

.window-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.window-table th { color: rgba(255,255,255,0.5); text-align: left; padding: 5px 8px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.1); }
.window-table td { padding: 5px 8px; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.06); }
.window-table td.ok { color: #34d399; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 84px 0; }
.section.bg-gray { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ---------------- 功能卡片 ---------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary-light), #d9ecfd);
  color: var(--primary);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.feature-card p { font-size: 14.5px; color: var(--text-light); }

/* ---------------- 软件简介 / 双栏 ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .text h2 { font-size: 30px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.split .text p { color: var(--text-light); margin-bottom: 14px; font-size: 15.5px; }
.split .text ul { list-style: none; margin-top: 8px; display: grid; gap: 8px; }
.split .text ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.split .text ul li svg { flex-shrink: 0; margin-top: 4px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.spec-item .num { font-size: 22px; font-weight: 800; color: var(--primary); }
.spec-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--dark); }
.spec-item p { font-size: 13px; color: var(--text-light); }

/* ---------------- 截图区块 ---------------- */
.screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shot { background: #0d1b38; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.shot .cap { color: #fff; padding: 14px 18px; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: space-between; }
.shot .cap .status { color: #34d399; font-weight: 600; }

/* ---------------- 下载 ---------------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
  position: relative; transition: transform .25s, box-shadow .25s;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dl-card.hot { border: 2px solid var(--primary); }
.dl-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px;
}
.dl-card .ver-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-light), #d9ecfd); display: flex; align-items: center; justify-content: center; }
.dl-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.dl-card .desc { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.dl-card ul { list-style: none; text-align: left; margin: 0 auto 20px; max-width: 220px; display: grid; gap: 8px; }
.dl-card ul li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text); }
.dl-card ul li svg { flex-shrink: 0; }
.dl-card .size { font-size: 12.5px; color: var(--text-light); margin-bottom: 14px; }
.dl-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-links .btn { padding: 10px 18px; font-size: 14px; }

.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.req-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.req-item .k { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.req-item .v { font-size: 17px; font-weight: 700; color: var(--dark); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-light); font-size: 15px; }
.faq-item .faq-a code { background: var(--primary-light); color: var(--primary); padding: 2px 6px; border-radius: 5px; font-size: 13px; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer p, .footer li { font-size: 13.5px; line-height: 2; }
.footer ul { list-style: none; }
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: #7dd3fc; }
.footer .brand-foot { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.45); }

/* ---------------- 子页面 Hero ---------------- */
.page-hero { background: linear-gradient(135deg, var(--dark), #1a56db); color: #fff; padding: 64px 0 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; pointer-events:none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 640px; margin: 0 auto; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.crumbs a { color: #7dd3fc; }

/* ---------------- 关于页 ---------------- */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.timeline .item { position: relative; margin-bottom: 28px; }
.timeline .item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline .item .date { font-size: 13px; color: var(--primary); font-weight: 700; }
.timeline .item h3 { font-size: 17px; color: var(--dark); margin: 2px 0 6px; }
.timeline .item p { font-size: 14px; color: var(--text-light); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .features-grid, .download-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .screenshots { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .features-grid, .download-grid, .spec-list { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .hero { padding: 56px 0 48px; }
}
