/* =========================================
   DEEPSPACE INTERFACE 2.0 (ENHANCED)
   ========================================= */

:root {
    --accent: #cc0000;
    --accent-rgb: 204, 0, 0;
    --text-gold: #c9a063;
    --panel-bg: rgba(13, 17, 23, 0.9);
    --bg-dark: #050505;
    --border-color: rgba(201, 160, 99, 0.3);
    --glow: rgba(204, 0, 0, 0.4);
}

.xavier-theme {
    --accent: #e0e6ed;
    --accent-rgb: 224, 230, 237;
    --text-gold: #ffffff;
    --panel-bg: rgba(10, 12, 16, 0.95);
    --border-color: rgba(224, 230, 237, 0.2);
    --glow: rgba(255, 255, 255, 0.6);
}
.xavier-theme .hero-header::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: light-sweep 4s infinite linear;
}

@keyframes light-sweep {
    0% { transform: translateX(-100%) skewX(-45deg); }
    100% { transform: translateX(200%) skewX(-45deg); }
}

.xavier-theme .skill-card:hover {
    box-shadow: 0 0 20px rgba(224, 230, 237, 0.3);
    border-color: var(--accent);
}

.zayne-theme {
    --accent: #94b9ff;
    --accent-rgb: 148, 185, 255;
    --text-gold: #cbdfff;
    --panel-bg: rgba(15, 20, 28, 0.9);
    --border-color: rgba(148, 185, 255, 0.3);
    --glow: rgba(148, 185, 255, 0.4);
}

.zayne-theme .wiki-table th {
    background: rgba(165, 216, 255, 0.1);
    border-bottom: 2px solid var(--accent);
}

.zayne-theme .skill-card {
    border-left: 4px solid var(--accent);
}

.rafayel-theme {
    --accent: #ff73b1;
    --accent-rgb: 255, 115, 177;
    --text-gold: #f8adff;
    --panel-bg: rgba(20, 15, 26, 0.9);
    --border-color: rgba(25, 15, 30, 0.9);
    --glow: rgba(255, 115, 177, 0.4);
}

.rafayel-theme .hero-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 115, 177, 0.1), transparent);
    animation: water-ripple 8s infinite alternate;
    pointer-events: none;
}

@keyframes water-ripple {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.5); opacity: 0.6; }
}

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

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90px, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-header {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.hero-header h1 {
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #fff;
    z-index: 2;
    text-shadow: 0 0 30px var(--glow);
    animation: title-glow 3s infinite alternate;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 0;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 1;
    pointer-events: none;
}

.status-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

@keyframes title-glow {
    from { text-shadow: 0 0 20px var(--glow); }
    to { text-shadow: 0 0 50px var(--accent), 0 0 10px white; }
}

.detail-container {
    max-width: 1400px;
    margin: -100px auto 100px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    padding: 0 40px;
}

.spec-box {
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.spec-box::after {
    content: "DATA_ARCHIVE";
    position: absolute;
    top: 10px; right: 10px;
    font-size: 8px; color: var(--accent);
    opacity: 0.5; letter-spacing: 2px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-row label {
    color: var(--text-gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.section-header {
    font-size: 32px;
    margin-bottom: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header::before {
    content: "";
    width: 40px; height: 4px;
    background: var(--accent);
}

.skill-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 25px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.skill-card:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.skill-card h4 {
    color: var(--text-gold);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.rank-circle {
    width: 45px; height: 45px;
    background: var(--accent);
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); /* 八角形 */
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #000; margin-right: 20px;
}

.back-terminal {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-terminal:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--glow);
    transform: translateX(-5px);
}

.back-terminal .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-terminal:hover .arrow {
    transform: translateX(-3px);
}

.back-terminal::after {
    content: "LOG_OUT";
    position: absolute;
    bottom: -15px;
    left: 20px;
    font-size: 9px;
    opacity: 0.5;
    color: var(--text-gold);
}

.sidebar-portrait img, .section-block img {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@media (max-width: 1100px) {
    .detail-container { grid-template-columns: 1fr; margin-top: 20px; }
}

.main-footer {
    background: #000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #2a2f3d;
    margin-top: 50px;
}

.main-footer p {
    text-align: center !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
    color: #666 !important;
}

.main-footer .disclaimer-mini {
    font-size: 12px !important;
    margin-top: 10px !important;
    color: #8a94a8 !important;
}

.main-footer .copyright {
    color: #666 !important;
    font-size: 13px !important;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #8a94a8;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
}

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