/* legal-tip.css - 法律常识揭示界面样式 */

/* 基础和容器 */
body {
    font-family: 'Noto Sans SC', sans-serif; /* 使用无衬线字体 */
    margin: 0;
    padding: 0;
    background-color: #eef1f5; /* 浅色背景 */
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* iOS状态栏样式 */
.ios-statusbar {
    height: 24px;
    background-color: rgba(255, 255, 255, 0.7); /* 浅色半透明 */
    backdrop-filter: blur(5px);
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); */ /* 移除实线 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* 添加细微底部阴影 */
}

.status-icons i {
    margin-left: 6px;
}

.tip-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-image: url('../assets/images/events/shoping.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden; /* 隐藏容器溢出 */
}

/* 背景遮罩 - 柔和效果 */
.tip-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.75); /* 白色半透明遮罩 */
    backdrop-filter: blur(3px);
    z-index: 0;
}

/* 标题 */
.tip-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50; /* 深蓝灰色 */
    text-align: center;
    margin: 20px 0 5px 0; /* 调整边距 */
    position: relative; 
    z-index: 1;
}

.tip-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #3498db; /* 蓝色 */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 内容滚动区域 */
.tip-content-scroll {
    flex: 1; /* 占据剩余空间 */
    overflow-y: auto; /* 允许内容滚动 */
    padding: 30px 20px 20px 20px; /* 增加顶部内边距，为渐变留出空间 */
    position: relative; /* 确保在遮罩上方 */
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    /* 移除之前的阴影尝试 */
}

/* 新增：顶部渐变遮罩 */
.tip-content-scroll::before {
    content: '';
    position: absolute;
    top: 0; /* 定位在滚动区域顶部 */
    left: 0;
    right: 0;
    height: 40px; /* 渐变的高度 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 10%, rgba(255, 255, 255, 0)); /* 从上方背景近似色渐变到透明 */
    z-index: 2; /* 确保在滚动内容之上 */
    pointer-events: none; /* 不影响交互 */
}

.tip-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.tip-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.tip-content-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 内容卡片 */
.tip-card {
    /* background-color: rgba(255, 255, 255, 0.95); */ /* 改回不透明 */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    line-height: 1.8;
    font-size: 15px;
    /* margin-top: 5px; */ /* 移除边距 */
}

/* 插画容器 */
.illustration-container { /* 重命名占位符类 */
    /* background-color: #f0f4f8; */ /* 移除背景色 */
    border-radius: 8px;
    /* padding: 30px; */ /* 移除内边距 */
    text-align: center;
    margin-bottom: 25px;
    /* border: 1px dashed #d0d9e0; */ /* 移除边框 */
    overflow: hidden; /* 确保图片圆角生效 */
}

.illustration-container img {
    max-width: 100%;
    height: auto;
    display: block; /* 避免图片下方留白 */
    border-radius: 8px; /* 图片也加圆角 */
}

/* 移除旧的占位符样式 */
/* 
.illustration-placeholder i {
    font-size: 48px;
    color: #a0b0c0;
    margin-bottom: 10px;
}

.illustration-placeholder p {
    font-size: 13px;
    color: #708090;
    margin: 0;
}
*/

/* 文本内容 */
.tip-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e67e22; /* 橙色 */
    margin-bottom: 12px;
}

.tip-text p,
.tip-text ul {
    margin-bottom: 15px;
    color: #444; /* 深灰色文字 */
}

.tip-text ul {
    padding-left: 20px;
}

.tip-text li {
    margin-bottom: 8px;
}

.tip-text strong {
    color: #2980b9; /* 蓝色强调 */
}

/* 法条引用 */
.law-reference {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e5e9;
}

.law-reference h4 {
    font-size: 16px;
    font-weight: 600;
    color: #16a085; /* 绿色 */
    margin-bottom: 10px;
}

.law-reference p {
    margin-bottom: 8px;
}

.law-reference a {
    color: #3498db; /* 链接蓝色 */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.law-reference a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 按钮组和按钮 */
.button-group {
    padding: 15px 20px; /* 内边距 */
    position: relative; /* 确保在遮罩上方 */
    z-index: 1;
    flex-shrink: 0; /* 防止按钮被压缩 */
    background-color: rgba(255, 255, 255, 0.8); /* 给按钮区域一个底色 */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tip-btn {
    width: 100%; /* 按钮宽度占满 */
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.tip-btn i {
    font-size: 18px;
}

.back-btn {
    background-color: #3498db; /* 主题蓝色 */
    color: #fff;
}

.back-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式 */
@media (max-width: 480px) {
    .tip-container {
        /* background-position: top center; */ /* 移动端可能需要调整背景位置 */
    }
    .tip-content-scroll {
        padding: 0 15px 15px 15px;
    }
    .tip-title {
        font-size: 24px;
        margin-top: 15px;
    }
    .tip-subtitle {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .tip-card {
        padding: 20px;
        font-size: 14px;
    }
    .tip-text h3 {
        font-size: 17px;
    }
    .law-reference h4 {
        font-size: 15px;
    }
    .law-reference a {
        font-size: 13px;
    }
    .button-group {
        padding: 10px 15px;
    }
    .tip-btn {
        padding: 10px 15px;
        font-size: 15px;
    }
} 