:root {
    --icon-size: 36px; /* 自定義圖標大小 */

    /*
      自定義背景：
      改成 bg.png 即可
    */
    --bg-image: url("/files/bg.jpg");

    --pink-main: #ff5cad;
    --pink-soft: #ffe5f2;
    --text: #4a1832;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans TC",
        "Noto Sans JP",
        sans-serif;

    background:
        linear-gradient(
            rgba(255,240,248,0.72),
            rgba(255,215,235,0.82)
        ),
        var(--bg-image);

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: var(--text);
}

.overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;

    width: min(1100px, 92%);
    margin: auto;

    padding: 42px 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

h1 {
    margin: 0;
    font-size: 36px;
    color: #ff4fa3;
}

.lang {
    display: flex;
    gap: 8px;
}

.lang button {
    border: none;
    padding: 10px 15px;
    border-radius: 999px;

    background: rgba(255,255,255,0.72);

    color: #d3287c;

    cursor: pointer;
    font-weight: 600;

    transition: 0.18s;
}

.lang button:hover {
    background: #ff89bf;
    color: white;
}

.panel {
    background: rgba(255,255,255,0.72);

    backdrop-filter: blur(18px);

    border-radius: 28px;

    padding: 20px;

    box-shadow:
        0 24px 70px rgba(255,86,160,0.28);

    border:
        1px solid rgba(255,255,255,0.72);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table tr {
    transition: 0.18s;
}

.file-table tr:hover {
    background: rgba(255, 225, 240, 0.7);
}

.file-table td,
.file-table th {
    padding: 14px 18px;
    border-bottom:
        1px solid rgba(255, 190, 220, 0.55);
}

.file-table a {
    color: #d92f86;
    text-decoration: none;
    font-weight: 600;
}

.file-table a:hover {
    text-decoration: underline;
}

.file-icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

hr {
    display: none;
}

pre {
    display: none;
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    h1 {
        font-size: 28px;
    }

    .file-table td,
    .file-table th {
        padding: 12px;
        font-size: 14px;
    }
}