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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1c2c 0%, #2a3040 50%, #1a1c2c 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(30, 32, 46, 0.85);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(90, 95, 128, 0.3);
    position: relative;
    z-index: 1;
}

/* 标题样式 */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #4a5172;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: #c9b28f;
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    color: #a095b9;
}

/* 表单样式 */
.generator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #c9b28f;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #4a5172;
    border-radius: 4px;
    background-color: #2a2d40;
    font-size: 1rem;
    color: #e0e0e0;
}

button {
    padding: 12px 20px;
    background-color: #7a6543;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #8a754e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#generate-btn {
    grid-column: span 2;
    margin-top: 10px;
    background: linear-gradient(to right, #7a6543, #9a8563);
}

#generate-btn:hover {
    background: linear-gradient(to right, #8a754e, #b09573);
}

/* 结果样式 */
.result {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(60, 63, 84, 0.4);
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(90, 95, 128, 0.3);
}

.result h2 {
    font-size: 1.5rem;
    color: #c9b28f;
    margin-bottom: 15px;
}

.name-box {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e6d5bc;
    padding: 15px;
    margin: 10px 0 20px;
    background-color: rgba(39, 41, 58, 0.8);
    border: 2px solid #4a5172;
    border-radius: 4px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Times New Roman', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.secondary-btn {
    background-color: #4a5172;
    font-size: 0.9rem;
    padding: 8px 15px;
}

.secondary-btn:hover {
    background-color: #5a6192;
}

/* 信息部分 */
.info-section {
    padding: 20px;
    background-color: rgba(60, 63, 84, 0.4);
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid rgba(90, 95, 128, 0.3);
}

.info-section h2 {
    font-size: 1.5rem;
    color: #c9b28f;
    margin-bottom: 15px;
    border-bottom: 1px solid #4a5172;
    padding-bottom: 10px;
}

.info-section h3 {
    font-size: 1.2rem;
    color: #b0a5c9;
    margin: 20px 0 10px;
}

.info-section p {
    margin-bottom: 15px;
    color: #d0d0d0;
    line-height: 1.7;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    color: #8a85a0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .generator-form {
        grid-template-columns: 1fr;
    }

    #generate-btn {
        grid-column: span 1;
    }

    .name-box {
        font-size: 1.5rem;
    }
}

/* 复制按钮动画效果 */
.copied {
    background-color: #52734D !important;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 名称框动画效果 */
.new-name {
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { 
        background-color: rgba(39, 41, 58, 0.8);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    50% { 
        background-color: rgba(78, 82, 116, 0.9);
        box-shadow: 0 0 20px rgba(201, 178, 143, 0.5);
    }
    100% { 
        background-color: rgba(39, 41, 58, 0.8);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

.copied-name {
    animation: flash 0.3s ease-in-out;
}

@keyframes flash {
    0% { background-color: rgba(39, 41, 58, 0.8); }
    50% { background-color: rgba(82, 115, 77, 0.4); }
    100% { background-color: rgba(39, 41, 58, 0.8); }
}

/* 焦点样式 */
select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 178, 143, 0.5);
}

/* 选择选项悬停效果 */
select option:hover {
    background-color: #4a5172;
}

/* 生成按钮闪光效果 */
#generate-btn {
    position: relative;
    overflow: hidden;
}

#generate-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shineButton 3s infinite;
    pointer-events: none;
}

@keyframes shineButton {
    0% { left: -50%; }
    100% { left: 150%; }
} 