.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f7f9fc; /* Fondo ligeramente más azulado */
    position: relative;
    padding: 20px 16px 30px; /* Aumento del padding */
}

/* 页面标题样式 - 增加与导航栏的距离 */
.page-title {
    padding: 15px 5px;
    margin-top: 15px; /* 增加与导航栏的距离 */
    background-color: transparent; /* 透明背景 */
}

.title-text {
    font-size: 22px; /* 稍微调大字体 */
    font-weight: bold;
    color: #333;
    line-height: 1.3; /* 控制行高 */
    letter-spacing: 0.5px; /* 字间距 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.05); /* 轻微文字阴影 */
}

/* 消息卡片样式 */
.message-card {
    margin: 15px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%); /* 渐变背景 */
    border-radius: 16px; /* 增加圆角 */
    overflow: hidden;
    padding: 22px; /* 增加内边距 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.05); /* 更柔和的阴影 */
    border: 1px solid rgba(0,0,0,0.03); /* 细微边框 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.message-card:active {
    transform: translateY(2px); /* 点击时轻微下移 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.04); /* 点击时阴影减小 */
}

.message-header {
    margin-bottom: 15px;
}

.message-greeting {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-types {
    flex: 1;
    padding-right: 10px;
}

.message-type-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    display: block;
    margin-bottom: 4px;
}

.action-button {
    margin-top: 10px;
}

.illustration {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.write-button {
    background: linear-gradient(135deg, #DA70D6 0%, #ff6a88 100%); /* 渐变背景 */
    color: white;
    font-size: 16px;
    padding: 8px 8px;
    border-radius: 30px; /* 圆角按钮 */
    border: none;
    box-shadow: 0 6px 12px rgba(62, 99, 210, 0.25); /* 漂亮的投影 */
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.write-button::after {
    content: none; /* 去除边框 */
}

.write-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 6px rgba(62, 99, 210, 0.15);
    opacity: 0.9;
}

/* 功能卡片样式 */
.function-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    margin: 0 0 15px;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s;
}

.function-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.function-left {
    display: flex;
    align-items: center;
}

.function-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-right: 15px;
    background-color: #f1f5fe; /* 图标背景色 */
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.function-text {
    display: flex;
    flex-direction: column;
}

.function-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3;
}

.function-description {
    font-size: 13px;
    color: #999;
    display: block;
    line-height: 1.3;
}

.function-button {
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
    border: none;
    outline: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.function-button::after {
    content: none; /* 移除边框 */
}

.button-content {
    background-color: #f1f5fe; /* 浅蓝色背景 */
    color: #4f7cfe; /* 按钮文字颜色 */
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.arrow {
    margin-left: 5px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

/* 彩色按钮 */
.color-button .button-content {
    background: linear-gradient(135deg, #4f7cfe 0%, #3e63d2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(62, 99, 210, 0.2);
}

.button-hover {
    opacity: 0.9;
}

/* 卡片组样式 */
.card-group {
    margin: 15px 0;
}

/* 额外卡片组样式 */
.additional-cards {
    margin-top: 20px;
}

/* 加载状态容器 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin: 15px 0;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.loading-text {
    color: #999;
    font-size: 14px;
    margin-top: 12px;
}

/* 加载图标 - 添加旋转动画 */
.loading-container::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f7cfe;
    animation: spin 1s linear infinite;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态容器 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin: 15px 0;
    padding: 30px;
    border-radius:.14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.error-text {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.retry-button {
    background-color: #f3f5f9;
    color: #666;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
}

/* Indicadores de estado (similar a la imagen) */
.status-badge {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff5e6;
    color: #ff9800;
}

.status-success {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* Dot indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-pending {
    background-color: #ff9800;
}

.dot-success {
    background-color: #4caf50;
}

/* Botones de colores */
.green-button .button-content {
    background: linear-gradient(135deg, #28C76F 0%, #81FBB8 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(40, 199, 111, 0.25);
}

.purple-button .button-content {
    background: linear-gradient(135deg, #7367F0 0%, #CE9FFC 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(115, 103, 240, 0.25);
}

.red-button .button-content {
    background: linear-gradient(135deg, #FF6673 0%, #FFB88C 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 102, 115, 0.25);
}

.blue-button .button-content {
    background: linear-gradient(135deg, #4f7cfe 0%, #3e63d2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(62, 99, 210, 0.25);
}

.orange-button .button-content {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 106, 136, 0.25);
}