:root {
    --contrast: #000000;
    --contrast-2: #ffffff;
    --contrast-3: #ffffff;
    --base: #ffffff;
    --accent: #ff0000;
    --titlebackcolor: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--contrast);
}

a {
    text-decoration: none;
}

.content a {
    color: var(--accent);
    font-weight: bold;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    color: var(--contrast-2);
    background-color: var(--contrast-3);
}

.header {
    height: 70px;
    background-color: var(--base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.subtitle {
    margin: 10px;
    font-weight: bold;
    font-size: 18px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--contrast);
    text-decoration: none;
    font-size: 17px;
}

.nav a:hover {
    color: #2f6edb;
}

.menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.footer {
    background-color: var(--base);
    color: var(--contrast);
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer a {
    margin-bottom: 8px;
    color: var(--contrast);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #cfcfcf;
    display: none;
    z-index: 2000;
}

.sidebar {
    width: 280px;
    height: 100%;
    background-color: var(--contrast-3);
    padding: 20px;
    position: relative;
}

.sidebar .logo img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
}

.menu {
    margin-top: 40px;
}

.menu a {
    display: block;
    padding: 18px 10px;
    font-size: 20px;
    color: var(--contrast);
}

.active {
    color: var(--accent) !important;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: -60px;
    width: 40px;
    height: 40px;
    background-color: var(--contrast-3);
    ;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.right-area {
    position: absolute;
    left: 280px;
    right: 0;
    top: 0;
    bottom: 0;
}

.logo img {
    border-radius: 10px;
}

h1 {
    margin: 0;
    font-size: 28px
}

main {
    background-color: var(--base);
    padding: 40px;
    border-radius: 5px;
    margin: 20px auto;
    box-shadow: 0 0 10px var(--base);
}

p {
    margin-bottom: 1.5em;
    font-size: medium;
    white-space: normal;
}

h1,
h2 {
    font-size: 20px;
    padding: 1.25em 2.375em;
    text-align: center;
    background-color: var(--titlebackcolor);
    margin-bottom: 20px;
    color: #000;
}

h3 {
    margin-bottom: 1.25em;
}

ul {
    list-style: disc;
}

ol,
ul {
    margin: 0 0 1.5em 3em;
}

.img-box {
    width: 100%;
    text-align: center;
}

.table {
    margin: .9em auto;
    text-align: center;
}

table {
    margin: auto;
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


table th {
    background-color: var(--accent);
    color: var(--titlebackcolor);
    font-weight: 600;
    padding: 14px 16px;
    border: none;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.3px;
}


table td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    background-color: #ffffff;
    color: #1f2937;
}


table tr:hover td {
    background-color: #f9fafb;
}


table td:first-child,
table th:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #f8fafc;
}


table th:first-child {
    background-color: var(--accent);
    color: white;
}

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

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

.img-box .img-info {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    max-width: 300px;
}

@media (max-width: 768px) {

    .nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .header {
        height: 70px;
        border-bottom: 1px solid #eee;
    }

    .logo img {
        height: 50px;
    }
}

@media (min-width: 1400px) {

    .header-box {
        border-bottom: 1px solid #eee;
        background-color: var(--base);
    }

    .header {
        width: 1200px;
        margin: auto;
    }
}


/* ------ */
#ads {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    background: transparent;
    margin: 10px 0;
}

#ads>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    box-sizing: border-box;
}

#ads img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: block;
    border: none;
    background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
    display: inline-block;
    text-decoration: none;
    border-radius: 15px;
}

#ads img:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
    height: 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#applist {
    text-align: center;
}

#applist .applist-title {
    font-weight: bold;
}

/* ------ */