/* ============================================================
   舞限计分 — 瑞士国际主义风格设计系统
   Swiss International Style: grid / black-white / accent red #E30613
   Loaded ONLY via _LayoutVisitorSwiss.cshtml (public portal)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --ink: #111111;
    --paper: #ffffff;
    --gray: #666666;
    --gray-light: #f4f4f4;
    --line: #111111;
    --line-light: #dddddd;
    --accent: #E30613;
    --maxw: 1200px;
    --gutter: 24px;
    --rule: 1px;
    --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "Courier New", Courier, monospace;
    --fs-hero: clamp(40px, 7vw, 76px);
    --fs-h2: 34px;
    --fs-h3: 20px;
    --fs-body: 15px;
    /* 霓虹点缀（P3R/P5R/瓦洛兰特融合） */
    --neon-cyan: #E30613;
    --neon-magenta: #C00511;
    --neon-amber: #E30613;
    --neon-violet: #A00A15;
}

/* ---------- Base ---------- */
body.sw-body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    font-size: var(--fs-body);
    line-height: 1.7;
}

.sw-body a {
    color: var(--ink);
    text-decoration: none;
    transition: color .15s;
}

.sw-body a:hover,
.sw-body a:focus {
    color: var(--accent);
    text-decoration: none;
}

.sw-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* 通用区段容器（.container 覆盖，避免 Bootstrap 固定宽度冲突） */
.sw-body .container {
    width: 100%;
    max-width: var(--maxw);
}

/* ---------- Grid ---------- */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
}

.sw-col-3 { grid-column: span 3; }
.sw-col-4 { grid-column: span 4; }
.sw-col-6 { grid-column: span 6; }
.sw-col-8 { grid-column: span 8; }
.sw-col-12 { grid-column: span 12; }

@media (max-width: 992px) {
    .sw-col-3, .sw-col-4 { grid-column: span 6; }
}

@media (max-width: 600px) {
    .sw-col-3, .sw-col-4, .sw-col-6, .sw-col-8 { grid-column: span 12; }
    /* 单列堆叠时归零列间距，避免 12 列 × 24px gap 吃掉宽度导致塌陷 */
    .sw-grid { column-gap: 0; }
}

/* ---------- Topbar ---------- */
.sw-topbar {
    background: var(--ink);
    color: var(--paper);
}

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

.sw-logo {
    display: flex;
    align-items: center;
    color: var(--paper) !important;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .05em;
}

.sw-logo:hover { color: var(--paper) !important; }

.sw-logo .sw-logo-red {
    color: var(--accent) !important;
    margin: 0 2px;
}

.sw-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-nav li {
    list-style: none;
    margin-left: 28px;
}

.sw-nav {
    position: relative;
}

.sw-nav a {
    display: block;
    padding: 22px 0;
    color: var(--paper);
    font-size: 14px;
    letter-spacing: .1em;
    position: relative;
    z-index: 1;
}

/* 激活态文字加粗（下划线由滑动指示条表达） */
.sw-nav li.active a {
    font-weight: 700;
}

/* 悬浮滑动指示条：红色横线 */
.sw-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    transition: left .25s cubic-bezier(.16, 1, .3, 1), width .25s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
    z-index: 0;
}

.sw-nav a:hover,
.sw-nav a:focus {
    color: var(--paper);
}

.sw-nav li.active a {
    color: var(--paper);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* 汉堡按钮（Bootstrap collapse 兼容，隐藏桌面端） */
.sw-topbar .navbar-toggle {
    display: none;
    border: 1px solid var(--paper);
    border-radius: 0;
    margin: 14px 0;
    padding: 8px 10px;
}

.sw-topbar .navbar-toggle .icon-bar {
    background: var(--paper);
}

@media (max-width: 768px) {
    .sw-topbar .sw-container {
        flex-wrap: wrap;
        min-height: 56px;
    }

    .sw-topbar .navbar-toggle { display: block; }

    .sw-topbar .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        border: none;
        box-shadow: none;
    }

    .sw-nav {
        flex-direction: column;
        width: 100%;
        padding: 8px 0;
    }

    .sw-nav li { margin-left: 0; }

    .sw-nav a {
        padding: 10px 0;
        border-bottom: 1px solid #333;
        letter-spacing: .08em;
    }
}

/* ---------- Hero ---------- */
.sw-hero {
    padding: 72px 0 64px;
    border-bottom: var(--rule) solid var(--line);
}

.sw-hero .sw-grid {
    align-items: end;
}

.sw-hero-title {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    text-transform: none;
}

.sw-hero-kicker {
    font-size: 14px;
    letter-spacing: .35em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.sw-hero-lead {
    font-size: 17px;
    line-height: 1.9;
    color: var(--gray);
    max-width: 620px;
    margin-bottom: 0;
}

.sw-hero-badge {
    text-align: right;
    padding: 8px 0 8px 24px;
    border-right: 3px solid var(--accent);
}

.sw-hero-badge-title {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0 0 6px;
    color: var(--ink);
}

.sw-hero-badge-sub {
    font-size: 14px;
    letter-spacing: .12em;
    color: var(--gray);
    margin: 0;
}

/* ---------- Section ---------- */
.sw-section {
    padding: 56px 0 48px;
    border-top: var(--rule) solid var(--line);
}

.sw-section-head {
    display: flex;
    align-items: baseline;
    border-bottom: var(--rule) solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 28px;
}

.sw-section-no {
    font-size: 15px;
    font-weight: 700;
    border: var(--rule) solid var(--ink);
    padding: 2px 10px;
    margin-right: 16px;
    white-space: nowrap;
}

.sw-section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.1;
}

.sw-section-sub {
    margin-left: auto;
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--gray);
    text-transform: uppercase;
    white-space: nowrap;
}

.sw-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gray);
    margin: 0 0 6px;
}

/* ---------- Buttons ---------- */
.sw-btn {
    display: inline-block;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 11px 34px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.sw-btn:hover,
.sw-btn:focus {
    background: var(--ink);
    color: var(--paper) !important;
    text-decoration: none;
}

.sw-btn--primary {
    background: var(--ink);
    color: var(--paper) !important;
}

.sw-btn--primary:hover,
.sw-btn--primary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper) !important;
}

.sw-btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper) !important;
}

.sw-btn--accent:hover,
.sw-btn--accent:focus {
    background: var(--paper);
    color: var(--accent);
}

/* 兼容：bootstrap .btn 被旧页面使用 */
.sw-body .btn {
    border-radius: 0;
}

/* ---------- Forms ---------- */
.sw-input,
.sw-body .form-control,
.sw-body input.form-control {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 10px 2px;
    font-size: 16px;
    color: var(--ink);
    height: auto;
    line-height: 1.5;
    -webkit-appearance: none;
}

/* 成绩查询页搜索框：不走上面的下划线风格，恢复常规输入框样式；
   输入框与按钮同一行水平排列，输入框加长
   （注意：视图里 form 直接包 td 是无效 HTML，浏览器会把 form 移出表格，
   所以用 td.sw-query-search 定位，不能用 form 选择器） */
td.sw-query-search input[type="text"] {
    display: inline-block;
    width: 160px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    background: #fff;
    padding: 5px;
    font-size: 14px;
    color: #555;
    height: 30px;
    line-height: normal;
    vertical-align: middle;
}
td.sw-query-search input[type="text"]:focus {
    border: 1px solid #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    outline: none;
}

.sw-input:focus,
.sw-body .form-control:focus {
    border-bottom: 2px solid var(--accent);
    box-shadow: none;
    outline: none;
}

.sw-input::placeholder,
.sw-body .form-control::placeholder { color: #999; }

.sw-form-field {
    margin-bottom: 24px;
}

.sw-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 4px;
}

.sw-form-error {
    color: var(--accent);
    font-size: 13px;
}

/* ---------- Tabs（登录面板） ---------- */
.sw-tabs {
    position: relative;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 26px;
}

/* 注意：ul 同时持有 .sw-tabs 与 .nav-tabs，选择器必须用 .sw-tabs.nav-tabs（同一元素），
   不能用 .sw-tabs .nav-tabs（后者要求 .nav-tabs 是 .sw-tabs 的后代，永不匹配） */
.sw-tabs.nav-tabs {
    border-bottom: none;
    display: flex;
}

.sw-tabs.nav-tabs > li {
    float: none;
    display: inline-block;
    margin-bottom: -2px;
}

.sw-tabs.nav-tabs > li > a {
    border: none !important;
    border-radius: 0 !important;
    margin-right: 30px;
    padding: 12px 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8a8a8a !important;
    background: transparent !important;
    opacity: 1;
}

.sw-tabs.nav-tabs > li > a:hover,
.sw-tabs.nav-tabs > li > a:focus {
    background: transparent !important;
    color: var(--ink) !important;
    border: none !important;
}

.sw-tabs.nav-tabs > li.active > a,
.sw-tabs.nav-tabs > li.active > a:hover,
.sw-tabs.nav-tabs > li.active > a:focus {
    border: none !important;
    border-bottom: 3px solid var(--accent) !important;
    color: var(--ink) !important;
    background: transparent !important;
    font-weight: 800;
}

.sw-tabs .tab-content { padding: 8px 0 0; }

/* ---------- List rows（赛事/公告/案例列表） ---------- */
.sw-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-list li {
    list-style: none;
}

.sw-list-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    column-gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-light);
}

.sw-list-row:hover {
    background: var(--gray-light);
}

.sw-list-row .sw-row-no {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.sw-list-row .sw-row-link {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.4;
    display: block;
}

/* 标题 + 地址两行结构 */
.sw-list-row .sw-row-main {
    min-width: 0;
}

.sw-list-row .sw-row-meta {
    font-size: 12px;
    color: var(--gray);
    margin-top: 3px;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-list-row .sw-row-meta i {
    margin-right: 5px;
    color: var(--accent);
    width: 12px;
    text-align: center;
}

.sw-list-row .sw-row-date {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: .08em;
}

.sw-list-row .sw-row-arrow {
    font-size: 20px;
    color: var(--accent);
}

/* ---------- 首页赛事行：悬停中心向外径向虚化显示封面 ---------- */
.sw-row-hover {
    position: relative;
    overflow: hidden;
}

/* 封面层：默认透明，悬停时从中心向外淡入 */
.sw-row-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    /* 中心向外径向遮罩：悬停时中心清晰、边缘虚化 */
    -webkit-mask-image: radial-gradient(circle at center,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, .85) 45%,
            rgba(0, 0, 0, .25) 75%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle at center,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, .85) 45%,
            rgba(0, 0, 0, .25) 75%,
            rgba(0, 0, 0, 0) 100%);
    transition: opacity .4s ease;
}

.sw-row-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.15);
    transition: transform .5s ease;
}

/* 无海报占位：黑底 */
.sw-row-poster--empty {
    background: var(--ink);
}

.sw-row-poster--empty::after {
    content: "WUXIAN";
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .45);
}

/* 悬停：封面淡入 + 图片由中心展开 */
.sw-row-hover:hover .sw-row-poster {
    opacity: 1;
}

.sw-row-hover:hover .sw-row-poster img {
    transform: scale(1);
}

/* 悬停时文字浮于封面上方 */
.sw-row-hover:hover .sw-row-no,
.sw-row-hover:hover .sw-row-main,
.sw-row-hover:hover .sw-row-arrow {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.sw-row-hover:hover .sw-row-meta {
    color: rgba(255, 255, 255, .85);
}

.sw-row-hover:hover .sw-row-meta i {
    color: #fff;
}

/* 兼容旧类 .charList/.seqli（未被重写的页面也会用到） */
.sw-body .charList,
.sw-body .seqli {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- 内容/卡片 ---------- */
.sw-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: var(--rule) solid var(--line);
}

.sw-card {
    border: 1px solid var(--line);
    border-top: none;
    padding: 28px 26px;
    margin: -1px -1px 0 0;
    background: var(--paper);
}

.sw-card:hover {
    background: var(--gray-light);
}

.sw-card .sw-card-no {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.sw-card .sw-card-title {
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 12px;
}

.sw-card .sw-card-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
    margin: 0;
}

@media (max-width: 768px) {
    .sw-cards { grid-template-columns: 1fr; }
}

/* ---------- 赛事卡片列表（瑞士国际主义风格） ----------
   直角、1px 黑色细线网格、固定尺寸、海报显示、
   红黑点缀——瑞士网格设计语言 */
.sw-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
}

.sw-match-card {
    display: block;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    transition: background-color .2s ease;
    position: relative;
    overflow: hidden;
}

/* 固定卡片尺寸：宽 340px 基准，高 252px 恒定，内容不改变卡片大小 */
.sw-match-card {
    width: 100%;
    max-width: 340px;
    height: 252px;
}

/* 瑞士风格：无圆角无阴影，hover 反色 */
.sw-match-card:hover {
    background: var(--gray-light);
}

/* 海报区：固定高度，无海报时显示黑色占位 */
.sw-match-poster {
    height: 142px;
    background: var(--ink);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
}

.sw-match-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 无海报时的占位：黑底 + 红色斜条 + 白色大字 */
.sw-match-poster--empty {
    background: var(--ink);
}

.sw-match-poster--empty::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0 22px,
        rgba(255, 255, 255, .07) 22px 23px
    );
}

.sw-match-poster--empty::after {
    content: "WUXIAN";
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .5);
}

/* 海报上的日期角标：黑色方块红字 */
.sw-match-poster .sw-match-date {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    background: var(--ink);
    color: #fff;
    padding: 6px 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    z-index: 2;
}

.sw-match-poster .sw-match-date .sw-m-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.sw-match-poster .sw-match-date .sw-m-month {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .9);
}

/* 卡片信息区：固定高度，文字超长截断 */
.sw-match-info {
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    height: calc(252px - 142px);
    overflow: hidden;
}

.sw-match-card .sw-m-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: .01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-match-card .sw-m-meta {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.8;
    margin-top: auto;
    border-top: 1px solid var(--line-light);
    padding-top: 6px;
    letter-spacing: .02em;
}

.sw-match-card .sw-m-meta-row {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-match-card .sw-m-meta i {
    margin-right: 7px;
    color: var(--accent);
    width: 14px;
    text-align: center;
}

.sw-match-card .sw-m-arrow {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    transition: transform .2s ease;
}

.sw-match-card:hover .sw-m-arrow {
    transform: translateX(4px);
}

/* 已报名状态：右上角灰色方块 */
.sw-match-card .sw-m-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 11px;
    letter-spacing: .15em;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sw-match-card .sw-m-status--done {
    background: #555;
}

/* ---------- 登录折叠（手机端） ---------- */
.sw-login-fold-head {
    display: none;   /* 桌面端隐藏折叠头 */
}

/* 首页最新赛事卡片海报：电脑端 hover 显示（叠于卡片上方），手机端常显 */
.sw-hc-poster {
    position: absolute;
    inset: 0;
    height: 100%;
    background: var(--ink);
    overflow: hidden;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
    pointer-events: none;
}

.sw-home-card {
    position: relative;
}

/* 电脑端 hover：海报淡入，文字浮于上方 */
.sw-home-card:hover .sw-hc-poster {
    opacity: 1;
}

.sw-home-card:hover .sw-hc-date,
.sw-home-card:hover .sw-hc-title,
.sw-home-card:hover .sw-hc-meta {
    color: #fff;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.sw-home-card:hover .sw-hc-meta i {
    color: var(--accent);
}

/* ---------- 查询页（PlayerIndex）专用：桌面 padding（须在媒体查询之前，避免覆盖手机端） ---------- */
.sw-section-page {
    padding-top: 48px;
}

@media (max-width: 600px) {
    .sw-match-grid { grid-template-columns: 1fr; }
    /* 手机端隐藏 hero 区 */
    .sw-hero { display: none; }
    /* 手机端隐藏赛事服务与功能特点区 */
    .sw-mobile-hide { display: none; }
    /* 手机端压缩 section 顶部留白（hero 隐藏后不空一大块） */
    .sw-section { padding-top: 24px; }
    .sw-section-head { margin-bottom: 16px; }
    /* 查询页（PlayerIndex）手机端进一步压缩顶部 */
    .sw-section-page { padding-top: 16px; }

    /* 手机端登录折叠：折叠头融合 section-head 样式（白底横线），点击展开 */
    .sw-section-head { display: none; }

    .sw-login-fold-head {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 12px;
        border: 1px solid var(--ink);
        border-radius: 0;
        background: var(--paper);
        color: var(--ink);
        font-size: 28px;
        font-weight: 800;
        letter-spacing: .02em;
        padding: 16px 18px;
        cursor: pointer;
        transition: background-color .2s ease, color .2s ease, transform .1s ease;
    }

    .sw-login-fold-head:active {
        background: var(--accent);
        color: var(--paper);
        transform: translateY(1px);
    }

    .sw-login-fold.open .sw-login-fold-head {
        background: var(--ink);
        color: var(--paper);
    }

    .sw-login-fold-arrow {
        transition: transform .25s ease;
        color: var(--accent);
        font-size: 14px;
    }

    .sw-login-fold.open .sw-login-fold-arrow {
        transform: rotate(180deg);
    }

    .sw-login-fold-body { display: none; }
    .sw-login-fold.open .sw-login-fold-body { display: block; }

    /* 手机端最新赛事海报常显（顶部条样式，不覆盖文字） */
    .sw-hc-poster {
        opacity: 1;
        position: static;
        height: 70px;
        margin-bottom: 10px;
        z-index: auto;
    }

    .sw-home-card:hover .sw-hc-date,
    .sw-home-card:hover .sw-hc-title,
    .sw-home-card:hover .sw-hc-meta {
        color: inherit;
        text-shadow: none;
    }
}

/* ---------- 系统入口区：两列等高对齐 ---------- */
.sw-entry-grid {
    align-items: stretch;
}

/* 首页最新赛事：固定两列卡片 */
.sw-home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-home-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    padding: 12px;
    background: var(--paper);
    transition: box-shadow .2s ease, transform .2s ease;
    min-height: 108px;
    min-width: 0;   /* flex 子项允许收缩，配合 grid minmax(0,1fr) 自适应 */
}

.sw-home-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.sw-home-card .sw-hc-date {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.sw-hc-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sw-hc-poster--empty::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0 22px,
        rgba(255, 255, 255, .07) 22px 23px
    );
}

.sw-hc-poster--empty::after {
    content: "WUXIAN";
    position: absolute;
    right: 8px;
    bottom: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .25em;
    color: rgba(255, 255, 255, .45);
}

.sw-home-card .sw-hc-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-home-card .sw-hc-meta {
    font-size: 11px;
    color: var(--gray);
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-home-card .sw-hc-meta i {
    margin-right: 4px;
    color: var(--accent);
}

@media (max-width: 340px) {
    .sw-home-cards { grid-template-columns: 1fr; }
}

.sw-entry-grid > .sw-col-6 {
    display: flex;
    flex-direction: column;
}

/* 登录面板撑满列高，内容顶部对齐 + 弹性分布填满 */
.sw-entry-grid .sw-login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 面板内容随高度弹性分布（tab 与内容、内容与底部注记之间拉开） */
.sw-entry-grid .sw-login-panel .sw-tabs {
    margin-bottom: 18px;
}

.sw-entry-grid .sw-login-panel .tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 激活的 tab-pane 撑满 tab-content，form 随之填满 */
.sw-entry-grid .sw-login-panel .tab-content > .tab-pane.active {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sw-entry-grid .sw-login-panel form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 输入框间距拉大，弹性填满可用高度 */
.sw-login-panel .form-group {
    margin-bottom: 22px;
}

/* 注记吸底：actions 弹性占满剩余空间，内容推到底部 */
.sw-login-panel .sw-login-actions {
    margin-top: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sw-login-panel .sw-login-actions > .sw-login-note {
    margin-top: auto;
    padding-top: 14px;
}

/* 赛事列表列：kicker/标题固定，列表弹性填满 */
.sw-entry-grid .sw-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 6px 0 0;
}

.sw-entry-grid .sw-list-row {
    padding: 14px 0;
}

@media (max-width: 992px) {
    .sw-entry-grid > .sw-col-6 {
        grid-column: span 12;
    }
}

/* ---------- 功能特点数字列表 ---------- */
.sw-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--rule) solid var(--line);
}

.sw-feature {
    display: flex;
    align-items: baseline;
    padding: 22px 18px 22px 0;
    margin-right: -1px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.sw-feature:nth-child(3n) { border-right: none; }

.sw-feature .sw-f-no {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 12px;
    min-width: 30px;
}

.sw-feature .sw-f-name {
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .sw-features { grid-template-columns: 1fr; }
    .sw-feature { border-right: none; }
}

/* ---------- 登录面板 ---------- */
/* 设计：去底边，左右边框从中部向两端渐变虚化 */
.sw-login-panel {
    border: none;
    padding: 26px 30px 22px;
    background: var(--paper);
    position: relative;
}

.sw-login-panel::before,
.sw-login-panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--ink) 38%,
        var(--ink) 62%,
        transparent 100%);
    pointer-events: none;
}

.sw-login-panel::before {
    left: 0;
}

.sw-login-panel::after {
    right: 0;
}

/* 顶部细线保留（与 tab 区衔接） */
.sw-login-panel .sw-tabs {
    border-top: none;
}

.sw-login-panel .sw-form-field { margin-bottom: 22px; }

/* 表单组紧凑：登录面板内输入框上下留白收窄 */
.sw-login-panel .form-group {
    margin-bottom: 14px;
}

.sw-login-panel .form-control.sw-input {
    padding: 9px 2px;
}

/* 错误提示：不占位（无错误时不出现） */
.sw-login-panel .sw-login-err {
    min-height: 0;
    font-size: 13px;
    margin: 0 0 6px;
}

.sw-login-panel .sw-login-err:empty {
    display: none;
}

/* 整行大按钮 */
.sw-btn--block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 34px;
    font-size: 16px;
}

/* 注册/使用说明：紧凑行内链接 */
.sw-login-actions {
    margin-top: 18px;
}

.sw-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.sw-login-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gray);
}

.sw-login-link:hover {
    color: var(--accent);
}

.sw-login-sep {
    color: var(--line-light);
    font-size: 12px;
}

.sw-login-note {
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.7;
    color: #999;
    border-top: 1px solid var(--line-light);
    padding-top: 10px;
    text-align: center;
}

.sw-login-qr iframe {
    width: 100%;
    height: 240px;
    border: none;
}

/* ---------- 登录加载动效 ---------- */

/* 按钮变动态圆：转圈加载 */
.sw-login-btn-loading {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sw-login-spin .8s linear infinite;
    margin: 0 auto;
}

@keyframes sw-login-spin {
    to { transform: rotate(360deg); }
}

/* 加载态：按钮收缩为圆 */
.sw-login-loading {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    transition: width .35s ease, height .35s ease, border-radius .35s ease;
}

.sw-login-loading .sw-login-btn-text {
    display: none;
}

/* ---------- 关于/联系我们 ---------- */
.sw-about-text {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.sw-contact-block {
    border: var(--rule) solid var(--line);
    padding: 26px 28px;
    margin-bottom: 20px;
}

.sw-contact-block .sw-contact-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--accent);
    text-transform: uppercase;
}

.sw-contact-block .sw-contact-line {
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.sw-footer {
    background: var(--ink);
    color: #bbb;
    margin-top: 56px;
}

.sw-footer .sw-container {
    padding-top: 34px;
    padding-bottom: 30px;
}

.sw-footer nav ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    text-align: center;
}

.sw-footer nav li {
    display: inline-block;
    margin: 0 10px;
}

.sw-footer nav a {
    color: var(--paper);
    padding: 5px 8px;
    font-size: 14px;
    letter-spacing: .1em;
}

.sw-footer nav a:hover { color: var(--accent); }

.sw-footer p {
    text-align: center;
    font-size: 12px;
    letter-spacing: .05em;
    margin: 0 0 4px;
    color: #999;
}

.sw-footer p a { color: #ccc; }

.sw-footer p a:hover { color: var(--accent); }

/* ---------- 通用 ---------- */
.sw-rule { border: none; border-top: var(--rule) solid var(--line); margin: 0; }

/* 旧导航脚本遗留元素（main.js 仍操作其坐标，仅视觉隐藏） */
#NavBg { display: none !important; }

.text-accent { color: var(--accent); }

.marT40 { margin-top: 40px; }
.marB40 { margin-bottom: 40px; }

/* ---------- Print（保护 Print* 页面） ---------- */
@media print {
    .sw-topbar,
    .sw-footer,
    .sw-hero,
    .sw-section-head .sw-section-sub,
    .no-print {
        display: none !important;
    }

    body.sw-body {
        background: #fff;
        color: #000;
        font-size: 12px;
    }

    .sw-body a { color: #000; }

    .sw-section {
        padding: 8px 0;
        border-top: none;
    }

    .sw-body .table,
    .sw-body table {
        border-collapse: collapse;
        width: 100%;
    }

    .sw-body .table td,
    .sw-body .table th {
        border: 1px solid #000;
        padding: 4px 6px;
    }

    .sw-container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================================
   动效层 (Phase 1 深化) — 由 swiss.js 驱动
   ============================================================ */

/* 页面载入淡入 */
.sw-body.js-anim-ready {
    animation: sw-page-in .45s ease-out both;
}

@keyframes sw-page-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* 滚动进入视口显示 */
.sw-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    will-change: opacity, transform;
}

.sw-reveal.sw-revealed {
    opacity: 1;
    transform: none;
}


/* 按钮 hover 微交互 */
.sw-btn {
    position: relative;
    overflow: hidden;
}

.sw-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .45s ease;
}

.sw-btn:hover::after {
    left: 140%;
}

/* 列表行箭头滑入 */
.sw-list-row .sw-row-arrow {
    display: inline-block;
    transition: transform .25s ease, color .25s ease;
}

.sw-list-row:hover .sw-row-arrow {
    transform: translateX(6px);
}

/* 卡片 hover */
.sw-card {
    transition: box-shadow .3s ease, transform .3s ease;
}

.sw-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}

/* 登录面板 tab（激活态由 CSS border-bottom 表达） */
.sw-tabs {
    position: relative;
}

/* 加载动效：替换静态 loader 用（元素加 .sw-loading 即显示转圈） */
.sw-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
    vertical-align: middle;
}

@keyframes sw-spin {
    to { transform: rotate(360deg); }
}

/* 数据更新闪动（大屏/成绩类后续用） */
@keyframes sw-flash {
    0%   { background-color: rgba(227, 6, 19, .22); }
    100% { background-color: transparent; }
}

.sw-flash {
    animation: sw-flash 1.1s ease-out;
}

/* ============================================================
   瑞士装饰组件（9 个）
   ============================================================ */

/* L 角括号 */
.sw-deco-corner {
    position: relative;
    width: 24px;
    height: 24px;
    flex: none;
}

.sw-deco-corner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
}

.sw-deco-corner::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

/* 斜切霓虹线 */
.sw-deco-slash {
    display: inline-block;
    width: 3px;
    height: 34px;
    background: var(--neon-magenta);
    transform: skewX(-45deg);
    box-shadow: 0 0 10px rgba(227, 6, 19, .6);
}

/* 超大描边数字 */
.sw-deco-numeral {
    font-family: var(--mono);
    font-weight: 900;
    font-size: clamp(80px, 14vw, 200px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
    text-stroke: 1.5px var(--ink);
    user-select: none;
}

/* 三线规则条 */
.sw-deco-rule {
    width: 120px;
    height: 12px;
    background:
        repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(180deg, transparent 0 6px, var(--ink) 6px 8px);
    opacity: .8;
}

/* 点阵块 */
.sw-deco-dots {
    width: 48px;
    height: 48px;
    background:
        radial-gradient(var(--ink) 2px, transparent 3px),
        radial-gradient(var(--ink) 2px, transparent 3px),
        radial-gradient(var(--ink) 2px, transparent 3px),
        radial-gradient(var(--ink) 2px, transparent 3px);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px, 16px 16px, 24px 24px;
    opacity: .5;
}

/* 十字刻度 */
.sw-deco-crosshair {
    position: relative;
    width: 34px;
    height: 34px;
}

.sw-deco-crosshair::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

.sw-deco-crosshair::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    transform: translateX(-50%);
}

/* mono 序号标签 */
.sw-deco-index {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 3px 10px;
    background: var(--paper);
}

/* 双线框 */
.sw-deco-frame {
    position: relative;
    border: 2px solid var(--ink);
    box-shadow: inset 0 0 0 1px var(--paper), 0 0 0 1px var(--ink);
}

/* 霓虹发光线 */
.sw-deco-glowline {
    display: block;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(227, 6, 19, .7);
}

/* ============================================================
   游戏化动效系统（P5R / P3R / 绝区零 / 瓦洛兰特融合）
   js-anim-ready 门控，prefers-reduced-motion 一键关闭
   ============================================================ */

/* --- P5R 弹出式大字：标题/序号入场 scale 2.2→1 + rotate 过冲 --- */
@keyframes sw-pop {
    0%   { opacity: 0; transform: scale(2.2) rotate(-3deg); }
    60%  { opacity: 1; transform: scale(.94) rotate(.5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

body.js-anim-ready .sw-hero-title,
body.js-anim-ready .sw-section-title,
body.js-anim-ready h1,
body.js-anim-ready .sw-hero-num {
    animation: sw-pop .35s cubic-bezier(.2, .9, .25, 1.2) both;
}

body.js-anim-ready .sw-section-title { animation-delay: .15s; }
body.js-anim-ready .sw-hero-num { animation-delay: .2s; }

/* --- P3R 中心放射 burst：区头背景 conic-gradient 旋转 --- */
.sw-section-head {
    position: relative;
}

body.js-anim-ready .sw-section-no {
    animation: sw-pop .3s cubic-bezier(.2, .9, .25, 1.2) both;
}

@keyframes sw-burst-spin {
    to { transform: rotate(360deg); }
}

.sw-deco-burst {
    position: absolute;
    right: -40px;
    top: 50%;
    width: 90px;
    height: 90px;
    background: repeating-conic-gradient(var(--neon-cyan) 0 2deg, transparent 2deg 12deg);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,.4) 40%, transparent 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,.4) 40%, transparent 70%);
    opacity: .25;
    pointer-events: none;
    animation: sw-burst-spin 14s linear infinite;
}

/* --- P3R 计时器条：页面切换顶部倒计时 scaleX 1→0 --- */
/* --- 全元素交错入场（瀑布式涌入） --- */
@keyframes sw-stagger {
    from { opacity: 0; transform: translateY(24px) rotate(.5deg); }
    to   { opacity: 1; transform: none; }
}

body.js-anim-ready .sw-hero,
body.js-anim-ready .sw-section:not(.sw-reveal),
body.js-anim-ready .sw-container > .sw-section-head {
    animation: sw-stagger .5s cubic-bezier(.16, 1, .3, 1) both;
}

/* 交错阶梯：nth-child 递进 */
body.js-anim-ready .sw-container > .sw-section:nth-child(2) { animation-delay: .05s; }
body.js-anim-ready .sw-container > .sw-section:nth-child(3) { animation-delay: .10s; }
body.js-anim-ready .sw-container > .sw-section:nth-child(4) { animation-delay: .15s; }
body.js-anim-ready .sw-container > .sw-section:nth-child(5) { animation-delay: .20s; }

body.js-anim-ready .sw-card { animation: sw-stagger .45s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-card:nth-child(2) { animation-delay: .08s; }
body.js-anim-ready .sw-card:nth-child(3) { animation-delay: .16s; }
body.js-anim-ready .sw-card:nth-child(4) { animation-delay: .24s; }

body.js-anim-ready .sw-match-card { animation: sw-stagger .45s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-match-card:nth-child(2) { animation-delay: .06s; }
body.js-anim-ready .sw-match-card:nth-child(3) { animation-delay: .12s; }
body.js-anim-ready .sw-match-card:nth-child(4) { animation-delay: .18s; }
body.js-anim-ready .sw-match-card:nth-child(5) { animation-delay: .24s; }
body.js-anim-ready .sw-match-card:nth-child(6) { animation-delay: .30s; }

body.js-anim-ready .sw-list-row { animation: sw-stagger .4s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-list-row:nth-child(2) { animation-delay: .06s; }
body.js-anim-ready .sw-list-row:nth-child(3) { animation-delay: .12s; }
body.js-anim-ready .sw-list-row:nth-child(4) { animation-delay: .18s; }
body.js-anim-ready .sw-list-row:nth-child(5) { animation-delay: .24s; }
body.js-anim-ready .sw-list-row:nth-child(6) { animation-delay: .30s; }

body.js-anim-ready .sw-login-panel { animation: sw-stagger .5s .1s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-contact-block { animation: sw-stagger .5s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-contact-block:nth-child(2) { animation-delay: .1s; }
body.js-anim-ready .sw-feature { animation: sw-stagger .4s cubic-bezier(.16, 1, .3, 1) both; }
body.js-anim-ready .sw-feature:nth-child(3n+2) { animation-delay: .07s; }
body.js-anim-ready .sw-feature:nth-child(3n+3) { animation-delay: .14s; }
body.js-anim-ready .sw-btn { animation: sw-stagger .4s .2s cubic-bezier(.16, 1, .3, 1) both; }

/* --- 持续微动（高动态） --- */

/* 水印数字浮动 + 呼吸 */
@keyframes sw-float {
    0%, 100% { transform: translateY(0); opacity: .5; }
    50%      { transform: translateY(-14px); opacity: .8; }
}


/* 装饰线摆动 */
@keyframes sw-sway {
    0%, 100% { transform: skewX(-45deg) translateX(0); }
    50%      { transform: skewX(-38deg) translateX(6px); }
}

.sw-deco-slash {
    animation: sw-sway 5s ease-in-out infinite;
}

/* 霓虹线脉动 */
@keyframes sw-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(227, 6, 19, .4); }
    50%      { box-shadow: 0 0 18px rgba(227, 6, 19, .95); }
}

.sw-deco-glowline {
    animation: sw-glow 3s ease-in-out infinite;
}

/* 卡片/按钮微浮动 */
@keyframes sw-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

body.js-anim-ready .sw-card { animation-name: sw-bob; animation-duration: 4s; animation-delay: .8s; animation-iteration-count: infinite; }
body.js-anim-ready .sw-card:hover { animation-play-state: paused; }
body.js-anim-ready .sw-match-card { animation-name: sw-bob; animation-duration: 4.6s; animation-delay: 1s; animation-iteration-count: infinite; }
body.js-anim-ready .sw-match-card:hover { animation-play-state: paused; }

/* 序号跳动 */
@keyframes sw-tick {
    0%, 88%, 100% { transform: translateY(0); }
    92%           { transform: translateY(-2px); }
}

body.js-anim-ready .sw-row-no { animation: sw-tick 3s ease-in-out infinite; }
body.js-anim-ready .sw-f-no { animation: sw-tick 3.4s ease-in-out infinite; }

/* hero 光晕扫过 */
@keyframes sw-hero-glow {
    0%, 55%, 100% { opacity: 0; transform: translateX(-30%); }
    70%           { opacity: .8; transform: translateX(30%); }
    85%           { opacity: 0; transform: translateX(90%); }
}

body.js-anim-ready .sw-hero .sw-col-8::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(227, 6, 19, .10), transparent);
    animation: sw-hero-glow 6s ease-in-out infinite;
    pointer-events: none;
}

body.js-anim-ready .sw-hero .sw-col-8 { position: relative; }
}

/* --- 悬停升级 --- */

/* 按钮斜切扫光（覆盖旧 shine） */
.sw-btn::after {
    background: linear-gradient(120deg, transparent, rgba(227, 6, 19, .4), transparent);
    transform: skewX(-30deg);
}

/* 卡片霓虹切角滑入 */
.sw-card {
    position: relative;
}

.sw-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, .18), transparent 40%);
    clip-path: polygon(0 0, 100% 0, 100% 18%, 0 100%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.sw-card:hover::before {
    opacity: 1;
}

/* 列表行箭头霓虹快移 */
.sw-list-row .sw-row-arrow {
    transition: transform .2s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}

.sw-list-row:hover .sw-row-arrow {
    color: var(--neon-cyan);
    transform: translateX(8px);
}

/* 赛事卡顶部霓虹线扫过 */
.sw-match-card {
    position: relative;
}

.sw-match-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.sw-match-card:hover::after {
    transform: scaleX(1);
}

/* 登录按钮霓虹 glowline */
.sw-login-panel .sw-btn--primary {
    box-shadow: 0 0 0 rgba(227, 6, 19, 0);
    transition: box-shadow .3s ease;
}

.sw-login-panel .sw-btn--primary:hover {
    box-shadow: 0 0 16px rgba(227, 6, 19, .5);
}

/* 聚光扫过（P5R）— hero 标题区 */
@keyframes sw-spotlight {
    0%, 80%, 100% { opacity: 0; }
    88%           { opacity: 1; }
}

body.js-anim-ready .sw-hero-kicker {
    position: relative;
}

body.js-anim-ready .sw-hero-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(227, 6, 19, .8);
    animation: sw-spotlight 6s ease-in-out infinite;
}

/* 尊重系统减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .sw-body.js-anim-ready,
    .sw-reveal,
    .sw-reveal.sw-revealed,
    .sw-btn::after,
    .sw-list-row .sw-row-arrow,
    .sw-card,
    /* 游戏化动效全部关闭 */
    .sw-hero-title, .sw-section-title, h1, .sw-hero-num, .sw-section-no,
    .sw-deco-burst, .sw-match-card, .sw-list-row, .sw-login-panel,
    .sw-contact-block, .sw-feature, .sw-btn,
    .sw-deco-slash, .sw-deco-glowline, .sw-row-no, .sw-f-no,
    .sw-hero .sw-col-8::after,
    .sw-hero-kicker::after, .sw-card::before,
    .sw-match-card::after, .sw-login-panel .sw-btn--primary {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .sw-loading {
        animation-duration: 1.6s;
    }
}
