/* Flutter Web App Styles */

/* 基础样式 */
html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background-color: #faba72;
    background-size: 100% 100%;
}

/* Splash Screen样式 */
.contain {
    display: block;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
}

#splash {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faba72;
    transition: opacity 0.3s ease-out;
}

#splash img {
    animation: pulse 2s infinite;
}

#splash.hiding {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.modal-body {
    text-align: center;
    margin-bottom: 24px;
}

.modal-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button.cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-button.cancel:hover {
    background: #e0e0e0;
}

.modal-button.confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-button.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 微信开放标签在弹窗中的样式 */
.modal-wechat-launcher {
    position: relative;
    min-height: 44px; /* 确保有最小高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保确认按钮在有微信标签时也保持正确高度 */
.modal-button.confirm.modal-wechat-launcher {
    padding: 0; /* 移除内边距，让微信标签完全填充 */
    overflow: hidden; /* 防止内容溢出 */
}

/* 
微信开放标签template内部样式已改为内联样式：
- 完整填充按钮区域
- 文字居中对齐
- 16px粗体白色文字
*/

/* 错误弹窗样式 */
.error-modal .modal-content {
    border-left: 4px solid #ff4757;
}

.error-modal .modal-title {
    color: #ff4757;
}

.error-modal .modal-button.confirm {
    background: #ff4757;
}

.error-modal .modal-button.confirm:hover {
    background: #ff3742;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}



/* 微信浏览器原生APP横条 - 使用内联样式，这里保留注释作为参考 */
/* 
微信开放标签的template内部无法使用外部CSS，所有样式都已改为内联样式
原生横条样式与Flutter横条完全匹配：
- 高度: 45px
- 渐变背景: #667eea → #764ba2
- 圆角: 22.5px
- 位置: top:10px, left:55px, right:55px
- 字体: 主标题13px粗体，副标题11px
*/