/* ArkTricon - 自定义样式 */

/* 品牌标题字体：粗块、棱角分明（与 logo 图一致） */
.font-arktricon {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}
/* 导航栏品牌文字：水平方向略放大（字距加宽） */
.font-arktricon-nav {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.08em;
}

/* 背景水印：半透明 ARKTRICON 融入 UI，不阻挡点击 */
.arktricon-watermark {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(6rem, 18vw, 14rem);
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* 背景三角框：沿红线轨迹的半透明蓝线，不阻挡工作台 */
.arktricon-triangle-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 背景不规则直线图形：半透明蓝色线段与六边形 */
.bg-lines-pattern {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 第二模块容器：灰白半透明，与第一模块不连接；隐藏时不占位、出现时动效 */
.workbench-second-module {
    transition: max-height 0.5s ease-out, opacity 0.45s ease-out, margin-top 0.4s ease-out, transform 0.45s ease-out;
    position: relative;
    z-index: 0;
}
.second-module-hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-12px);
}
.second-module-visible {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* 工作台下区：在第二模块内，内容高度展开 */
.workbench-body {
    display: grid;
    transition: grid-template-rows 0.5s ease-out, opacity 0.35s ease-out;
}
.workbench-body-hidden {
    grid-template-rows: 0fr;
    opacity: 0;
}
.workbench-body-visible {
    grid-template-rows: 1fr;
    opacity: 1;
}
.workbench-body-inner {
    min-height: 0;
    overflow: hidden;
}

/* 第一模块（API 配置）：始终置于第二模块之上，并带蓝黑发光底色 */
.workbench-first-module {
    position: relative;
    z-index: 10;
    border-color: rgba(55, 65, 81, 0.9);
    background: radial-gradient(circle at top, rgba(31, 41, 55, 0.95), rgba(0, 0, 0, 0.98));
    box-shadow: 0 18px 35px -15px rgba(15, 23, 42, 0.9);
}

/* 语言切换按钮：单选或多选勾选时明显偏蓝高亮 */
.workbench-body input[type="radio"][name="lang"]:checked + div,
.workbench-body input.lang-option:checked + div {
    background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.85),
        0 12px 24px -10px rgba(30, 64, 175, 0.95),
        0 0 18px rgba(59, 130, 246, 0.8);
    color: #f9fafb;
}

/* 输入 API Key 后的高亮状态：整体偏蓝、对比度更高 */
.workbench-form.has-api-key .workbench-second-module {
    border-color: rgba(59, 130, 246, 0.7);
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.22), rgba(0, 0, 0, 0.9));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}
.workbench-form.has-api-key #workbench-actions.actions-ready .btn-scan-submit {
    background: #1d4ed8;
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.55), 0 8px 10px -6px rgba(30, 64, 175, 0.8);
}
.workbench-form.has-api-key .index-side-glow-fill {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.7) 0%, rgba(59, 130, 246, 0.35) 100%);
    box-shadow: 0 0 32px rgba(59, 130, 246, 0.7);
}

 

/* 首页两侧蓝色光带：由上到下随交互填充 */
.index-side-glow {
    overflow: hidden;
}
.index-side-glow-fill {
    width: 100%;
    min-height: 0;
    height: calc(var(--glow-pct, 0) * 1%);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 100%);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
    transition: height 0.6s ease-out;
}

/* 工作台操作按钮：未满足条件时灰色，满足后开始扫描=蓝、清空代码=红 */
.btn-scan-submit {
    color: #9ca3af;
    background: #374151;
    border: 1px solid #4b5563;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-scan-submit:disabled {
    opacity: 1;
}
#workbench-actions.actions-ready .btn-scan-submit {
    color: #fff;
    background: #3b82f6;
    border-color: transparent;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
}
#workbench-actions.actions-ready .btn-scan-submit:hover {
    background: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4), 0 4px 6px -2px rgba(59, 130, 246, 0.3);
}
.btn-scan-clear {
    color: #6b7280;
    background: transparent;
    border: 1px solid #4b5563;
    cursor: not-allowed;
}
#workbench-actions.actions-ready .btn-scan-clear {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    cursor: pointer;
}
#workbench-actions.actions-ready .btn-scan-clear:hover {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(248, 113, 113, 0.1);
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #404040; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #505050; }

/* 标题呼吸光效 */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.85; filter: brightness(1.2); }
}
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Hero 副标题：默认黑色泛光与背景融合，悬停 ArkTricon 或本句时从左到右变白 */
.hero-subtitle-wrap {
    position: relative;
    display: inline-block;
}
.hero-subtitle-default {
    color: #0d0d0d;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.9), 0 0 48px rgba(0, 0, 0, 0.6);
    display: inline-block;
}
.hero-subtitle-reveal {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.45s ease-out;
    pointer-events: none;
}
.hero-hover:hover .hero-subtitle-reveal {
    width: 100%;
}
.hero-subtitle-reveal-inner {
    color: #a3a3a3;
    display: inline-block;
    padding: 0;
}

/* 导航栏副标题：同上，默认黑色泛光，悬停品牌区时从左到右变白，不改 ArkTricon */
.nav-tagline-wrap {
    position: relative;
    display: inline-block;
}
.nav-tagline-default {
    color: #0d0d0d;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
    display: inline-block;
}
.nav-tagline-reveal {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.45s ease-out;
    pointer-events: none;
}
a:hover .nav-tagline-reveal,
a:focus .nav-tagline-reveal {
    width: 100%;
}
.nav-tagline-reveal-inner {
    color: #a3a3a3;
    display: inline-block;
    padding: 0;
}

/* 报告内容样式 */
.report-content h1, .report-content h2, .report-content h3 {
    color: #e2e8f0;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}
.report-content h2 { font-size: 1.1em; }
.report-content h3 { font-size: 1em; }
.report-content p { margin-bottom: 0.5em; line-height: 1.6; }
.report-content ul, .report-content ol {
    margin-left: 1.5em;
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}
.report-content ul { list-style-type: disc; }
.report-content ol { list-style-type: decimal; }
.report-content li {
    margin-bottom: 0.25em;
    display: list-item;
    line-height: 1.6;
}
.report-content code {
    background: #252526;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    color: #00f0ff;
}
.report-content pre {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1em;
    overflow-x: auto;
    margin: 0.5em 0;
}
.report-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}
.report-content strong { color: #f8fafc; }
.report-content a { color: #00f0ff; text-decoration: underline; }

/* 表格 */
table { border-collapse: collapse; }

/* 选择框样式修正 */
select option { background: #252526; color: #e2e8f0; }

/* 自定义下拉：与画面协调的深色列表 */
.custom-select-wrap { position: relative; }
.custom-select-native {
    position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; overflow: hidden;
}
.custom-select-trigger:focus { border-color: #6b7280; }
.custom-select-list {
    scrollbar-width: thin;
    scrollbar-color: #404040 #252526;
}
.custom-select-list::-webkit-scrollbar { width: 6px; }
.custom-select-list::-webkit-scrollbar-track { background: #252526; }
.custom-select-list::-webkit-scrollbar-thumb { background: #404040; border-radius: 3px; }
.custom-select-option.checked,
.custom-select-option[aria-selected="true"] {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
.custom-select-arrow { transition: transform 0.2s ease; }

/* 工作台表单：第二模块下拉选中态（白底）；第一模块单独覆盖为深色 */
.workbench-form .custom-select-option.checked,
.workbench-form .custom-select-option[aria-selected="true"] {
    background: #f3f4f6;
    color: #1f2937;
}
.workbench-first-module .custom-select-option.checked,
.workbench-first-module .custom-select-option[aria-selected="true"] {
    background: rgba(75, 85, 99, 0.9);
    color: #e5e7eb;
}
.workbench-form .code-drop-zone.border-blue-500 {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.3);
}
/* 第二模块（深色）内代码框拖拽高亮 */
#second-module-wrap .code-drop-zone.border-blue-500 {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
