* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, 'Roboto', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1120 0%, #19213a 100%);
    color: #eef2ff;
    display: flex;
    flex-direction: column;
}

/* 粒子背景层 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 主容器 - 毛玻璃卡片效果 */
.glass-card {
    background: rgba(18, 25, 45, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.4);
    padding: 2rem 1.8rem;
    transition: transform 0.2s ease;
}

.container-custom {
    max-width: 700px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
}

h1 {
    font-weight: 700;
    background: linear-gradient(120deg, #fff, #a5bbff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    font-size: 1.9rem;
}

.sub-icon {
    color: #7c8bcb;
    font-size: 2rem;
    margin-right: 10px;
}

/* 输入输出框美化 */
.custom-textarea {
    background: rgba(10, 17, 31, 0.7);
    border: 1px solid #2d3a5e;
    border-radius: 1.2rem;
    color: #f0f3fa;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    transition: all 0.2s;
    resize: vertical;
}

.custom-textarea:focus {
    background: #0f1629;
    border-color: #5f7fbf;
    box-shadow: 0 0 0 3px rgba(95, 127, 191, 0.2);
    outline: none;
    color: white;
}

.custom-textarea::placeholder {
    color: #6c7aa5;
    font-weight: 400;
}

.btn-glow {
    border-radius: 3rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary-custom {
    background: linear-gradient(95deg, #3b5b9b, #1e2f55);
    color: white;
    box-shadow: 0 5px 12px rgba(0, 30, 100, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    background: linear-gradient(95deg, #4a6fb3, #2a3e70);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-secondary-custom {
    background: rgba(45, 55, 80, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #4f6390;
    color: #eef;
}

.btn-secondary-custom:hover {
    background: #2a3657;
    transform: translateY(-2px);
    color: white;
}

.btn-outline-copy {
    border-radius: 2rem;
    border: 1px solid #5e7bb3;
    background: rgba(30, 45, 80, 0.6);
    color: #cddcff;
    transition: 0.2s;
}

.btn-outline-copy:hover {
    background: #2e4270;
    border-color: #8aa7e0;
    color: white;
}

.link-helper {
    color: #a7b9e8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.1s;
}

.link-helper:hover {
    color: white;
    text-decoration: underline;
}

.footer {
    background: rgba(8, 14, 26, 0.7);
    backdrop-filter: blur(8px);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    border-top: 1px solid #293551;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer a {
    color: #b9c8ff;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 模态框微调 */
.modal-content {
    background: #131d2f;
    border-radius: 1.5rem;
    border: 1px solid #344a74;
    color: #eaf1ff;
}

.modal-header, .modal-footer {
    border-color: #2a3d62;
}

.btn-close {
    filter: invert(0.8);
}

/* 复制按钮宽度自适应 */
.copy-button {
    width: 100%;
}

/* 让模态框内的说明文字更亮 */
.modal-body .text-muted {
    color: #b8c7ff !important;
}

@media (max-width: 550px) {
    .container-custom {
        width: 94%;
        margin: 1rem auto;
    }
    .glass-card {
        padding: 1.4rem;
    }
    h1 {
        font-size: 1.6rem;
    }
}