@charset "utf-8";

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'HarmonyOS_Regular', 'Segoe UI', sans-serif;
}

*,
a,
p,
label {
    text-decoration: none;
    transition: 0.3s;
    color: #efefef;
    user-select: none;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
}

/* ========== 自定义鼠标指针 ========== */
#g-pointer-1 {
    display: none;
}

#g-pointer-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    transition: 0.05s linear;
    pointer-events: none;
    background: #ffffff40;
    border-radius: 50%;
    z-index: 9999999;
}

/* ========== 背景 ========== */
.bg-all {
    position: fixed;
    inset: 0;
    z-index: -10;
}

#bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover {
    opacity: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .3) 100%), 
                      radial-gradient(rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, .2) 166%);
    transition: 0.25s;
}

body > *:not(.bg-all) {
    position: relative;
    z-index: 10;
}

/* ========== 玻璃态卡片效果 ========== */
.glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.5s;
}

.glass-card:hover {
    transform: scale(1.01);
    transition: 0.5s;
}

.glass-card:active {
    transform: scale(0.95);
    transition: 0.5s;
}

/* ========== 主容器 ========== */
.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    height: 90%;
}

/* ========== 返回主页按钮 ========== */
.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.005);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #efefef;
    z-index: 1000;
    transition: 0.3s;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    color: #fff;
}

/* ========== 面板头部 ========== */
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header i {
    font-size: 24px;
    color: #efefef;
}

.panel-header h2,
.panel-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #efefef;
}

/* ========== 输出面板 ========== */
.output-panel {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#text {
    flex: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 20px;
    color: #efefef;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
    white-space: pre;
    overflow: auto;
    resize: none;
    outline: none;
    transition: 0.3s;
}

#text::-webkit-scrollbar {
    width: 8px;
}

#text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#text::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 300px;
}

/* ========== 控制面板 ========== */
#options {
    width: 380px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

#options::-webkit-scrollbar {
    width: 6px;
}

#options::-webkit-scrollbar-track {
    background: transparent;
}

#options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========== 选项项 ========== */
.option-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #efefef;
}

.option-item label i {
    font-size: 16px;
    opacity: 0.8;
}

/* ========== 输入框样式 ========== */
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: #efefef;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

input[type="number"]:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

select {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
}

select option {
    background: #2a2a2a;
    color: #efefef;
}

/* ========== 文件上传按钮 ========== */
.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    /* 透明度 */
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: #efefef;
    font-size: 15px;
    font-weight: 600;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
    transition: 0.3s;
}

.file-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-upload-btn:active {
    transform: scale(0.98);
}

.file-upload-btn input[type="file"] {
    display: none;
}

/* ========== 开关选项 ========== */
.option-switches {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.switch-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
}

/* ========== 自定义复选框 ========== */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
    transition: all 0.3s ease;
}

input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

input[type="checkbox"]:checked::before {
    left: 22px;
    background: rgba(255, 255, 255, 0.8);
}

input[type="checkbox"]:hover {
    background: rgba(255, 255, 255, 0.08);
}

input[type="checkbox"]:checked:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========== 按钮样式 ========== */
.primary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    /* 透明度 */
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: #efefef;
    font-size: 15px;
    font-weight: 600;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4, auto !important;
    transition: 0.3s;
}

.primary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* ========== 统计信息 ========== */
.stats-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.stats-info i {
    font-size: 16px;
}

#charcount {
    font-weight: 600;
    color: #efefef;
    margin-left: auto;
}

/* ========== 底部链接 ========== */
.footer-link {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: 0.3s;
}

.footer-link a:hover {
    color: #efefef;
}

/* ========== 响应式设计 ========== */
@media screen and (max-width: 1200px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-container {
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        padding: 90px 20px 20px;
    }

    .content-wrapper {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    #options {
        width: 100%;
        max-height: 400px;
    }

    .output-panel {
        min-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        padding: 78px 16px 16px;
    }

    .back-home {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .content-wrapper {
        gap: 15px;
    }

    .output-panel,
    #options {
        padding: 20px;
    }

    .panel-header h2,
    .panel-header h3 {
        font-size: 20px;
    }

    #text {
        font-size: 12px;
    }
}

/* ========== 深色模式特定样式 ========== */
#text.dark {
    background: rgba(0, 0, 0, 0.4);
    color: #efefef;
}

/* ========== 动画效果 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-item,
.switch-item {
    animation: fadeIn 0.5s ease forwards;
}

.option-item:nth-child(1) { animation-delay: 0.1s; }
.option-item:nth-child(2) { animation-delay: 0.2s; }
.option-item:nth-child(3) { animation-delay: 0.3s; }
.option-item:nth-child(4) { animation-delay: 0.4s; }
.option-item:nth-child(5) { animation-delay: 0.5s; }
