/* style.css */
:root {
    --zzz-red: #ff3300;
    --zzz-black: #121212;
    --zzz-white: #ffffff;
    --zzz-grey: #b0b0b0;
    --angle: -10deg;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
    background-color: var(--zzz-black);
    color: var(--zzz-white);
    overflow-x: hidden;
    /* 页面背景网格 */
    background-image: 
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a),
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* --- 顶部导航 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    border-bottom: 3px solid var(--zzz-red);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.brand {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    color: var(--zzz-white);
}

.domain-tag {
    background: var(--zzz-red);
    color: var(--zzz-black);
    padding: 5px 15px;
    font-weight: bold;
    transform: skewX(var(--angle));
    border: 2px solid var(--zzz-white);
}

.domain-tag span {
    display: block;
    transform: skewX(calc(var(--angle) * -1));
}

/* --- Hero 区域核心逻辑 --- */
.hero-split {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    border-bottom: 10px solid var(--zzz-white);
}

/* 定义两层共同的图片属性，确保位置完全重合 */
.layer-back, .layer-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    /* 这里替换成你的角色图片 URL */
    background-image: url('https://nekomata.serika.site/nekomata1.png');
}

/* 底层 (Back) - 现在在视觉上主要显示在右侧
   包含：图片 + 红色叠加层 + 移动的条纹 
*/
.layer-back {
    z-index: 1;
    /* 多重背景：最上面是条纹，中间是红色半透明遮罩，最下面是原图 */
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(0,0,0,0.4) 50%), /* 条纹 */
        linear-gradient(rgba(255, 51, 0, 0.0), rgba(255, 51, 0, 0.0)), /* 红色滤镜 */
        url('https://nekomata.serika.site/nekomata2.png'); /* 原图 */
    
    background-size: 20px 100%, 100% 100%, cover; /* 条纹宽度20px，滤镜铺满，原图cover */
    background-blend-mode: normal, multiply, normal; /* 混合模式让红色叠在图上 */
    
    /* 动画应用 */
    animation: stripe-scroll 1s linear infinite;
}

/* 条纹移动动画 Keyframes */
@keyframes stripe-scroll {
    0% {
        background-position: 0 0, 0 0, center;
    }
    100% {
        /* 只移动第一个背景(条纹)，移动距离等于 background-size 的宽度以实现无缝 */
        background-position: 20px 0, 0 0, center;
    }
}

/* 顶层 (Front) - 干净的原图，显示在左侧
   通过 clip-path 切掉右下角，露出底层的红色效果
*/
.layer-front {
    z-index: 2;
    /* 定义多边形：
       左上(0 0) -> 右上偏左(70% 0) -> 右下偏左(40% 100%) -> 左下(0 100%)
       这样右边就空出来了，显示出 layer-back
    */
    clip-path: polygon(0 0, 70% 0, 50% 100%, 0 100%);
    transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 为了增加层次感，给顶层稍微加一点亮度或对比度 */
    filter: contrast(1.1);
}

/* 鼠标悬停交互：改变切割角度 */
.hero-split:hover .layer-front {
    clip-path: polygon(0 0, 90% 0, 70% 100%, 0 100%);
}

/* 装饰文字 */
.hero-overlay-text {
    position: absolute;
    bottom: 50px;
    right: 50px; /* 文字放在右侧红色区域 */
    z-index: 3;
    text-align: right;
    pointer-events: none; /* 防止遮挡点击 */
}

.hero-overlay-text h2 {
    font-size: 6rem;
    color: var(--zzz-white);
    text-shadow: 4px 4px 0 var(--zzz-black);
    font-style: italic;
    line-height: 1;
    margin-bottom: 10px;
}

.hero-overlay-text p {
    background: var(--zzz-black); /* 黑色背景对比红色底 */
    color: var(--zzz-white);
    display: inline-block;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- 内容区域 --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    border-left: 10px solid var(--zzz-red);
    padding-left: 20px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-style: italic;
}

/* --- 按钮 --- */
.btn-zzz {
    background: transparent;
    color: var(--zzz-white);
    border: 2px solid var(--zzz-white);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: skewX(var(--angle));
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
}

.btn-zzz span {
    display: block;
    transform: skewX(calc(var(--angle) * -1));
}

.btn-zzz:hover {
    background: var(--zzz-red);
    border-color: var(--zzz-red);
    color: var(--zzz-black);
    box-shadow: 5px 5px 0 rgba(255,255,255,0.2);
}

.btn-zzz.primary {
    background: var(--zzz-white);
    color: var(--zzz-black);
    /* border: none; */
}
.btn-zzz.primary:hover {
    background: var(--zzz-red);
    color: var(--zzz-white);
}

/* --- 输入框 --- */
.input-group {
    margin-bottom: 20px;
    position: relative;
}
.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--zzz-grey);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.zzz-input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: none;
    border-bottom: 2px solid var(--zzz-white);
    padding: 15px;
    color: var(--zzz-white);
    font-family: inherit;
    font-size: 1.2rem;
    transition: 0.3s;
}
.zzz-input:focus {
    outline: none;
    background: rgba(255, 51, 0, 0.1);
    border-bottom-color: var(--zzz-red);
}

/* --- 表格 --- */
.zzz-table-container {
    border: 2px solid #1e1e1e;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    position: relative;
}
.table-header-deco {
    background: var(--zzz-white);
    color: var(--zzz-black);
    padding: 5px 10px;
    font-weight: 900;
    font-style: italic;
    display: inline-block;
    margin-bottom: 10px;
    transform: skewX(var(--angle));
}
.zzz-table {
    width: 100%;
    border-collapse: collapse;
}
.zzz-table th {
    text-align: left;
    color: var(--zzz-grey);
    font-size: 0.8rem;
    padding: 10px;
    border-bottom: 1px solid var(--zzz-grey);
}
.zzz-table td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.zzz-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: var(--zzz-red);
}
.status-badge {
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-badge.locked {
    background: transparent;
    border: 1px solid #555;
    color: #555;
}
.status-badge.active {
    background: var(--zzz-red);
    color: #000;
}

/* --- Footer --- */
footer {
    background: var(--zzz-red);
    color: var(--zzz-black);
    padding: 40px;
    text-align: center;
    font-weight: bold;
    clip-path: polygon(0 20%, 5% 0, 10% 20%, 15% 0, 20% 20%, 25% 0, 30% 20%, 35% 0, 40% 20%, 45% 0, 50% 20%, 55% 0, 60% 20%, 65% 0, 70% 20%, 75% 0, 80% 20%, 85% 0, 90% 20%, 95% 0, 100% 20%, 100% 100%, 0 100%);
    margin-top: 50px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-split { flex-direction: column; }
    .layer-front { clip-path: polygon(0 0, 100% 0, 100% 60%, 0 80%); } /* 手机版改为上下切 */
    .content-grid { grid-template-columns: 1fr; }
}