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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 登录框 */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.login-box {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.login-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 20px;
}

    .login-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

    .login-btn:hover {
        transform: translateY(-2px);
    }

.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

/* 文档内容（登录后显示） */
.docs-content {
    display: none;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

    .header h1 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .header p {
        font-size: 16px;
        opacity: 0.9;
    }

.logout-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

    .logout-btn:hover {
        background: rgba(255,255,255,0.3);
    }

.badge-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.env-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.doc-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .doc-card:hover {
        transform: translateY(-5px);
    }

.card-header {
    padding: 28px 24px 20px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

    .card-icon.order {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .card-icon.query {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

    .card-icon.notify {
        background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    }

    .card-icon.sign {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.card-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-text {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
}

.arrow {
    color: #94a3b8;
    font-size: 16px;
}

.gateway-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 24px 32px;
    margin-top: 20px;
}

.gateway-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gateway-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.gateway-item {
    flex: 1;
    min-width: 200px;
}

    .gateway-item .label {
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 6px;
    }

    .gateway-item .value {
        font-family: monospace;
        font-size: 14px;
        color: #1e293b;
        background: #f1f5f9;
        padding: 6px 12px;
        border-radius: 8px;
        word-break: break-all;
    }

.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 28px;
    }

    .gateway-info {
        flex-direction: column;
        gap: 16px;
    }

    .gateway-card {
        padding: 20px;
    }
}
