@font-face {
    font-family: 'Alimama FangYuan';
    src: url('../ttf/AlimamaFangYuanTiVF-Thin.woff2') format('woff2'),
         url('../ttf/AlimamaFangYuanTiVF-Thin.woff') format('woff'),
         url('../ttf/AlimamaFangYuanTiVF-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-variation-settings: 'wght' 600, 'ROND' 80;
    font-feature-settings: 'salt' 1;
}

:root {
    --main-font: 'Alimama FangYuan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --code-font: 'Monaco', 'Consolas', monospace;
    --font-weight: 600;
    --font-rond: 80;
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --button-primary: #23a6d5;
    --button-hover: #23d5ab;
    --highlight-color: #23a6d5;
    --title-glow: 0 2px 4px rgba(35, 166, 213, 0.2);
    --grid-color: rgba(35, 166, 213, 0.1);
    touch-action: none;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes glitch {
    0% { transform: none; opacity: 1; }
    7% { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10% { transform: none; opacity: 1; }
    27% { transform: none; opacity: 1; }
    30% { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35% { transform: none; opacity: 1; }
    52% { transform: none; opacity: 1; }
    55% { transform: skew(-1deg, 0.2deg); opacity: 0.75; }
    50% { transform: none; opacity: 1; }
    72% { transform: none; opacity: 1; }
    75% { transform: skew(0.4deg, 1deg); opacity: 0.75; }
    80% { transform: none; opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes glitch-2 {
    0% { transform: none; opacity: 0.25; }
    7% { transform: translate(-2px, -3px); opacity: 0.5; }
    10% { transform: none; opacity: 0.25; }
    27% { transform: none; opacity: 0.25; }
    30% { transform: translate(-5px, -2px); opacity: 0.5; }
    35% { transform: none; opacity: 0.25; }
    100% { transform: none; opacity: 0.25; }
}

body {
    font-family: var(--main-font);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    transition: all 0.3s ease;
}

#container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 2.5em;
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
    letter-spacing: -0.5px;
    text-shadow: var(--title-glow);
    font-family: var(--main-font);
}

.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch 4s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: #23a6d5;
    animation: glitch 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px);
    opacity: 0.75;
}

.glitch-text::after {
    color: #23d5ab;
    animation: glitch-2 4s infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(2px);
    opacity: 0.75;
}

.subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-family: var(--main-font);
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
}

.input-area {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-sizing: border-box;
    width: 100%;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    resize: vertical;
    font-size: 16px;
    font-family: var(--code-font);
    background: rgba(0, 0, 0, 0.8) !important;
    color: #00ffff;
    box-sizing: border-box;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

textarea:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    outline: none;
    background: rgba(0, 0, 0, 0.9) !important;
}

textarea::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    background-color: var(--button-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(35, 166, 213, 0.3);
    font-family: var(--main-font);
}

button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 213, 171, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(35, 166, 213, 0.2);
}

#introduction {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    transition: all 0.3s ease;
}

#introduction h2 {
    color: var(--text-color);
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: var(--main-font);
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
}

#introduction p {
    margin: 12px 0;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.9;
    font-family: var(--main-font);
    font-weight: var(--font-weight);
    font-variation-settings: 'wght' var(--font-weight), 'ROND' var(--font-rond);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copyright a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.copyright a:hover {
    opacity: 0.8;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.visitor-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--text-color);
    font-size: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.visitor-counter .eye-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #23a6d5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visitor-counter .count {
    font-weight: var(--font-weight);
    color: #fff;
}

.visitor-counter .label {
    color: rgba(255, 255, 255, 0.7);
}

.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.theme-btn,
.language-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    min-width: 45px;
    min-height: 45px;
    max-width: 45px;
    max-height: 45px;
    width: 45px;
    height: 45px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}

.theme-btn:hover,
.language-btn:hover {
    background: var(--button-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-icon,
.language-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
}

.language-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 5px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-options.show {
    display: flex;
}

.language-option {
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-option:hover {
    background: var(--button-primary);
    color: #ffffff;
}

.language-option.active {
    background: var(--button-primary);
    color: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --button-primary: #23a6d5;
    --button-hover: #23d5ab;
    --highlight-color: #23a6d5;
    --title-glow: 0 2px 4px rgba(35, 166, 213, 0.2);
    --grid-color: rgba(35, 166, 213, 0.1);
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --card-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --button-primary: #1e88e5;
    --button-hover: #1565c0;
    --highlight-color: #1e88e5;
    --title-glow: 0 2px 4px rgba(30, 136, 229, 0.2);
    --grid-color: rgba(30, 136, 229, 0.1);
}

@media (max-width: 768px) {
    #container {
        margin: 10px;
        padding: 15px;
        width: auto;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 0.85em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .input-area {
        padding: 15px;
    }

    textarea {
        padding: 12px;
        height: 150px;
    }

    button {
        width: 100%;
        margin: 5px 0;
        padding: 10px 20px;
        font-size: 14px;
    }

    #introduction {
        padding: 20px;
        margin-top: 30px;
    }

    #introduction h2 {
        font-size: 1.5em;
    }

    #introduction p {
        font-size: 1em;
    }
}

.file-upload {
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--highlight-color);
    background: rgba(35, 166, 213, 0.1);
}

.drop-zone span {
    color: var(--text-color);
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.file-name {
    margin: 10px 0 0;
    color: var(--highlight-color);
    font-size: 0.9em;
    word-break: break-all;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.key-input,
.copyright-input {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    font-family: var(--code-font);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    outline: none;
}

.form-input::placeholder {
    color: rgba(0, 255, 255, 0.5);
} 