/* ============================================================
   common.css — 铁蛋电竞 站3 公共设计系统（橙色主题）
   仅承载：重置 / 变量 / 容器 / 顶栏 / 导航 / 面包屑 / 页脚 / 游戏互链 / 通用工具
   每个内容页另有独立 css/<page>.css，类名带专属前缀，互不干扰。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --orange-50:  #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;

    --ink-900: #1c1917;
    --ink-700: #44403c;
    --ink-500: #78716c;
    --ink-400: #a8a29e;
    --ink-300: #d6d3d1;
    --ink-200: #e7e5e4;
    --ink-100: #f5f5f4;
    --ink-50:  #fafaf9;

    --white: #ffffff;
    --green: #16a34a;
    --red:   #dc2626;
    --blue:  #2563eb;

    --primary: var(--orange-600);
    --primary-dark: var(--orange-700);
    --primary-soft: var(--orange-50);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(28, 25, 23, .06);
    --shadow-sm: 0 2px 10px rgba(28, 25, 23, .08);
    --shadow: 0 10px 30px rgba(28, 25, 23, .10);
    --shadow-lg: 0 24px 60px rgba(28, 25, 23, .16);

    --maxw: 1200px;
    --head-h: 70px;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--ink-50);
    line-height: 1.7;
    font-size: 15px;
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--ink-900); }
p { margin: 0; }
a { color: var(--orange-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-600); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ---------- 容器 ---------- */
.td-wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}
.td-main { min-height: 50vh; display: block; }

/* ============================================================
   顶部细条
   ============================================================ */
.td-topbar {
    background: var(--ink-900);
    color: var(--ink-300);
    font-size: 12.5px;
}
.td-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    gap: 16px;
}
.td-topbar-slogan { color: var(--orange-300); white-space: nowrap; }
.td-topbar-links { display: flex; gap: 18px; }
.td-topbar-links a { color: var(--ink-300); }
.td-topbar-links a:hover { color: var(--white); }

/* ============================================================
   主头部 / 导航
   ============================================================ */
.td-head {
    position: sticky;
    top: 0;
    z-index: 99990;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ink-200);
}
.td-head-inner {
    height: var(--head-h);
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Logo */
.td-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.td-logo-badge {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff; font-weight: 800; font-size: 19px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(234, 88, 12, .35);
}
.td-logo-text { font-size: 20px; font-weight: 800; color: var(--ink-900); letter-spacing: .5px; }
.td-logo-text em { font-style: normal; color: var(--orange-600); }

/* 菜单：注意不设 overflow，保证下拉完整显示 */
.td-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.td-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 9px 11px;
    color: var(--ink-700);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}
.td-link:hover { color: var(--orange-600); background: var(--orange-50); }
.td-link.is-on { color: var(--orange-700); font-weight: 700; }
.td-link.is-on::after {
    content: "";
    position: absolute; left: 11px; right: 11px; bottom: 2px;
    height: 2.5px; border-radius: 2px;
    background: var(--orange-600);
}
.td-caret { font-size: 11px; margin-left: 3px; color: var(--ink-400); }

/* 下拉 */
.td-drop { position: relative; }
.td-dropmenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 99999;
}
.td-drop:hover .td-dropmenu,
.td-drop.open .td-dropmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.td-drop-label {
    font-size: 11.5px;
    color: var(--ink-400);
    letter-spacing: 1px;
    padding: 2px 8px 8px;
    font-weight: 700;
}
.td-drop-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.td-drop-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.td-drop-item:hover { background: var(--orange-50); }
.td-drop-ico {
    width: 34px; height: 34px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 17px;
    background: var(--ink-100);
    border-radius: 10px;
}
.td-drop-item b { display: block; font-size: 13.5px; color: var(--ink-900); line-height: 1.3; }
.td-drop-item small { display: block; font-size: 11px; color: var(--ink-500); line-height: 1.3; }
.td-drop-list { display: grid; gap: 2px; }
.td-drop-line {
    padding: 8px 10px;
    font-size: 13.5px;
    color: var(--ink-700);
    border-radius: var(--radius-sm);
}
.td-drop-line:hover { background: var(--orange-50); color: var(--orange-700); }

/* 右侧操作区 */
.td-head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.td-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 18px rgba(234, 88, 12, .35);
}
.td-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(234, 88, 12, .42); }

/* 汉堡按钮 */
.td-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: var(--orange-50);
    border: 1px solid var(--orange-200);
    border-radius: 11px;
    padding: 0 10px;
}
.td-burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--orange-700);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s;
}
body.menu-open .td-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .td-burger span:nth-child(2) { opacity: 0; }
body.menu-open .td-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   面包屑
   ============================================================ */
.crumb { padding: 18px 0 4px; }
.crumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.crumb-item { color: var(--ink-500); display: flex; align-items: center; }
.crumb-item a { color: var(--ink-500); }
.crumb-item a:hover { color: var(--orange-600); }
.crumb-item:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--ink-400); }
.crumb-item.current { color: var(--ink-900); font-weight: 600; }

/* ============================================================
   通用区块工具（页面可选用，不强制）
   ============================================================ */
.td-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--orange-700);
    background: var(--orange-100);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}
.td-section-head { max-width: 720px; margin-bottom: 34px; }
.td-section-head h2 { font-size: 28px; margin: 14px 0 10px; }
.td-section-head p { color: var(--ink-500); }
.td-center { text-align: center; margin-inline: auto; }

/* ============================================================
   游戏页底部互链
   ============================================================ */
.glinks { background: #fff; border-top: 1px solid var(--ink-200); padding: 46px 0; }
.glinks-inner { }
.glinks-title { font-size: 22px; margin-bottom: 20px; }
.glinks-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.glinks-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-pill);
    color: var(--ink-700);
    font-size: 14px;
    font-weight: 600;
}
.glinks-chip:hover {
    border-color: var(--orange-400);
    background: var(--orange-50);
    color: var(--orange-700);
}
.glinks-ico { font-size: 16px; }

/* ============================================================
   页脚 CTA 带
   ============================================================ */
.ft-cta {
    background:
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, .35), transparent 55%),
        linear-gradient(120deg, var(--orange-700), var(--orange-600) 55%, var(--orange-500));
    color: #fff;
}
.ft-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 44px;
}
.ft-cta h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.ft-cta p { color: var(--orange-100); font-size: 14.5px; }
.ft-cta-btns { display: flex; gap: 14px; flex-shrink: 0; }
.ft-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 28px;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 15px;
}
.ft-btn-solid { background: #fff; color: var(--orange-700); }
.ft-btn-solid:hover { color: var(--orange-600); background: var(--orange-50); }
.ft-btn-ghost { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.ft-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ============================================================
   页脚
   ============================================================ */
.ft { background: var(--ink-900); color: var(--ink-400); padding: 56px 0 0; }
.ft-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 42px;
}
.ft-brand .td-logo-text { color: #fff; }
.ft-brand p { margin-top: 16px; font-size: 13.5px; color: var(--ink-400); }
.ft-contact { color: var(--ink-300) !important; line-height: 2; }
.ft-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.ft-col a { display: block; color: var(--ink-400); font-size: 13.5px; padding: 5px 0; }
.ft-col a:hover { color: var(--orange-400); }
.ft-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12.5px;
    flex-wrap: wrap;
}
.ft-bottom a { color: var(--ink-300); }
.ft-bottom a:hover { color: var(--orange-400); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
    .td-menu .td-link { padding: 8px 8px; font-size: 13.5px; }
    .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 960px) {
    .td-topbar { display: none; }
    .td-burger { display: flex; }

    .td-menu {
        position: fixed;
        top: var(--head-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--ink-200);
        box-shadow: var(--shadow-lg);
        padding: 14px 20px 26px;
        max-height: calc(100vh - var(--head-h));
        overflow-y: auto;
        display: none;
    }
    body.menu-open .td-menu { display: flex; }
    .td-link { padding: 12px 10px; font-size: 15px; border-radius: 10px; }
    .td-link.is-on::after { display: none; }

    .td-dropmenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--ink-200);
        background: var(--ink-50);
        min-width: 0;
        margin: 4px 0 8px;
        display: none;
    }
    .td-drop.open .td-dropmenu { display: block; }
    .td-drop-cols { grid-template-columns: 1fr; }
    .td-caret { transition: transform .2s; }
    .td-drop.open .td-caret { transform: rotate(180deg); }

    .ft-cta-inner { flex-direction: column; align-items: flex-start; }
    .ft-cta-btns { width: 100%; }
    .ft-btn { flex: 1; padding-inline: 16px; }
}

@media (max-width: 640px) {
    .td-wrap { padding-inline: 16px; }
    .td-logo-text { font-size: 17px; }
    .td-cta { padding: 0 16px; height: 38px; font-size: 14px; }
    .ft-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .ft-brand { grid-column: 1 / -1; }
    .ft-bottom { flex-direction: column; align-items: flex-start; }
    .td-section-head h2 { font-size: 23px; }
}
