/* ===== 有道翻译下载站 - 全局样式 =====
   设计令牌：主色 emerald / 辅助色 teal / 中性色 gray
   圆角：lg .5rem / xl .75rem / 2xl 1rem / 3xl 1.5rem
   间距：区块 py-24（6rem）、信任条 py-12（3rem）、容器 max-w-6xl（72rem）
   ================================================= */
:root{
  --em-50:#ecfdf5; --em-100:#d1fae5; --em-200:#a7f3d0; --em-400:#34d399;
  --em-500:#10b981; --em-600:#059669; --em-700:#047857;
  --teal-50:#f0fdfa; --teal-200:#99f6e4;
  --g-50:#f9fafb; --g-100:#f3f4f6; --g-200:#e5e7eb; --g-400:#9ca3af;
  --g-500:#6b7280; --g-600:#4b5563; --g-700:#374151; --g-900:#111827;
  --radius-lg:.5rem; --radius-xl:.75rem; --radius-2xl:1rem; --radius-3xl:1.5rem;
  --shadow-sm:0 1px 2px rgba(17,24,39,.05);
  --shadow-md:0 6px 16px -6px rgba(17,24,39,.12);
  --shadow-xl:0 18px 40px -18px rgba(17,24,39,.28);
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;font-family:var(--font);font-weight:400;color:var(--g-700);
  background:#fff;line-height:1.7;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{margin:0;color:var(--g-900);font-weight:700;line-height:1.25}
p{margin:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;color:inherit}
.container{width:100%;max-width:72rem;margin:0 auto;padding:0 1rem}

/* ===== 顶部导航 ===== */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(255,255,255,.88);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--g-100);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:4rem}
.brand{display:flex;align-items:center;gap:.625rem;font-weight:700;color:var(--g-900)}
.brand img{width:36px;height:36px;border-radius:.625rem}
.brand span{font-size:1.0625rem}
.nav{display:none;align-items:center;gap:.25rem}
.nav a{padding:.5rem .875rem;border-radius:var(--radius-lg);font-size:.9375rem;color:var(--g-600);transition:background .18s,color .18s}
.nav a:hover{background:var(--g-50);color:var(--g-900)}
.nav a[aria-current="page"]{background:var(--em-50);color:var(--em-600);font-weight:600}
.header-cta{display:none}
.menu-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.5rem;height:2.5rem;border:1px solid var(--g-200);border-radius:var(--radius-lg);
  background:#fff;cursor:pointer
}
.menu-toggle svg{width:1.25rem;height:1.25rem;stroke:var(--g-700)}
.mobile-nav{display:none;border-top:1px solid var(--g-100);background:#fff;padding:.75rem 1rem 1.25rem}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:.75rem .5rem;border-radius:var(--radius-lg);font-size:1rem;color:var(--g-700)}
.mobile-nav a[aria-current="page"]{background:var(--em-50);color:var(--em-600);font-weight:600}
.mobile-nav .btn{margin-top:.75rem;width:100%}

/* ===== 按钮 ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.7rem 1.25rem;border-radius:var(--radius-xl);font-weight:600;font-size:.9375rem;
  border:1px solid transparent;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s,color .18s;
}
.btn svg{width:1.125rem;height:1.125rem}
.btn-primary{background:var(--em-600);color:#fff;box-shadow:var(--shadow-md)}
.btn-primary:hover{background:var(--em-700);transform:translateY(-1px);box-shadow:var(--shadow-xl)}
.btn-ghost{background:#fff;color:var(--g-700);border-color:var(--g-200)}
.btn-ghost:hover{background:var(--g-50);color:var(--g-900)}
.btn-xl{padding:1rem 2rem;border-radius:var(--radius-2xl);font-size:1.0625rem}
.animate-glow{animation:glow 3.2s ease-in-out infinite}
@keyframes glow{
  0%,100%{box-shadow:0 10px 30px -12px rgba(5,150,105,.55)}
  50%{box-shadow:0 16px 42px -10px rgba(5,150,105,.75)}
}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;padding:7rem 0 5rem;
  background:linear-gradient(135deg,var(--em-50) 0%,var(--teal-50) 55%,#fff 100%);
}
.hero .blob{position:absolute;width:26rem;height:26rem;border-radius:50%;filter:blur(64px);opacity:.3;pointer-events:none}
.hero .blob-1{top:-6rem;right:-6rem;background:var(--em-400)}
.hero .blob-2{bottom:-8rem;left:-7rem;background:var(--teal-200)}
.hero-grid{position:relative;display:grid;gap:3rem;align-items:center;text-align:center}
.badge{
  display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .875rem;border-radius:9999px;
  background:var(--em-100);color:var(--em-700);font-size:.875rem;font-weight:600
}
.badge svg{width:1rem;height:1rem}
.hero-title{font-size:clamp(2.75rem,7vw,4.75rem);letter-spacing:-.02em;margin-top:1.25rem}
.gradient-text{
  background:linear-gradient(90deg,var(--em-600),var(--em-400) 55%,#0d9488);
  -webkit-background-clip:text;background-clip:text;color:transparent
}
.lead{max-width:32rem;margin:1.5rem auto 0;font-size:1.1875rem;color:var(--g-600)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.875rem;justify-content:center;margin-top:2rem}
.hero-visual{margin:0}
.hero-visual img,.hero-visual svg{width:100%;max-width:600px;height:auto;margin:0 auto;object-fit:contain}

/* ===== 信任数据条 ===== */
.stats{background:var(--g-900);color:#fff;padding:3rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;text-align:center}
.stat svg{width:2rem;height:2rem;color:var(--em-400);margin:0 auto .5rem}
.stat-num{font-size:clamp(1.5rem,4vw,2.25rem);font-weight:700;color:#fff}
.stat-label{font-size:.875rem;color:var(--g-400)}

/* ===== 通用区块 ===== */
.section{padding:5rem 0}
.section--gray{background:var(--g-50)}
.section-head{max-width:40rem;margin:0 auto 3rem;text-align:center}
.section-head h2{font-size:clamp(1.75rem,3.5vw,2.5rem)}
.section-head p{margin-top:.875rem;font-size:1.125rem;color:var(--g-600)}
.section-head--split{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem;max-width:none;text-align:left}
.section-head--split p{margin-top:.625rem}
.link-all{display:none;color:var(--em-600);font-weight:600}
.link-all:hover{color:var(--em-700)}

/* ===== 功能卡片 ===== */
.grid-2{display:grid;gap:1.5rem}
.feature-card{
  padding:2rem;border:1px solid var(--g-100);border-radius:var(--radius-3xl);background:#fff;
  transition:border-color .22s,box-shadow .22s,transform .22s
}
.feature-card:hover{border-color:var(--em-200);box-shadow:0 18px 40px -22px rgba(5,150,105,.45);transform:translateY(-2px)}
.icon-box{
  width:4rem;height:4rem;border-radius:var(--radius-2xl);display:flex;align-items:center;justify-content:center;
  color:#fff;transition:transform .22s
}
.icon-box svg{width:2rem;height:2rem}
.feature-card:hover .icon-box{transform:scale(1.1)}
.g1{background:linear-gradient(135deg,#a855f7,#ec4899)}
.g2{background:linear-gradient(135deg,#06b6d4,#3b82f6)}
.g3{background:linear-gradient(135deg,#f59e0b,#f97316)}
.g4{background:linear-gradient(135deg,#10b981,#14b8a6)}
.feature-card h3{font-size:1.5rem;margin-top:1.375rem}
.feature-card p{margin-top:.75rem;font-size:1.0625rem;color:var(--g-600)}

/* ===== 平台卡片 ===== */
.grid-platform{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.platform-card{
  display:block;padding:2rem;text-align:center;background:#fff;border:1px solid var(--g-100);
  border-radius:var(--radius-3xl);transition:border-color .22s,box-shadow .22s,transform .22s
}
.platform-card:hover{border-color:var(--em-200);box-shadow:var(--shadow-xl);transform:translateY(-2px)}
.platform-card svg{width:3rem;height:3rem;color:var(--g-700);margin:0 auto;transition:color .22s}
.platform-card:hover svg{color:var(--em-600)}
.platform-card h3{font-size:1.125rem;margin-top:1rem}
.platform-card .ver{font-size:.875rem;color:var(--g-500);margin-top:.25rem}
.platform-card .dl-hint{
  display:inline-flex;align-items:center;gap:.25rem;margin-top:.75rem;font-size:.875rem;
  font-weight:600;color:var(--em-600);opacity:0;transition:opacity .22s
}
.platform-card:hover .dl-hint{opacity:1}
.platform-card .dl-hint svg{width:1rem;height:1rem;color:var(--em-600);margin:0}

/* ===== 学习中心文章卡 ===== */
.grid-articles{display:grid;gap:1.5rem}
.article-card{
  display:block;height:100%;background:#fff;border:1px solid var(--g-100);
  border-radius:var(--radius-2xl);overflow:hidden;transition:box-shadow .22s,transform .22s,border-color .22s
}
.article-card:hover{border-color:var(--em-200);box-shadow:var(--shadow-xl);transform:translateY(-2px)}
.cover{position:relative;height:11rem;overflow:hidden;background:var(--g-100)}
.cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.article-card:hover .cover img{transform:scale(1.05)}
.cat-tag{
  position:absolute;top:.75rem;left:.75rem;padding:.2rem .55rem;border-radius:var(--radius-lg);
  background:var(--em-500);color:#fff;font-size:.75rem;font-weight:600
}
.article-body{padding:1.5rem}
.article-body h3{
  font-size:1.125rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;transition:color .18s
}
.article-card:hover .article-body h3{color:var(--em-600)}
.article-body .excerpt{
  margin-top:.5rem;font-size:.875rem;color:var(--g-500);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.meta{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  margin-top:1rem;padding-top:.875rem;border-top:1px solid var(--g-50);font-size:.75rem;color:var(--g-400)
}
.meta span{display:inline-flex;align-items:center;gap:.3rem}
.meta svg{width:.875rem;height:.875rem}

/* ===== FAQ 手风琴 ===== */
.faq{max-width:48rem;margin:0 auto}
.faq-item{background:#fff;border:1px solid var(--g-100);border-radius:var(--radius-2xl);margin-bottom:.875rem;overflow:hidden;transition:border-color .2s}
.faq-item.open{border-color:var(--em-200)}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.125rem 1.375rem;background:none;border:0;text-align:left;cursor:pointer
}
.faq-q h3{font-size:1.0625rem;font-weight:600;color:var(--g-900)}
.faq-q .chev{width:1.25rem;height:1.25rem;color:var(--g-400);flex:none;transition:transform .22s,color .22s}
.faq-item.open .chev{transform:rotate(180deg);color:var(--em-600)}
.faq-a{display:none;padding:0 1.375rem 1.25rem;color:var(--g-600);font-size:.9688rem}
.faq-item.open .faq-a{display:block}

/* ===== 页脚 ===== */
.site-footer{background:var(--g-900);color:#fff;padding:3.5rem 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;padding-bottom:2.5rem}
.footer-brand{grid-column:1/-1}
.footer-brand .brand{color:#fff}
.footer-brand .brand img{width:32px;height:32px}
.footer-brand p{color:var(--g-400);font-size:.9375rem;margin-top:.875rem;max-width:22rem}
.footer-col h4{font-size:.9375rem;color:#fff;margin-bottom:.875rem}
.footer-col a{display:block;color:var(--g-400);font-size:.9375rem;padding:.25rem 0;transition:color .18s}
.footer-col a:hover{color:var(--em-400)}
.copyright{border-top:1px solid rgba(255,255,255,.08);padding:1.25rem 0 1.5rem;font-size:.8125rem;color:var(--g-500);text-align:center}

/* ===== 内容页（下载/教程/FAQ/关于/文章） ===== */
.page-hero{padding:8rem 0 3rem;background:linear-gradient(135deg,var(--em-50),#fff 70%);border-bottom:1px solid var(--g-100)}
.page-hero h1{font-size:clamp(1.875rem,4vw,2.75rem)}
.page-hero p{margin-top:.875rem;max-width:42rem;color:var(--g-600);font-size:1.0625rem}
.prose{max-width:46rem;margin:0 auto}
.prose h2{font-size:1.5rem;margin-top:2.25rem}
.prose h3{font-size:1.1875rem;margin-top:1.75rem}
.prose p{margin-top:.875rem;color:var(--g-600)}
.prose ul{margin-top:.875rem;padding-left:0}
.prose ul li{position:relative;padding-left:1.375rem;margin-top:.5rem;color:var(--g-600)}
.prose ul li::before{content:"";position:absolute;left:.25rem;top:.7em;width:.375rem;height:.375rem;border-radius:50%;background:var(--em-500)}
.prose .note{margin-top:1.5rem;padding:1rem 1.25rem;background:var(--em-50);border-left:3px solid var(--em-500);border-radius:var(--radius-lg);color:var(--g-700);font-size:.9375rem}
.breadcrumb{font-size:.8125rem;color:var(--g-400);margin-bottom:.75rem}
.breadcrumb a:hover{color:var(--em-600)}
.dl-grid{display:grid;gap:1.25rem}
.dl-card{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;background:#fff;border:1px solid var(--g-100);border-radius:var(--radius-2xl);transition:border-color .2s,box-shadow .2s}
.dl-card:hover{border-color:var(--em-200);box-shadow:var(--shadow-md)}
.dl-card .dl-info{flex:1;min-width:0}
.dl-card h3{font-size:1.0625rem}
.dl-card .ver{font-size:.8125rem;color:var(--g-500)}
.dl-card svg{width:1.75rem;height:1.75rem;color:var(--g-700);flex:none}
.tag-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem}
.tag{padding:.25rem .7rem;border-radius:9999px;background:#fff;border:1px solid var(--g-200);font-size:.8125rem;color:var(--g-600)}

/* ===== 滚动进入动画 ===== */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}

/* ===== 响应式：md 768 ===== */
@media (min-width:768px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-articles{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(4,1fr)}
  .footer-brand{grid-column:auto}
  .link-all{display:inline-flex;align-items:center;gap:.35rem}
  .dl-grid{grid-template-columns:repeat(2,1fr)}
  .section{padding:6rem 0}
}
/* ===== 响应式：lg 1024 ===== */
@media (min-width:1024px){
  .nav{display:flex}
  .header-cta{display:inline-flex}
  .menu-toggle{display:none}
  .mobile-nav{display:none !important}
  .hero{padding:8.5rem 0 6rem}
  .hero-grid{grid-template-columns:1.05fr .95fr;text-align:left}
  .lead{margin-left:0}
  .hero-actions{justify-content:flex-start}
  .grid-platform{grid-template-columns:repeat(4,1fr)}
  .grid-articles{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:1280px){
  .container{padding:0 2rem}
}
@media print{.site-header,.site-footer,.hero .blob{display:none}}

/* ===== 无障碍：降低动画 ===== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .reveal{opacity:1;transform:none}
  html{scroll-behavior:auto}
}
