* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, table, th, td, textarea {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #1c1c1c;
    padding: 30px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-x: hidden;
}

a {
    color: #1a73e8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
}
h1 {
    font-size: 2.2rem;
    border-width: 2px;
    border-bottom-color: #3498db;
}
h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom-color: #3498db;
}

#Index {
    font-weight: bold;
    font-size: 1.125rem;
}

p, br {
    margin-bottom: 12px;
}

textarea {
    width: 100%;
    background: #2d2d2d;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px;
    margin: 1.5rem 0;
    line-height: 1.4;
    box-sizing: border-box;
    resize: vertical;
    overflow-x: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
table td br {
    font-size: inherit;
}
table th {
    background-color: #f0f0f0;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

a[href="#Index"] {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    background-color: #e2f0ff;
    padding: 4px 10px;
    border-radius: 4px;
}
a[href="#Index"]:hover {
    background-color: #b3d9ff;
}

td:before {
    content: "";
}
td p {
    margin-bottom: 0;
}

.highlight {
    background-color: #fff7e6;
    border-left: 4px solid #ffb347;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

textarea::-webkit-scrollbar {
    height: 8px;
    background: #f3f3f3;
}
textarea::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@media (max-width: 1000px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2.0rem;
    }
    p, ul, li {
        font-size: 1.1em;
    }
    #Index {
        font-size: 20px;
    }
    textarea {
        font-size: 16px;
    }

    table {
        font-size: 1.1rem;
    }
    table td {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    table th{
        padding: 10px;
        font-size: 1.5rem;
    }
    table td p {
        font-size: 0.9em;
        line-height: 1.4;
        margin: 0;
    }
    table tr:nth-child(even) {
        background-color: #fafafa;
    }
    table tr:hover {
        background-color: #f9f9f9;
    }

}