/* ============================================================
   AIVIPG超级外链在线工具 - 深色金色主题
   配色参考：深色商务背景 + 金色文字/按钮 + 科技感光效
   ============================================================ */
:root {
    --bg-deep: #0A0A0E;
    --bg-card: #15151B;
    --bg-card2: #1C1C24;
    --bg-input: #0E0E13;
    --gold: #D4AF37;
    --gold-light: #F5D06F;
    --gold-pale: #F9DF8F;
    --gold-dark: #B8860B;
    --gold-grad: linear-gradient(135deg, #F9DF8F 0%, #E3B93D 45%, #C9A227 100%);
    --text-main: #E8E6E0;
    --text-sub: #9A978F;
    --border-gold: rgba(212, 175, 55, 0.32);
    --shadow-gold: rgba(212, 175, 55, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(1000px 520px at 90% 8%, rgba(212, 175, 55, 0.06), transparent 55%),
        radial-gradient(900px 500px at 50% 110%, rgba(184, 134, 11, 0.05), transparent 60%),
        linear-gradient(180deg, #0B0B10 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-main);
}

/* ============ 动态科技光芒背景层 ============ */
.tech-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
/* 顶部照耀光线：扇形光柱缓慢左右摇摆，模拟光芒照耀 */
.tech-light-beam {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 1400px;
    height: 1100px;
    transform: translateX(-50%);
    transform-origin: top center;
    background: linear-gradient(to bottom,
        rgba(250, 214, 120, 0.26) 0%,
        rgba(212, 175, 55, 0.14) 35%,
        rgba(212, 175, 55, 0.05) 60%,
        transparent 78%);
    filter: blur(14px);
    clip-path: polygon(38% 0%, 62% 0%, 78% 100%, 22% 100%);
    animation: lightSway 14s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes lightSway {
    0%, 100% { transform: translateX(-50%) rotate(-7deg); opacity: 0.75; }
    25%      { opacity: 1; }
    50%      { transform: translateX(-50%) rotate(7deg); opacity: 0.85; }
    75%      { opacity: 1; }
}
/* 旋转光束：以页面中心为轴缓慢旋转的金色射线 */
.tech-beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220%;
    height: 220%;
    transform-origin: center;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(212, 175, 55, 0.10) 6deg, transparent 14deg,
        transparent 82deg, rgba(212, 175, 55, 0.08) 90deg, transparent 98deg,
        transparent 168deg, rgba(245, 208, 111, 0.09) 176deg, transparent 184deg,
        transparent 250deg, rgba(212, 175, 55, 0.08) 258deg, transparent 266deg,
        transparent 330deg, rgba(245, 208, 111, 0.08) 338deg, transparent 346deg);
    animation: beamSpin 110s linear infinite;
    will-change: transform;
}
.tech-beam-2 {
    animation-duration: 170s;
    animation-direction: reverse;
    opacity: 0.55;
}
@keyframes beamSpin {
    to { transform: rotate(360deg); }
}
/* 呼吸光晕：角落/边缘金色光斑缓慢脉动 */
.tech-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    animation: glowPulse 7s ease-in-out infinite;
    will-change: transform, opacity;
}
.tech-glow-1 {
    width: 520px; height: 520px;
    left: -140px; top: -160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.24) 0%, transparent 66%);
}
.tech-glow-2 {
    width: 480px; height: 480px;
    right: -140px; top: 18%;
    background: radial-gradient(circle, rgba(245, 208, 111, 0.19) 0%, transparent 66%);
    animation-delay: -2.4s;
}
.tech-glow-3 {
    width: 640px; height: 640px;
    left: 28%; bottom: -300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 66%);
    animation-delay: -4.6s;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    .tech-bg * { animation: none !important; }
}

.btseo-page-container {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.btseo-hero-section { text-align: center; padding: 10px 20px; }

.btseo-hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 45%, var(--gold-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    text-shadow: 0 0 32px rgba(212, 175, 55, 0.35);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.btseo-hero-subtitle {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.btseo-domain-box {
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.92) 0%, rgba(20, 20, 26, 0.96) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 46px rgba(212, 175, 55, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

.btseo-domain-box .btseo-input-row { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btseo-domain-box .btseo-btn-row { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.btseo-domain-box .btseo-prefix {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.btseo-input-wrapper { flex: 1; min-width: 250px; max-width: 450px; position: relative; }

.btseo-domain-box input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-input);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.btseo-domain-box input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 0 22px rgba(212, 175, 55, 0.25);
    background: #101016;
}

.btseo-domain-box input[type="text"]::placeholder { color: #6E6A60; font-weight: 400; }

.btseo-history-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    background: var(--bg-card2);
    border: 1px solid var(--border-gold);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    z-index: 100;
    max-height: 150px;
    overflow-y: auto;
}

.btseo-history-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.btseo-history-item:last-child { border-bottom: none; }
.btseo-history-item:hover { background: rgba(212, 175, 55, 0.10); color: var(--gold-light); }

/* ============ 按钮：深色版金色样式，悬停变色 ============ */
.btseo-domain-box .btseo-btn {
    height: 46px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 700;
    color: #1A1205;
    background: var(--gold-grad);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}
/* 鼠标移到按钮变色：金色变亮，光晕增强，轻微上浮 */
.btseo-domain-box .btseo-btn:hover {
    background: linear-gradient(135deg, #FFEFB0 0%, #F5D06F 45%, #D4AF37 100%);
    color: #14100A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 208, 111, 0.55), 0 0 22px rgba(245, 208, 111, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    filter: brightness(1.08);
}
.btseo-domain-box .btseo-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #E3B93D 0%, #C9A227 100%);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

/* 次按钮：金色描边透明底，悬停变金色实心 */
.btseo-domain-box .btseo-btn.btseo-btn-secondary {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0 20px;
}
.btseo-domain-box .btseo-btn.btseo-btn-secondary:hover {
    background: var(--gold-grad);
    color: #1A1205;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 208, 111, 0.5), 0 0 18px rgba(245, 208, 111, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: transparent;
}
.btseo-domain-box .btseo-btn.btseo-btn-secondary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #E3B93D 0%, #C9A227 100%);
}

.btseo-tip-text { font-size: 12px; color: #77736A; margin-top: 10px; }

/* ============ 链接库加载提示/降级选择区 ============ */
.btseo-link-picker {
    margin: 0 auto 15px;
    max-width: 720px;
    text-align: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.92) 0%, rgba(20, 20, 26, 0.96) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.06);
}
.btseo-link-picker-msg {
    font-size: 13px;
    color: var(--gold-light);
    line-height: 1.7;
    margin-bottom: 12px;
}
.btseo-link-picker-row { display: flex; justify-content: center; }

/* ============ 结果区 ============ */
.btseo-result-section { margin-bottom: 15px; }

.btseo-result-card {
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.92) 0%, rgba(20, 20, 26, 0.96) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.05);
    overflow: hidden;
}

.btseo-result-header {
    background: linear-gradient(135deg, #2A2110 0%, #1D1708 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btseo-result-header h2 { font-size: 15px; font-weight: 600; color: var(--gold-light); letter-spacing: 1px; }
.btseo-result-header .btseo-page-info { font-size: 12px; color: var(--gold); font-weight: 600; }

.btseo-countdown-section { padding: 32px 20px 8px; background: rgba(14, 14, 19, 0.6); border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.btseo-countdown-bar { display: flex; justify-content: center; align-items: center; margin-bottom: 5px; gap: 12px; }
.btseo-countdown-progress-text { font-size: 13px; color: var(--gold); font-weight: 600; }
.btseo-countdown-label { font-size: 13px; color: var(--text-sub); }
.btseo-countdown-time { font-size: 14px; font-weight: 700; color: var(--gold-light); text-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }
.btseo-countdown-time .btseo-countdown-number { font-size: 18px; }

.btseo-countdown-progress { height: 4px; background: rgba(212, 175, 55, 0.15); border-radius: 2px; position: relative; }
.btseo-countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 1s linear;
    width: 100%;
    position: relative;
    will-change: width;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.btseo-progress-label {
    position: absolute;
    right: -2px;
    top: -24px;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light);
    background: rgba(20, 18, 12, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.btseo-result-content { padding: 0; background: rgba(14, 14, 19, 0.6); position: relative; min-height: 150px; }
.btseo-loading-indicator {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 19, 0.85);
    z-index: 10;
}
.btseo-loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: btseoSpin 0.8s linear infinite;
    margin-bottom: 10px;
}
@keyframes btseoSpin { to { transform: rotate(360deg); } }
.btseo-loading-text { font-size: 13px; color: var(--gold); font-weight: 500; }

/* ============ 链接列表（深色） ============ */
.linklist { list-style: none; padding: 8px 10px; height: 380px; overflow: hidden; background: transparent; }
.linklist li {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 3px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
}
.linklist li:hover { border-color: rgba(212, 175, 55, 0.35); background: #1A1A22; }
.linklist li .num {
    min-width: 24px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-dark));
    color: #1A1205;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
    padding: 0 6px;
}
.linklist li a {
    flex: 1;
    min-width: 0;
    color: #CFCCC3;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    transition: color 0.2s;
}
.linklist li a:hover { color: var(--gold-light); text-decoration: underline; }
.linklist li .status { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; flex-shrink: 0; }
.status-wait { color: #F5A623; background: rgba(245, 166, 35, 0.12); }
.status-success { color: #34D399; background: rgba(52, 211, 153, 0.12); }
.status-error { color: #F87171; background: rgba(248, 113, 113, 0.12); }

/* ============ 完成区 ============ */
.btseo-complete-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.92) 0%, rgba(20, 20, 26, 0.96) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.06);
    margin-bottom: 15px;
}
.btseo-complete-section .btseo-complete-icon {
    width: 60px; height: 60px;
    margin: 0 auto 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='3'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
.btseo-complete-section h2 { font-size: 20px; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; letter-spacing: 1px; }
.btseo-complete-section p { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; }

.btseo-complete-section .btseo-btn {
    height: 44px;
    padding: 0 35px;
    font-size: 15px;
    font-weight: 700;
    color: #1A1205;
    background: var(--gold-grad);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}
.btseo-complete-section .btseo-btn:hover {
    background: linear-gradient(135deg, #FFEFB0 0%, #F5D06F 45%, #D4AF37 100%);
    color: #14100A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 208, 111, 0.55), 0 0 22px rgba(245, 208, 111, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    filter: brightness(1.08);
}
.btseo-complete-section .btseo-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #E3B93D 0%, #C9A227 100%);
}

/* ============ 内容区 ============ */
.btseo-seo-content { flex: 1; }
.btseo-seo-content .btseo-cbox {
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.92) 0%, rgba(20, 20, 26, 0.96) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    overflow: hidden;
}
.btseo-seo-content .btseo-cbox .btseo-head {
    height: 36px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(135deg, #201A0D 0%, #16130A 100%);
    overflow: hidden;
    line-height: 36px;
    padding: 0 15px;
}
.btseo-seo-content .btseo-cbox .btseo-head h2 {
    float: left;
    display: inline;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--gold);
}
.btseo-seo-content .btseo-cbox .btseo-con { overflow: hidden; line-height: 180%; padding: 12px 15px; color: #CFCCC3; font-size: 13px; }
.btseo-seo-content .btseo-box-border {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    margin-top: 6px;
    background: rgba(14, 14, 19, 0.5);
    border-radius: 6px;
}
.btseo-seo-content .btseo-accueil-box-2 { background: transparent; }
.btseo-seo-content .btseo-accueil-box-2 h2, .btseo-seo-content .btseo-accueil-box-2 h3 { color: var(--gold-light); }
.btseo-seo-content ul { list-style: none; padding-left: 5px; }
.btseo-seo-content ul li { margin-bottom: 6px; padding-left: 5px; }
.btseo-seo-content p { margin-bottom: 8px; line-height: 1.8; }

.btseo-footer { text-align: center; padding: 12px 0; font-size: 11px; color: #6E6A60; margin-top: 15px; }
.btseo-footer .btseo-footer-domain {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ============ 响应式 ============ */
@media screen and (max-width: 768px) {
    .btseo-page-container { max-width: 100%; padding: 10px; }
    .btseo-hero-section { padding: 10px; }
    .btseo-hero-title { font-size: 24px; }
    .btseo-domain-box { padding: 18px 15px; display: flex; flex-direction: column; gap: 15px; }
    .btseo-domain-box .btseo-input-row { width: 100%; }
    .btseo-input-wrapper { min-width: 0; flex: 1; max-width: none; }
    .btseo-domain-box input[type="text"] { font-size: 15px; padding: 0 12px; }
    .btseo-domain-box .btseo-btn-row { width: 100%; display: flex; gap: 12px; }
    .btseo-domain-box .btseo-btn { padding: 0 15px; font-size: 14px; flex: 1; min-width: 45%; }
    .btseo-workframe { height: 320px; }
    .linklist { height: 320px; }
}
@media screen and (max-width: 480px) {
    .btseo-hero-title { font-size: 20px; }
    .btseo-domain-box { padding: 15px 12px; gap: 12px; }
    .btseo-domain-box input[type="text"] { height: 42px; font-size: 14px; }
    .btseo-domain-box .btseo-btn { height: 42px; font-size: 13px; padding: 0 12px; flex: 1; min-width: 45%; }
    .btseo-workframe { height: 450px; }
    .linklist { height: 450px; }
}
