/* static/css/style.css */

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    margin: 20px;
    cursor: pointer;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.back-button:hover {
    color: #2980b9;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

/* 标题 */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 400;
}

/* 表单结构 */
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}
input:focus, select:focus {
    border-color: #3498db;
    outline: none;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}

/* 分区标题 */
.form-section {
    padding-bottom: 20px;
}
.form-section-title {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3498db;
}

/* 提交区域 */
.submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}
.predict-button, .submit-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.predict-button {
    background-color: #2ecc71;
    color: white;
}
.predict-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}
.submit-button {
    background-color: #3498db;
    color: white;
}
.submit-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
.result-section {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
}

/* 页脚 */
footer {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.9rem;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* 首页气泡动画（index.html 专用） */
.bubble-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
    transition: all 0.5s ease;
}
.bubble:hover {
    transform: scale(1.1) rotateY(10deg);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.bubble-left {
    width: 280px;
    height: 280px;
    background-color: rgba(46, 204, 113, 0.8);
    left: 20%;
    animation: float-left 8s ease-in-out infinite;
}
.bubble-right {
    width: 240px;
    height: 240px;
    background-color: rgba(52, 152, 219, 0.8);
    right: 20%;
    animation: float-right 7s ease-in-out infinite;
}
@keyframes float-left {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes float-right {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}