:root {
    --brand-blue: #66b2ff;
    --brand-cyan: #4ee2ff;
    --accent-glow: #38bdf8;
    --bg-deep: #020a1a;
    --bg-mid: #071430;
    --text: #e4efff;
    --text-muted: #94b4d8;
    --glass: rgba(12, 32, 72, 0.55);
    --glass-border: rgba(100, 180, 255, 0.18);
}

/* ============================================================
   页面基础
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse 120% 80% at 8% 92%, rgba(20, 80, 180, 0.16), transparent 55%),
        radial-gradient(ellipse 100% 70% at 80% 15%, rgba(0, 180, 220, 0.07), transparent 50%),
        linear-gradient(175deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0a1e48 75%, #051028 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* beamCanvas 由 JS 动态创建并内联设置样式 */

/* ============================================================
   内容容器 — 玻璃拟态
   ============================================================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 24px auto;
    padding: 28px 28px 36px;
    box-sizing: border-box;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ============================================================
   返回按钮
   ============================================================ */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #e4efff;
    text-decoration: none;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(96, 165, 250, 0.10));
    cursor: pointer;
    transition: all 220ms ease;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(96, 165, 250, 0.18));
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
    transform: translateY(-1px);
}

/* ============================================================
   标题栏 (软件工具：xxx)
   ============================================================ */
.sp-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    border: none;
}

.sp-title-row td {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(10, 30, 72, 0.75), rgba(7, 20, 48, 0.80));
    border-bottom: 1px solid var(--glass-border);
}

.sp-title-label {
    font-size: 22pt;
    font-weight: 800;
    color: #c4daf5;
    letter-spacing: 0.06em;
}

.sp-title-name {
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #e0ecff 0%, #60a5fa 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.25));
}

/* ============================================================
   区域标题栏 (下载地址 / 软件介绍)
   ============================================================ */
.sp-section-row td {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(10, 30, 72, 0.65), rgba(7, 20, 48, 0.70));
    border-bottom: 1px solid var(--glass-border);
}

.sp-section-label {
    font-size: 16pt;
    font-weight: 700;
    color: #c4daf5;
    letter-spacing: 0.04em;
    position: relative;
    padding-left: 16px !important;
}

.sp-section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 55%;
    min-height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-cyan), var(--brand-blue));
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

/* ============================================================
   信息表格 (应用平台、编程语言等)
   ============================================================ */
.sp-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.sp-info-table td {
    padding: 7px 4px;
    font-size: 14px;
    color: #b8d0ec;
    line-height: 1.6;
}

.sp-info-table img {
    border-radius: 12px;
    border: 1px solid rgba(100, 170, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   下载表格
   ============================================================ */
.sp-download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.sp-download-table td {
    padding: 7px 4px;
    font-size: 14px;
    color: #b8d0ec;
    line-height: 1.6;
}

/* ============================================================
   介绍区域图片和文字
   ============================================================ */
.sp-intro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.sp-intro-table td {
    padding: 4px;
    vertical-align: top;
}

.sp-intro-table img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(100, 170, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.description {
    text-indent: 2em;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #c0d6ef;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description ul,
.description li {
    color: #c0d6ef;
}

/* ============================================================
   链接
   ============================================================ */
a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover {
    color: var(--brand-cyan);
    text-decoration: underline;
}

/* ASP.NET LinkButton 渲染为 <a> */
.sp-download-table a {
    color: var(--accent-glow);
    font-weight: 600;
}

.sp-download-table a:hover {
    color: #7dd3fc;
}

/* ============================================================
   GIF / 演示图片（SWpointPro 等页面）
   ============================================================ */
.sp-demo-img {
    display: block;
    max-width: 520px;
    margin: 8px auto;
    border-radius: 12px;
    border: 1px solid rgba(100, 170, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sp-demo-text {
    font-size: 14px;
    color: #b8d0ec;
    line-height: 1.7;
    padding: 4px 8px;
}

/* ============================================================
   模态框（图片放大）
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #e4efff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 200ms ease;
}

.close:hover {
    opacity: 1;
}

.clickable-img {
    cursor: pointer;
    transition: opacity 200ms ease;
}

.clickable-img:hover {
    opacity: 0.85;
}

/* ============================================================
   间距工具
   ============================================================ */
.sp-spacer {
    height: 16px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .container {
        margin: 12px;
        padding: 18px 14px 24px;
        border-radius: 16px;
    }

    .sp-title-label,
    .sp-title-name {
        font-size: 16pt;
    }

    .sp-section-label {
        font-size: 13pt;
    }

    .sp-intro-table colgroup col:nth-child(2) {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .sp-title-label,
    .sp-title-name {
        font-size: 13pt;
    }

    .sp-section-label {
        font-size: 12pt;
    }

    .container {
        margin: 8px;
        padding: 14px 10px 20px;
    }
}
