/* 微信举报终端 - 前台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e27;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景网格 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 粒子背景容器 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
    animation: float 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.2;
    }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 登录卡片 */
.login-card {
    background: rgba(10, 20, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.1),
        0 0 60px rgba(0, 212, 255, 0.05),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: glow 3s infinite ease-in-out;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.1),
            0 0 60px rgba(0, 212, 255, 0.05),
            inset 0 0 30px rgba(0, 212, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 212, 255, 0.15),
            0 0 80px rgba(0, 212, 255, 0.08),
            inset 0 0 40px rgba(0, 212, 255, 0.08);
    }
}

/* 标题 */
.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 消息提示 */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    display: block;
}

.message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    display: block;
}

/* 卡密信息 */
.card-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    display: none;
}

.card-info.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-info-item:last-child {
    border-bottom: none;
}

.card-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.card-info-value {
    color: #00d4ff;
    font-size: 14px;
    font-weight: 500;
}

/* 主面板 */
.main-panel {
    display: none;
    width: 100%;
    max-width: 800px;
}

.main-panel.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.panel-header {
    text-align: center;
    margin-bottom: 30px;
}

.panel-title {
    font-size: 32px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 举报表单 */
.report-form {
    background: rgba(10, 20, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 底部信息 */
.footer-info {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .panel-title {
        font-size: 24px;
    }
    
    .report-form {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .login-card {
        padding: 25px 15px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 举报终端弹窗 */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.terminal-overlay.show {
    display: flex;
}

.terminal-panel {
    width: 100%;
    max-width: 380px;
    background: #0a0a0a;
    border: 1px solid #00ff41;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #111;
    border-bottom: 1px solid #00ff41;
    flex-shrink: 0;
}

.terminal-title {
    color: #00ff41;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.terminal-icon {
    margin-right: 6px;
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    background: #1a1a1a;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 4px 10px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.terminal-btn:hover {
    background: #00ff41;
    color: #000;
}

.terminal-btn-close {
    color: #ff4444;
    border-color: #ff4444;
}

.terminal-btn-close:hover {
    background: #ff4444;
    color: #fff;
}

.terminal-body {
    padding: 6px 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: #050505;
    scrollbar-width: thin;
    scrollbar-color: #00ff41 #1a1a1a;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 3px;
}

.terminal-line {
    color: #00ff41;
    font-size: 13px;
    line-height: 1.7;
    white-space: nowrap;
    opacity: 0;
    animation: terminalEntry 0.3s ease forwards;
}

.terminal-line.terminal-init {
    opacity: 0.7;
}

.terminal-line.terminal-divider {
    opacity: 0.4;
    font-size: 11px;
    letter-spacing: -1px;
}

.terminal-line.entry {
    animation: terminalEntry 0.3s ease forwards;
}

@keyframes terminalEntry {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #111;
    border-top: 1px solid #00ff41;
    flex-shrink: 0;
}

.terminal-progress {
    color: #00ff41;
    font-size: 14px;
    font-weight: bold;
}

.terminal-progress-icon {
    margin-right: 4px;
}

.terminal-count {
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.terminal-status {
    color: #00ff41;
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .terminal-overlay {
        padding: 20px;
    }
    
    .terminal-panel {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 6px;
    }
    
    .terminal-header {
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .terminal-title {
        font-size: 14px;
    }
    
    .terminal-body {
        padding: 6px 12px;
    }
    
    .terminal-line {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .terminal-footer {
        padding: 6px 10px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }
    
    .terminal-progress {
        font-size: 13px;
    }
    
    .terminal-btn {
        font-size: 12px;
        padding: 3px 8px;
    }
}
