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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 40px 30px;
}

    .header h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

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

.content {
    padding: 30px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #11998e;
    border-left: 4px solid #11998e;
    padding-left: 15px;
    margin-bottom: 20px;
}

.info-grid {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

.info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-post {
    background: #e6f7ff;
    color: #1890ff;
}

.badge-required {
    background: #fff2f0;
    color: #ff4d4f;
}

.badge-optional {
    background: #f6ffed;
    color: #52c41a;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #fafafa;
}

.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
}

    .code-block .keyword {
        color: #c678dd;
    }

    .code-block .string {
        color: #98c379;
    }

    .code-block .number {
        color: #d19a66;
    }

    .code-block .comment {
        color: #5c6370;
    }

.json-view {
    background: #f8f9fc;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
}

.param-name {
    font-family: monospace;
    font-weight: 600;
    color: #d73a49;
}

.sign-steps {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
}

.step {
    display: flex;
    margin-bottom: 20px;
}

.step-num {
    width: 30px;
    height: 30px;
    background: #11998e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 15px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    color: #666;
    font-size: 14px;
}

.note-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

    .note-box .title {
        font-weight: 600;
        margin-bottom: 8px;
        color: #856404;
    }

    .note-box .content {
        padding: 0;
        color: #856404;
        font-size: 14px;
    }

.tab-bar {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

    .tab-btn.active {
        color: #11998e;
        border-bottom: 2px solid #11998e;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    th, td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .info-grid {
        flex-direction: column;
        gap: 10px;
    }
}

.print-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #11998e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 100;
}

    .print-btn:hover {
        background: #0e7a6e;
        transform: translateY(-2px);
    }

@media print {
    .print-btn {
        display: none;
    }

    body {
        padding: 0;
        background: white;
    }

    .badge {
        border: 1px solid #ddd;
    }

    .tab-btn {
        display: none;
    }

    .tab-content {
        display: block !important;
    }
}
