:root {
  --base: #0b0b0b; --sizecolor: #f2f2f2; --clickcolor: #fe2c55; --contrast: #222; --contrast-2: #aaa;
}
body { background: #1a1a1a; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }

: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;
}

/* ------ */

/* === shell layout (paired with target theme CSS above) === */
.header-box { width: 100%; }
.header {
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 1000;
  background: var(--base, #000); color: var(--sizecolor, #fff);
}
.logo img { height: 50px; width: auto; border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.nav a { color: var(--sizecolor, #fff); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--clickcolor, #fe2c55); }
button.menu-btn {
  display: none; background: none; border: none; color: var(--sizecolor, #fff);
  font-size: 26px; cursor: pointer;
}
main {
  max-width: 1100px; margin: 16px auto; padding: 28px 24px;
  background: var(--base, #111); border-radius: 8px;
  color: var(--sizecolor, #eee);
}
.content a { color: var(--clickcolor, #fe2c55); font-weight: 600; }
.content h1, .content h2 {
  font-size: 20px; padding: 0.9em 1em; text-align: center; margin: 0 0 18px;
  background: #fff; color: #111;
}
.content h3 { margin: 1.2em 0 0.6em; font-size: 18px; }
.content p { margin: 0 0 1.2em; line-height: 1.75; }
.content ul, .content ol { margin: 0 0 1.2em 1.6em; }
.img-box { text-align: center; margin: 16px 0 22px; }
.img-box img, .content img {
  max-width: 860px; width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto;
}
.footer {
  background: var(--base, #000); color: var(--sizecolor, #fff);
  padding: 28px 16px; margin-top: 28px; text-align: center;
}
.footer a { color: var(--sizecolor, #fff); margin: 0 10px 8px; display: inline-block; text-decoration: none; }
.footer-bottom { margin-top: 14px; font-size: 13px; opacity: 0.85; }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; z-index: 2000;
}
.overlay.is-open { display: block; }
.sidebar {
  width: 280px; height: 100%; background: var(--base, #111); padding: 20px; position: relative;
}
.sidebar .menu a {
  display: block; padding: 14px 8px; color: var(--sizecolor, #fff); text-decoration: none; font-size: 18px;
}
button.close-btn {
  position: absolute; top: 16px; right: -52px; width: 40px; height: 40px;
  background: #333; color: #fff; border: none; cursor: pointer;
}
.right-area { position: absolute; left: 280px; right: 0; top: 0; bottom: 0; }
.ads-top-bar { margin: 10px 0 22px; }
#applist {
  text-align: center; margin: 8px 0; padding: 14px 10px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; background: rgba(0,0,0,0.35);
}
#applist .applist-title { font-weight: bold; margin-bottom: 10px; }
#ads { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
#ads .ads-item, #ads > div { width: 70px; text-align: center; }
#ads img { width: 65px; height: 65px; object-fit: cover; border-radius: 18px; display: block; margin: 0 auto; }
#ads .caption, #ads figcaption {
  font-size: 12px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 4px auto 0;
}
.related { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 768px) {
  .nav { display: none !important; }
  button.menu-btn { display: block !important; }
}
