/* =========================
   Stage 50: Fresh Tech Visual Skin
   清新酷炫视觉增强层
   ========================= */

:root {
    --hys-bg: #f6fbff;
    --hys-bg-soft: #eef7ff;
    --hys-ink: #07152f;
    --hys-muted: #607089;
    --hys-primary: #0b5cff;
    --hys-primary-dark: #061a4d;
    --hys-cyan: #18d5ff;
    --hys-mint: #40f0c8;
    --hys-card: rgba(255, 255, 255, 0.82);
    --hys-border: rgba(125, 162, 210, 0.26);
    --hys-shadow: 0 22px 60px rgba(7, 21, 47, 0.12);
    --hys-shadow-soft: 0 12px 30px rgba(7, 21, 47, 0.08);
}

/* 全站背景：清新蓝白 + 科技光斑 */
body {
    color: var(--hys-ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(24, 213, 255, 0.20), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(64, 240, 200, 0.18), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(11, 92, 255, 0.10), transparent 34%),
        linear-gradient(180deg, #f8fcff 0%, #eef7ff 52%, #f9fbff 100%);
}

/* 顶部：深色科技渐变 */
.site-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(24, 213, 255, 0.35), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(64, 240, 200, 0.20), transparent 26%),
        linear-gradient(135deg, #061431 0%, #082761 48%, #07142d 100%);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    pointer-events: none;
}

.site-header .container {
    position: relative;
    z-index: 1;
}

/* 顶部导航玻璃感 */
.topbar {
    margin-top: 8px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
}

.brand {
    letter-spacing: 0.04em;
    text-shadow: 0 0 24px rgba(24, 213, 255, 0.36);
}

.brand::before {
    content: "✦";
    margin-right: 8px;
    color: var(--hys-cyan);
}

.main-nav a,
.nav-logout-btn {
    color: rgba(236, 248, 255, 0.92);
    transition: all 0.2s ease;
}

.main-nav a:hover,
.nav-logout-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    text-shadow: 0 0 16px rgba(24, 213, 255, 0.7);
}

/* Hero 区 */
.page-hero {
    position: relative;
    padding: 42px 0 48px;
}

.page-hero h1 {
    max-width: 880px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #ffffff 0%, #bff5ff 45%, #d6fff3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero p {
    max-width: 760px;
    color: rgba(235, 247, 255, 0.86);
}

/* 首页 banner */
.banner-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 30px;
    align-items: center;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-links a {
    padding: 13px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    transition: all 0.2s ease;
}

.hero-links a:first-child {
    background: linear-gradient(135deg, var(--hys-primary), var(--hys-cyan));
    border-color: transparent;
}

.hero-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(24, 213, 255, 0.22);
}

.banner-stats {
    display: grid;
    gap: 14px;
}

.banner-card {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.banner-card-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 6px;
}

.banner-card-text {
    color: rgba(235, 247, 255, 0.82);
    line-height: 1.7;
}

/* 内容区卡片统一玻璃感 */
.card,
.summary-box,
.content-card,
.order-item-card,
.timeline-content,
.notice-box {
    border: 1px solid var(--hys-border);
    background: var(--hys-card);
    backdrop-filter: blur(14px);
    box-shadow: var(--hys-shadow-soft);
}

.card,
.summary-box,
.content-card {
    position: relative;
}

.card::before,
.summary-box::before,
.content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), transparent 36%);
    pointer-events: none;
}

.card:hover,
.content-card:hover,
.summary-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--hys-shadow);
}

/* 商品卡片 */
.card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    border-color: rgba(24, 213, 255, 0.36);
}

.card-image,
.detail-main-image {
    background:
        radial-gradient(circle at 20% 15%, rgba(24, 213, 255, 0.16), transparent 35%),
        linear-gradient(135deg, #eaf6ff, #f7fbff);
}

.badge {
    color: #075985;
    background: linear-gradient(135deg, rgba(24, 213, 255, 0.16), rgba(64, 240, 200, 0.14));
    border: 1px solid rgba(24, 213, 255, 0.22);
}

.price {
    color: var(--hys-primary-dark);
    letter-spacing: -0.03em;
}

/* 按钮：科技蓝渐变 */
.link-btn,
.primary-action-btn,
.checkout-form button,
.toolbar-form button {
    border: none;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b5cff 0%, #18d5ff 100%);
    box-shadow: 0 14px 30px rgba(11, 92, 255, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.link-btn:hover,
.primary-action-btn:hover,
.checkout-form button:hover,
.toolbar-form button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(11, 92, 255, 0.28);
    filter: saturate(1.08);
}

.secondary-link-btn {
    background: rgba(255, 255, 255, 0.76);
    color: var(--hys-primary-dark);
    border: 1px solid rgba(11, 92, 255, 0.16);
    box-shadow: 0 10px 22px rgba(7, 21, 47, 0.08);
}

.secondary-link-btn:hover {
    color: var(--hys-primary-dark);
    background: #ffffff;
}

/* 表单输入框 */
input,
textarea,
select,
.buy-box input,
.checkout-form input,
.checkout-form textarea,
.toolbar-form input,
.toolbar-form select {
    border-color: rgba(93, 132, 183, 0.28);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus,
.buy-box input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.toolbar-form input:focus,
.toolbar-form select:focus {
    outline: none;
    border-color: rgba(24, 213, 255, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(24, 213, 255, 0.14);
}

/* 购物车与订单 */
.cart-row {
    border: 1px solid var(--hys-border);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    box-shadow: var(--hys-shadow-soft);
}

.status-pill {
    background: linear-gradient(135deg, rgba(11, 92, 255, 0.12), rgba(24, 213, 255, 0.16));
    color: #073b87;
    border: 1px solid rgba(11, 92, 255, 0.14);
}

.status-pill-light {
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
}

/* 授权码卡片 */
.license-code-box {
    border-color: rgba(24, 213, 255, 0.26);
    background:
        radial-gradient(circle at 0% 0%, rgba(24, 213, 255, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(7, 21, 47, 0.08);
}

.license-code-title {
    color: #075985;
}

.license-code-box pre {
    color: #0b1b36;
}

/* 时间线 */
.timeline-dot {
    box-shadow: 0 0 0 6px rgba(24, 213, 255, 0.13), 0 0 18px rgba(24, 213, 255, 0.52);
}

/* 消息提示 */
.message {
    border: 1px solid rgba(93, 132, 183, 0.22);
    box-shadow: var(--hys-shadow-soft);
}

/* 页脚 */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(24, 213, 255, 0.20), transparent 30%),
        linear-gradient(135deg, #061431 0%, #071c44 100%);
}

.site-footer h3 {
    color: #ffffff;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(235, 247, 255, 0.76);
}

.footer-links a:hover {
    color: #ffffff;
}

/* 小动效 */
@keyframes hysFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.banner-card:nth-child(1) {
    animation: hysFloat 6s ease-in-out infinite;
}

.banner-card:nth-child(2) {
    animation: hysFloat 7s ease-in-out infinite;
}

.banner-card:nth-child(3) {
    animation: hysFloat 8s ease-in-out infinite;
}

/* 移动端 */
@media (max-width: 900px) {
    .banner-hero {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
    }

    .page-hero {
        padding: 30px 0 34px;
    }
}

@media (max-width: 640px) {
    .topbar {
        border-radius: 20px;
        padding: 14px;
    }

    .brand {
        font-size: 21px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .hero-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-links a {
        text-align: center;
    }

    .banner-card {
        padding: 16px;
    }

    .card,
    .summary-box,
    .content-card {
        border-radius: 20px;
    }

    .link-btn,
    .secondary-link-btn,
    .primary-action-btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================
   Stage 50 Tune 1: Fresher palette + logout button fix
   ========================= */

:root {
    --hys-bg: #f8fdff;
    --hys-bg-soft: #eefbff;
    --hys-ink: #07152f;
    --hys-muted: #5f7189;

    --hys-primary: #3b82f6;
    --hys-primary-dark: #123c7c;
    --hys-sky: #38bdf8;
    --hys-mint: #5eead4;
    --hys-lime: #d9f99d;
    --hys-violet: #c4b5fd;

    --hys-card: rgba(255, 255, 255, 0.78);
    --hys-border: rgba(120, 170, 210, 0.24);
}

/* 背景从深蓝青改成更轻盈的晴空光感 */
body {
    background:
        radial-gradient(circle at 8% 8%, rgba(94, 234, 212, 0.24), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(196, 181, 253, 0.20), transparent 28%),
        radial-gradient(circle at 55% 98%, rgba(56, 189, 248, 0.14), transparent 36%),
        linear-gradient(180deg, #fbfeff 0%, #effbff 48%, #f8fbff 100%);
}

/* 顶部改成清新科技渐变，不再那么沉 */
.site-header {
    background:
        radial-gradient(circle at 12% 0%, rgba(94, 234, 212, 0.34), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(196, 181, 253, 0.28), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.20), transparent 34%),
        linear-gradient(135deg, #0b3b63 0%, #123c7c 42%, #10284d 100%);
}

.site-header::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.060) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.060) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* 顶部导航条更通透 */
.topbar {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow:
        0 18px 46px rgba(7, 21, 47, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 品牌色点改成更清新的薄荷星光 */
.brand::before {
    color: #5eead4;
    text-shadow:
        0 0 12px rgba(94, 234, 212, 0.85),
        0 0 28px rgba(56, 189, 248, 0.50);
}

.brand {
    color: #f5fdff;
    text-shadow:
        0 0 16px rgba(94, 234, 212, 0.26),
        0 0 28px rgba(56, 189, 248, 0.20);
}

/* 导航文字提亮，避免糊 */
.main-nav a {
    color: rgba(245, 253, 255, 0.94);
    font-weight: 700;
}

.main-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* 修复退出登录按钮发白、发糊、看不清 */
.nav-logout-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.nav-logout-btn {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));

    color: #f8feff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;

    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(7, 21, 47, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    text-shadow: none;
    backdrop-filter: blur(12px);
}

.nav-logout-btn:hover {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.28), rgba(56, 189, 248, 0.20));
    border-color: rgba(94, 234, 212, 0.42);
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px rgba(56, 189, 248, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* 主按钮改成更清新的天空蓝 + 薄荷绿 */
.link-btn,
.primary-action-btn,
.checkout-form button,
.toolbar-form button {
    background: linear-gradient(135deg, #38bdf8 0%, #5eead4 100%);
    color: #05304a;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.22);
}

.link-btn:hover,
.primary-action-btn:hover,
.checkout-form button:hover,
.toolbar-form button:hover {
    color: #05263a;
    box-shadow: 0 20px 42px rgba(94, 234, 212, 0.26);
}

/* 首页右侧卡片更轻，不那么压抑 */
.banner-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.20);
}

.banner-card-title {
    color: #f8feff;
}

.banner-card-text {
    color: rgba(238, 250, 255, 0.82);
}

/* 商品卡片点缀色改轻 */
.badge {
    color: #075985;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(196, 181, 253, 0.16));
    border-color: rgba(56, 189, 248, 0.24);
}

/* 移动端退出登录按钮不要挤压 */
@media (max-width: 640px) {
    .nav-logout-form {
        width: auto;
    }

    .nav-logout-btn {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 14px;
    }
}


.beian-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.beian-link:hover {
    color: #ffffff;
}

.beian-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}


.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.beian-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.beian-icon {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 16px;
}

.footer-beian .beian-link img.beian-icon,
.site-footer img.beian-icon,
img.beian-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 16px !important;
}

.footer-beian .beian-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
}

/* =========================
   Public software download page
   ========================= */

.download-public-card {
    border: 1px solid var(--hys-border);
    background:
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.20), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(94, 234, 212, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: var(--hys-shadow-soft);
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 28px;
}

.download-public-main h2 {
    margin: 14px 0 12px;
    font-size: 34px;
    color: var(--hys-primary-dark);
}

.download-lead {
    max-width: 900px;
    line-height: 1.9;
    color: #40516a;
    font-size: 16px;
}

.download-badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-soft {
    background: rgba(255, 255, 255, 0.72);
    color: #123c7c;
    border: 1px solid rgba(120, 170, 210, 0.28);
}

.download-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.download-info-grid div {
    border: 1px solid rgba(120, 170, 210, 0.24);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 14px 16px;
}

.download-info-grid strong {
    display: block;
    color: #123c7c;
    margin-bottom: 6px;
}

.download-info-grid span {
    color: #334155;
    word-break: break-all;
}

.download-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hys-primary), var(--hys-sky));
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.26);
}

.download-main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.32);
}

.download-small-note {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
}

.download-section-box {
    margin-top: 22px;
}

.download-code,
.download-sha256 {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(120, 170, 210, 0.28);
    color: #0f172a;
}

@media (max-width: 900px) {
    .download-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .download-public-card {
        padding: 24px 20px;
    }

    .download-info-grid {
        grid-template-columns: 1fr;
    }

    .download-public-main h2 {
        font-size: 28px;
    }

    .download-main-button {
        width: 100%;
    }
}

/* =========================
   Fix: public download button visible
   ========================= */

.download-button-wrap {
    margin: 26px 0 14px;
}

.download-main-button-fix {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 260px !important;
    min-height: 56px !important;
    padding: 0 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28) !important;
    border: none !important;
}

.download-main-button-fix:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.36) !important;
}

@media (max-width: 640px) {
    .download-main-button-fix {
        width: 100% !important;
        min-width: 0 !important;
    }
}
