/* Theme 2: Neo-Brutalism */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fffbf0;
    background-image:
        linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 820px;
}

/* 卡片：硬实体投影，无圆角 */
.glass-card {
    background: #ffffff;
    border: 2.5px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 6px 6px 0 #1a1a1a;
    padding: 40px;
    margin-bottom: 28px;
    position: relative;
}

.glass-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #1a1a1a;
    transition: all 0.15s ease;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2.5px solid #1a1a1a;
}

.header h1 {
    font-family: 'Space Mono', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
}

.header h1::before {
    content: '▶ ';
    color: #ff4500;
    font-size: 1.6rem;
}

.header p {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 步骤指示器：方块数字 */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    gap: 8px;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 40px;
    right: 40px;
    height: 2.5px;
    background: #1a1a1a;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

/* 方块替代圆圈 */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #ffffff;
    border: 2.5px solid #1a1a1a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    margin: 0 auto 8px;
    transition: all 0.2s ease;
}

.step-item.active .step-circle {
    background: #ff4500;
    border-color: #ff4500;
    color: #ffffff;
    box-shadow: 3px 3px 0 #1a1a1a;
}

.step-item.completed .step-circle {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: #ff4500;
}

/* 表单样式：底线输入 */
.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 0 10px 0;
    border: none;
    border-bottom: 2.5px solid #1a1a1a;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
    font-weight: 400;
}

.form-input:focus,
.form-textarea:focus {
    border-bottom-color: #ff4500;
    border-bottom-width: 3px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    padding: 10px 0;
    border: 2.5px solid #1a1a1a;
    padding: 12px;
}

.form-textarea:focus {
    border-color: #ff4500;
    border-width: 2.5px;
    box-shadow: 3px 3px 0 #ff4500;
}

/* 按钮：大胆方块风格 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border: 2.5px solid #1a1a1a;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 4px 4px 0 #1a1a1a;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1a1a1a;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1a1a1a;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 #1a1a1a;
}

.btn-primary {
    background: #ff4500;
    color: #ffffff;
    border-color: #1a1a1a;
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.btn-success {
    background: #00c853;
    color: #ffffff;
    border-color: #1a1a1a;
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 140px;
}

/* 提示信息：左侧粗色条 */
.alert {
    padding: 14px 16px;
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 2px solid;
    border-left-width: 6px;
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.alert-success {
    background: #f0fff4;
    color: #1a5e35;
    border-color: #00c853;
}

.alert-error {
    background: #fff5f5;
    color: #8b0000;
    border-color: #ff1744;
}

.alert-warning {
    background: #fffbf0;
    color: #7c4f00;
    border-color: #ff9800;
}

.alert-info {
    background: #f0f8ff;
    color: #003580;
    border-color: #2962ff;
}

/* 用户信息卡片 */
.info-card {
    background: #fff9f0;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 24px;
    border: 2px solid #1a1a1a;
    border-left: 6px solid #ff4500;
}

.info-card h3 {
    color: #1a1a1a;
    margin-bottom: 14px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-item {
    display: flex;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95rem;
}

.info-item strong {
    color: #1a1a1a;
    margin-right: 10px;
    min-width: 80px;
    font-weight: 700;
}

/* 加载动画：方块旋转 */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #ff4500;
    border-radius: 0;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 251, 240, 0.88);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border: 2.5px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 8px 8px 0 #1a1a1a;
    padding: 44px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: translate(6px, 6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-overlay.show .modal-content {
    transform: translate(0, 0);
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: #ff4500;
    border: 2.5px solid #1a1a1a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 4px 4px 0 #1a1a1a;
}

.modal-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.modal-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.modal-text {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-steps {
    background: #fff9f0;
    padding: 18px 20px;
    border-radius: 0;
    text-align: left;
    margin: 20px 0;
    border: 2px solid #1a1a1a;
    border-left: 5px solid #ff4500;
}

.modal-steps ol {
    padding-left: 18px;
    margin: 0;
}

.modal-steps li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
    font-size: 0.92rem;
}

/* 结果表格 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 2px solid #1a1a1a;
}

.results-table th,
.results-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1.5px solid #e0e0e0;
}

.results-table th {
    background: #1a1a1a;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover td {
    background: #fff9f0;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid;
}

.status-normal {
    background: #f0fff4;
    color: #1a5e35;
    border-color: #00c853;
}

.status-used {
    background: #fff5f5;
    color: #8b0000;
    border-color: #ff1744;
}

.status-error {
    background: #f5f5f5;
    color: #555;
    border-color: #bbb;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* 响应式 */
@media (max-width: 640px) {
    body {
        padding: 16px 12px;
        background-size: 24px 24px;
    }

    .glass-card {
        padding: 24px 20px;
        box-shadow: 4px 4px 0 #1a1a1a;
    }

    .header h1 {
        font-size: 1.7rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .step-label {
        font-size: 0.68rem;
    }
}

/* 页脚 */
.footer {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin-top: 32px;
    padding: 16px;
    border-top: 2px solid #1a1a1a;
    background: #1a1a1a;
    box-shadow: 4px 4px 0 #ff4500;
}

.footer p {
    margin: 4px 0;
    color: #ccc;
}
