/* ============================================================
   雷电模拟器官网 - leidiian.com.cn
   品牌蓝 #2870ff / 黄强调 #FFDB18 / 深色 #1a1a2e
   ============================================================ */

/* ── 设计令牌 ── */
:root {
    --blue: #2870ff;
    --blue-hover: #1a56d8;
    --yellow: #FFDB18;
    --yellow-hover: #e6c000;
    --bg: #F5F6FA;
    --white: #ffffff;
    --border: #ECEEF3;
    --text: #1a1a2e;
    --text2: #555770;
    --text3: #8E8EA0;
    --radius: 12px;
    --radius-lg: 20px;
    --maxw: 1368px;
    --shadow: 0 6px 24px rgba(15,23,42,0.06);
    --shadow-lg: 0 16px 48px rgba(15,23,42,0.10);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ── 容器 ── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── 按钮 ── */
.btn-yellow {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 28px; border-radius: 999px;
    background: linear-gradient(135deg, #FFDB18, #FFC107, #FFB300);
    box-shadow: 0 2px 10px rgba(255,180,0,0.35), inset 0 1px 0 rgba(255,255,255,.35);
    font-weight: 600; color: #1a1a2e; font-size: 15px;
    transition: transform .25s, box-shadow .25s;
}
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,180,0,0.45); }
.btn-blue {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 28px; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
    transition: background .2s, transform .2s;
}
.btn-blue:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-lg { height: 54px; padding: 0 40px; font-size: 17px; border-radius: 999px; }

/* ═══════════════════ HEADER ═══════════════════ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 64px; background: rgba(26,26,46,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s;
}
.header.is-scrolled { background: rgba(26,26,46,0.98); }
.header__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; height: 100%; gap: 32px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
    display: inline-flex; align-items: center; padding: 8px 16px;
    border-radius: 8px; font-size: 14px; color: rgba(255,255,255,.85);
    transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav a.active { font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__dl {
    height: 34px; padding: 0 18px; border-radius: 999px;
    background: linear-gradient(135deg, #FFDB18, #FFC107);
    box-shadow: 0 2px 8px rgba(255,180,0,0.3);
    font-size: 13px; font-weight: 600; color: #1a1a2e;
    display: inline-flex; align-items: center;
    transition: transform .2s, box-shadow .2s;
}
.header__dl:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,180,0,0.4); }

/* ── 移动端汉堡 ── */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── 移动端菜单 ── */
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 99; padding: 20px 24px; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--blue); font-weight: 600; }
.mobile-menu .btn-yellow { margin-top: 20px; width: 100%; justify-content: center; }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #0a0a1a;
}
.hero__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 1;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.hero__mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,26,0.6) 0%, rgba(10,10,26,0.3) 50%, rgba(10,10,26,0.7) 100%); z-index: 3; }
.hero__inner { position: relative; z-index: 4; text-align: center; color: #fff; max-width: 720px; padding: 0 24px; }
.hero__tag {
    display: inline-block; padding: 6px 20px; border-radius: 999px;
    background: rgba(255,219,24,0.15); border: 1px solid rgba(255,219,24,0.3);
    color: var(--yellow); font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.hero__title { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.hero__subtitle { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__bottom-mask {
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to top, var(--bg), transparent); z-index: 4;
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: 72px 0; }
.section--alt { background: var(--white); }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section__title { font-size: 28px; font-weight: 700; color: var(--text); }
.section__more { font-size: 14px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.section__more:hover { color: var(--blue); }

/* ── Feature Tabs ── */
.feature {
    position: relative; padding: 80px 0; overflow: hidden;
    background-size: cover; background-position: center;
}
.feature__overlay { position: absolute; inset: 0; background: rgba(10,10,26,0.85); }
.feature__inner { position: relative; z-index: 2; }
.feature__tabs { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.feature__tab {
    flex: 1; min-width: 200px; padding: 20px 24px; border-radius: var(--radius-lg);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7); text-align: left; cursor: pointer;
    transition: all .3s;
}
.feature__tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.feature__tab.is-active {
    background: rgba(40,112,255,0.2); border-color: rgba(40,112,255,0.4);
    color: #fff; box-shadow: 0 0 24px rgba(40,112,255,0.2);
}
.feature__tab-title { font-size: 18px; font-weight: 700; display: block; margin-bottom: 4px; }
.feature__tab-desc { font-size: 13px; opacity: .7; display: block; }
.feature__panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: rgba(0,0,0,.3); }
.feature__item { display: none; }
.feature__item.is-active { display: block; }
.feature__item img { width: 100%; border-radius: var(--radius-lg); }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--white); border-radius: var(--radius); padding: 18px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: box-shadow .2s;
    display: flex; align-items: center; gap: 12px;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item__icon { color: var(--yellow); font-size: 20px; flex-shrink: 0; }
.faq-item__text { font-size: 15px; color: var(--text); font-weight: 500; }

/* ── 资讯卡片 ── */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card__body { padding: 14px 16px; }
.news-card__title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__date { font-size: 12px; color: var(--text3); margin-top: 8px; }

/* ── 教程列表 ── */
.tut-list { display: flex; flex-direction: column; gap: 4px; }
.tut-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-radius: 8px; transition: background .2s;
}
.tut-item:hover { background: rgba(40,112,255,.04); }
.tut-item__title { font-size: 14px; font-weight: 500; flex: 1; }
.tut-item__date { font-size: 12px; color: var(--text3); flex-shrink: 0; margin-left: 16px; }

/* ── 两栏布局 ── */
.info-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; }

/* ── 横幅 ── */
.banner {
    display: block; background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg); padding: 24px 32px; margin-top: 48px;
    transition: transform .3s, box-shadow .3s;
}
.banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.banner__inner { display: flex; align-items: center; justify-content: space-between; }
.banner__text { font-size: 18px; font-weight: 600; color: #fff; }
.banner__btn { display: flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 600; }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer { background: #1a1a2e; color: rgba(255,255,255,.6); padding: 40px 0 30px; font-size: 13px; line-height: 1.8; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--yellow); }
.footer__info p { margin-bottom: 6px; }
.footer__right { text-align: right; }
.footer__logo { display: inline-block; margin-bottom: 16px; }
.footer__logo img { height: 32px; width: auto; }
.footer__social { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.15); }
.footer__social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.5); }

/* ═══════════════════ PAGE HEADER ═══════════════════ */
.page-header { padding: 100px 0 40px; text-align: center; background: linear-gradient(180deg, #1a1a2e, var(--bg)); }
.page-header__title { font-size: 36px; font-weight: 700; color: var(--text); }
.page-header__desc { font-size: 16px; color: var(--text2); margin-top: 12px; }

/* ═══════════════════ DOWNLOAD PAGE ═══════════════════ */
.dl-section { padding: 48px 0; }
.dl-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow); text-align: center; max-width: 600px; margin: 0 auto;
}
.dl-card__icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.dl-card__title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.dl-card__ver { font-size: 14px; color: var(--text3); margin-bottom: 24px; }
.dl-card__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dl-card__info-item strong { display: block; font-size: 18px; color: var(--blue); }
.dl-card__info-item span { font-size: 12px; color: var(--text3); }

/* ═══════════════════ FAQ PAGE ═══════════════════ */
.faq-page { padding: 48px 0; max-width: 800px; margin: 0 auto; }
.faq-block { margin-bottom: 40px; }
.faq-block__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.faq-block__item { background: var(--white); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.faq-block__q { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.faq-block__a { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ═══════════════════ ARTICLE PAGE ═══════════════════ */
.article { padding: 48px 0; max-width: 780px; margin: 0 auto; }
.article__header { margin-bottom: 32px; }
.article__title { font-size: 32px; font-weight: 700; line-height: 1.3; }
.article__meta { font-size: 13px; color: var(--text3); margin-top: 12px; }
.article__body { font-size: 15px; line-height: 1.8; color: var(--text); }
.article__body p { margin-bottom: 18px; }
.article__body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; }
.article__body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.article__body ul { list-style: disc; padding-left: 20px; margin-bottom: 18px; }
.article__body li { margin-bottom: 6px; }
.article__body strong { color: var(--blue); }

/* ═══════════════════ 404 PAGE ═══════════════════ */
.notfound { padding: 120px 0 80px; text-align: center; }
.notfound__code { font-size: 120px; font-weight: 800; color: var(--blue); line-height: 1; }
.notfound__text { font-size: 20px; color: var(--text2); margin: 16px 0 32px; }

/* ── 面包屑 ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--text4); }

/* ── 相关文章 ── */
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related__title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header__inner { padding: 0 20px; }
    .nav { display: none; }
    .burger { display: flex; }
    .hero { min-height: 480px; }
    .hero__title { font-size: 32px; }
    .hero__subtitle { font-size: 15px; }
    .section { padding: 48px 0; }
    .section__title { font-size: 22px; }
    .feature__tabs { flex-direction: column; }
    .feature__tab { min-width: 0; }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cards { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__right { text-align: left; }
    .footer__social { justify-content: flex-start; }
    .banner__inner { flex-direction: column; gap: 12px; text-align: center; }
    .dl-card__info { grid-template-columns: 1fr; }
    .page-header__title { font-size: 26px; }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero { min-height: 380px; }
    .hero__title { font-size: 26px; }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__cta .btn-yellow, .hero__cta .btn-blue { width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .feature__tab { padding: 14px 16px; }
    .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .dl-card { padding: 24px 20px; }
}
