/* ===== 全局暗色主题 ===== */
body {
    background: #0a0a12;
    color: #e0e0e0;
}

.signature-page {
    background: linear-gradient(145deg, #0a0a12 0%, #141420 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ===== 标题区域 ===== */
.signature-header {
    text-align: center;
    padding: 15px 0 10px;
    position: relative;
}
.signature-header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 30%, #4facfe 70%, #00f5d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(245, 87, 108, 0.3);
    letter-spacing: 2px;
}
.signature-header .subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 4px;
    margin-top: -6px;
}
.signature-header .subtitle i {
    color: #f5576c;
    margin: 0 6px;
}
.header-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(245, 87, 108, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== 玻璃态卡片 ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.glass-card .card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.glass-card .card-title i {
    margin-right: 8px;
    color: #f5576c;
}

/* ===== 控制面板 ===== */
.control-panel {
    padding-right: 10px;
}
.control-panel .form-group {
    margin-bottom: 8px;
}
.control-panel label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.control-panel .form-control,
.control-panel .custom-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.control-panel .custom-select option {
    color: #000000;
}
.control-panel .form-control:focus,
.control-panel .custom-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.2);
    color: #fff;
}
.control-panel .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.control-panel .form-control-color {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
}
.control-panel .form-control-color::-webkit-color-swatch-wrapper {
    padding: 0;
}
.control-panel .form-control-color::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}
.control-panel .form-control-range {
    padding: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
}
.control-panel .form-control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5576c, #4facfe);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}
.control-panel .form-control-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5576c, #4facfe);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.range-value {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0 6px;
    margin-left: 8px;
}

/* ===== 开关 (自定义) ===== */
.custom-switch {
    padding-left: 0;
}
.custom-switch .custom-control-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    padding-left: 48px;
    line-height: 28px;
}
.custom-switch .custom-control-label::before {
    width: 40px;
    height: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    left: 0;
    top: 3px;
    transition: all 0.3s ease;
}
.custom-switch .custom-control-label::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #888;
    left: 3px;
    top: 6px;
    transition: all 0.3s ease;
}
.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background: linear-gradient(135deg, #f5576c, #4facfe);
    border-color: transparent;
}
.custom-switch .custom-control-input:checked~.custom-control-label::after {
    background: #fff;
    transform: translateX(18px);
}

/* ===== 按钮 ===== */
.btn-neon {
    background: linear-gradient(135deg, #f5576c, #4facfe);
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(245, 87, 108, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(245, 87, 108, 0.5);
    color: #fff;
}
.btn-neon-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    padding: 8px 22px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.btn-neon-outline:hover {
    border-color: #f5576c;
    color: #fff;
    background: rgba(245, 87, 108, 0.1);
}
.btn-group-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.btn-group-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* ===== 预览区域 ===== */
.preview-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.preview-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0a0a12;
    cursor: default;
}
.preview-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.preview-badge i {
    color: #f5576c;
    margin-right: 4px;
}

/* ===== 功能说明 ===== */
.text-with-hr {
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}
.text-with-hr span {
    background: #0a0a12;
    padding: 0 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}
.text-with-hr::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
    margin: 0;
}
.feature-list li {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}
.feature-list li i {
    color: #f5576c;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .signature-header h1 {
        font-size: 2.2rem;
    }
    .control-panel {
        padding-right: 0;
    }
    .glass-card {
        padding: 16px;
    }
    .btn-group-actions .btn {
        flex: 1 1 100%;
    }
    .preview-wrapper canvas {
        aspect-ratio: 4 / 3;
    }
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .signature-header h1 {
        font-size: 1.8rem;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .header-glow {
        width: 300px;
        height: 120px;
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 选中颜色 ===== */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.color-picker-group .color-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    min-width: 20px;
}

/* ===== 加载动画 ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer-text {
    background: linear-gradient(90deg, #f5576c, #4facfe, #00f5d4, #f5576c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* ===== 通知横幅 ===== */
.alert-note {
    background: rgba(245, 87, 108, 0.08);
    border: 1px solid rgba(245, 87, 108, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.85rem;
}
.alert-note .close {
    color: rgba(255, 255, 255, 0.3);
    text-shadow: none;
    opacity: 0.6;
}
.alert-note .close:hover {
    color: #fff;
    opacity: 1;
}
.alert-note i {
    color: #f5576c;
    margin-right: 8px;
}
