* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.container {
    width: 1000px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(240, 242, 245, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.window-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}
.window-title .icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.window-controls {
    display: flex;
    gap: 10px;
}
.window-controls span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.window-controls span:hover { opacity: 0.8; }
.ctrl-close { background: #ff5f57; }
.ctrl-minimize { background: #ffbd2e; }
.ctrl-maximize { background: #28c840; }

.window-body {
    padding: 24px;
}

.user-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
}
.user-status .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #2e7d32;
}
.badge .dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.card-verify {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
}
.card-verify h2 {
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 22px;
}
.card-verify .input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.card-verify input {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}
.card-verify input:focus {
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.15);
}
.card-verify button {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.card-verify button:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(245,87,108,0.3); }
.error { color: #d32f2f; margin-top: 12px; }

.actions {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 10px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn:active { transform: scale(0.95); }
.btn-zhao { background: linear-gradient(135deg, #f093fb, #f5576c); }
.btn-qingkong { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.btn-zizhi { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #1a3a2a; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.terminal {
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-top: 6px;
}
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    font-size: 13px;
}
.terminal-header .term-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.term-title .cursor-blink {
    display: inline-block;
    width: 10px;
    height: 16px;
    background: #2c3e50;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.terminal-body {
    padding: 16px 18px;
    height: 380px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-all;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.terminal-body .line {
    margin: 2px 0;
    padding: 2px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.terminal-body .line-info { color: #0d6efd; }
.terminal-body .line-warn { color: #e67e22; }
.terminal-body .line-success { color: #198754; }
.terminal-body .line-error { color: #dc3545; }
.terminal-body .line-progress { color: #0dcaf0; }

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 18px;
    background: #f1f3f5;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
    color: #6c757d;
}
.status-bar .status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-bar .status-item .led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #198754;
}
.status-bar .status-item .led.off { background: #6c757d; }

@media (max-width: 700px) {
    .window-header { flex-direction: column; gap: 8px; }
    .actions { flex-direction: column; }
    .btn { min-width: unset; }
}