/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar h2 {
    margin-bottom: 20px;
    color: #5a67d8;
    border-bottom: 2px solid #5a67d8;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #4a5568;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: #edf2f7;
    color: #5a67d8;
    transform: translateX(5px);
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.main-content h1 {
    color: #5a67d8;
    margin-bottom: 30px;
    font-size: 2.5rem;
    animation: fadeInDown 1s ease;
}

/* 按钮样式 */
#generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#generate-btn:active {
    transform: translateY(1px);
}

/* 消息区域样式 */
#message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease;
}

.success {
    background-color: rgba(72, 187, 120, 0.2);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.5);
}

/* 页面容器样式 */
#page-container {
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    width: 100%;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-content h1 {
    color: #5a67d8;
    margin-bottom: 30px;
    font-size: 2.5rem;
    animation: fadeInDown 1s ease;
}

.page-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #4a5568;
    animation: fadeInUp 1s ease;
}

.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}