/* 赛博朋克风格样式 */
:root {
    --primary: #FF2A6D;
    --secondary: #05D9E8;
    --accent: #FFD23F;
    --dark: #1A1A2E;
    --light: #F5F5F5;
    --neon-pink: #FF2A6D;
    --neon-blue: #05D9E8;
    --neon-yellow: #FFD23F;
    --neon-green: #01F9C6;
}

/* 基础样式 */
body {
    background: linear-gradient(135deg, var(--dark) 0%, #16213E 100%);
    color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* 按钮动画 */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neon-blue);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 217, 232, 0.3), transparent);
    transition: left 0.6s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px rgba(5, 217, 232, 0.3);
    transform: translateY(-2px);
}

/* 贺卡类型选项 */
.card-type-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(5, 217, 232, 0.3);
    position: relative;
    overflow: hidden;
}

.card-type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-yellow));
    animation: neonGlow 3s linear infinite;
}

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

.card-type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px rgba(5, 217, 232, 0.2);
    border-color: var(--neon-blue);
}

.card-type-option.active {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink), 0 0 40px rgba(255, 42, 109, 0.2);
}

.card-type-option.active::before {
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-pink), var(--neon-blue));
}

/* 贺卡预览区 */
#cardPreview {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--neon-pink);
}

#cardPreview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-yellow), var(--neon-green), var(--neon-pink));
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

#cardPreview:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px rgba(255, 42, 109, 0.2);
}

/* 贺卡内容样式 */
#cardContentWrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

#toast.show {
    animation: slideIn 0.3s ease forwards;
}

#toast.hide {
    animation: slideOut 0.3s ease forwards;
}

/* 操作面板样式 */
.bg-white {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.2);
}

/* 输入框样式 */
input, textarea, select {
    background: rgba(26, 26, 46, 0.9) !important;
    border: 1px solid var(--neon-blue) !important;
    color: var(--light) !important;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 10px var(--neon-blue) !important;
    outline: none !important;
}

/* 文本颜色 */
.text-dark {
    color: var(--light) !important;
}

.text-dark\/70 {
    color: rgba(245, 245, 245, 0.7) !important;
}

.text-dark\/50 {
    color: rgba(245, 245, 245, 0.5) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    h1 {
        font-size: 2.5rem !important;
        text-shadow: 0 0 10px var(--neon-pink);
    }

    #cardTypeContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    #cardPreview {
        max-width: 300px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* 输入框焦点样式 */
input:focus,
textarea:focus,
select:focus {
    transition: all 0.3s ease;
}

/* 贺卡内容区域样式 */
#cardTitleArea h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem !important;
}

#cardMessageArea {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cardMessageArea p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    font-size: 1.5rem !important;
    max-width: 90%;
}

#cardSignatureArea p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #cardTitleArea h3 {
        font-size: 2rem !important;
    }
    
    #cardMessageArea p {
        font-size: 1.2rem !important;
    }
    
    #cardSignatureArea p {
        font-size: 1rem !important;
    }
}