* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 242, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #0f0c29 0%, #302b63 48%, #24243e 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}
.stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.stars div {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 6s infinite alternate;
}
@keyframes twinkle { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* 双栏布局核心样式 */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 标题区：整体居中，分两行（图标+标题 / 副标题） */
/* 标题区整体样式 */
.header {
    color: white; /* 基础文字色设为白色 */
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0,242,255,0.6); /* 保留文字发光阴影，增强科技感 */
    grid-column: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 图标+标题行 */
.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

/* 公司图标样式（不变） */
.company-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,242,255,0.4);
    background: rgba(255,255,255,0.1);
    padding: 8px;
}
.company-icon_new {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transform: translateY(5px);
}

/* 主标题：纯白色 + 字间距 + 文字阴影 */
.header h1 {
    font-size: 48px; /* 保持放大后的字号 */
    font-weight: 800;
    color: #ffffff; /* 强制设为纯白色 */
    /* 去掉渐变背景相关样式 */
    /* background: linear-gradient(90deg, #00f2ff, #00aaff, #764ba2); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    margin: 0;
    letter-spacing: 8px; /* 字间距保持 */
    text-shadow: 0 0 10px rgba(0,242,255,0.8), 0 2px 20px rgba(0,0,0,0.5); /* 增强白色文字的辨识度 */
}

/* 副标题：纯白色（微调阴影） */
.header-subtitle {
    font-size: 18px;
    opacity: 0.95; /* 略提高不透明度，让白色更清晰 */
    color: #ffffff; /* 副标题也设为纯白色 */
    /* 去掉原浅蓝色 */
    /* color: #a0e0ff; */
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0,242,255,0.6), 0 1px 10px rgba(0,0,0,0.4);
}

/* 响应式适配（小屏） */
@media (max-width: 576px) {
    .company-icon {
        width: 55px;
        height: 55px;
    }
    .header h1 {
        font-size: 38px;
        letter-spacing: 6px;
    }
    .header-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
    }
}
/* 卡片通用样式 - 保持原有风格统一 */
.card {
    background: rgba(255,255,255,0.11);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 左侧卡片 - 上传区 */
.upload-card {
    padding-bottom: 20px;
}

/* 右侧卡片 - 结果区 */
.result-card {
    display: flex;
    flex-direction: column;
}

.card-header {
    background: linear-gradient(135deg, rgba(0,242,255,0.2), rgba(118,75,162,0.2));
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.preview-area {
    height: 420px;
    background: linear-gradient(45deg, #0f0c29, #1a1a2e);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.preview-area img, .preview-area video, .preview-area audio {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.scan-circle {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #00f2ff 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 60px #00f2ff;
    animation: scanPulse 4s infinite;
}
.scan-circle::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 3px solid #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 30px #00f2ff;
}
@keyframes scanPulse {
    0%,100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0.4; }
}

/* 功能按钮区 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 24px 20px;
    flex-grow: 1;
}
.menu-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border-radius: 24px;
    padding: 30px 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.25),
        inset 0 1px 2px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
}
.menu-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 15px 30px rgba(0,0,0,0.35),
        inset 0 1px 2px rgba(255,255,255,0.15);
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}
.menu-item:active {
    transform: translateY(2px);
    box-shadow:
        0 5px 15px rgba(0,0,0,0.2),
        inset 0 1px 2px rgba(255,255,255,0.1);
}
.menu-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #00f2ff, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,242,255,0.3);
    transition: all 0.3s;
}
.menu-item:hover .menu-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,242,255,0.4);
}
.menu-icon i {
    font-size: 32px;
    color: #fff;
}
.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* 隐藏文件输入框 */
.file-input {
    display: none;
}

/* 结果区域内容 */
.result-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.file-info {
    background: rgba(0,0,0,0.2);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 24px;
    line-height: 2.2;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}
.detect-btn {
    width: 100%;
    background: linear-gradient(135deg, #00f2ff, #007cff);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,242,255,0.4);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}
.detect-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.detect-btn:active { transform: translateY(2px); }

.detect-result {
    margin-top: auto;
    padding: 24px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    text-align: center;
    font-size: 19px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.real { color: #00ff9d; font-weight: bold; }
.fake { color: #ff0062; font-weight: bold; }

/* 文本输入区 */
.text-input-area {
    background: rgba(0,0,0,0.2);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}
.text-input {
    width: 100%;
    height: 160px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    resize: none;
    outline: none;
    padding: 5px;
}
.text-count {
    text-align: right;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

/* 结果预览区 - 与左侧预览样式统一 */
.result-preview-area {
    height: 300px;
    background: linear-gradient(45deg, #0f0c29, #1a1a2e);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.result-preview-area img, .result-preview-area video, .result-preview-area audio {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.result-preview-placeholder {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}
.text-preview-box {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header {
        grid-column: 1 / 2;
    }
    .preview-area {
        height: 350px;
    }
    .result-preview-area {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .preview-area {
        height: 280px;
    }
    .result-preview-area {
        height: 200px;
    }
    .menu-grid {
        gap: 15px;
        padding: 20px 15px 15px;
    }
    .menu-item {
        padding: 20px 5px;
    }
    .menu-icon {
        width: 60px;
        height: 60px;
    }
    .menu-icon i {
        font-size: 28px;
    }
    /* 小屏调整图标和标题大小 */
    .company-icon {
        width: 45px;
        height: 45px;
    }
    .header h1 {
        font-size: 32px;
    }
    .header-subtitle {
        font-size: 16px;
    }
}
