* {
    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: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

a, a:visited, a:active, a:link {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: #0052a3;
    border-bottom-color: #0066cc;
    background-color: transparent;
}

hr {
    clear: both;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    border: none;
    margin: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a2332;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

h2 {
    font-size: 1.8rem;
    border-left: 5px solid #667eea;
    padding-left: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    color: #764ba2;
}

h4 {
    font-size: 1.1rem;
    background-color: #f0f4ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

h5 {
    font-size: 1rem;
    color: #555;
}

#i {
    color: #e74c3c;
    font-weight: bold;
}

tt {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #27ae60;
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
}

em {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2980b9;
    border-left: 3px solid #3498db;
    padding-left: 0.5rem;
}

bc {
    font-weight: bold;
    color: #c0392b;
    background-color: #fdeaea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}

ks {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.95rem;
}

kc {
    font-weight: bold;
    color: #27ae60;
    font-size: 0.95rem;
}

pre {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: transparent;
    color: #2c3e50;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    line-height: 1.5;
}

m {
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
    font-size: 0.9rem;
    color: #666;
}

div.body {
    font-size: 1rem;
}

k {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.95rem;
}

div.req {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    font-size: 1rem;
    border-left: 5px solid #28a745;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

div.remark {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e7f7 100%);
    border-left: 5px solid #0066cc;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

table, th, td {
    border-collapse: collapse;
}

table {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

tr:hover {
    background-color: #f8f9fa;
}

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

ol, ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

div.wrapdesc {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

div.imagedesc {
    max-width: 900px;
    margin: 1.5rem auto;
    text-align: center;
}

.footer {
    background-color: rgba(86, 56, 253, 0.9);
    color: white;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.footer-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.footer-center img {
    max-width: 150px;
    height: auto;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.footer a {
    color: white;
    border-bottom-color: white;
}

.footer a:hover {
    color: #e0e0e0;
    border-bottom-color: white;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    div.wrapdesc {
        padding: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem;
    }
}
