/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 应用容器 */
.app-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页面内容容器 */
.pages-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 页面样式 */
.page {
    display: none;
    width: 100%;
    min-height: calc(100vh - 50px);
    padding-bottom: 50px;
}

.page.active {
    display: block;
}

/* 容器样式 */
.container {
    padding: 15px;
}

/* 卡片样式 */
.weather-card, .suggestion-card, .calendar-card, .map-card, .record-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

/* 标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.title-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 天气卡片样式 */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-info {
    display: flex;
    align-items: center;
}

.location-icon {
    margin-right: 5px;
    font-size: 16px;
}

.location-text {
    font-size: 14px;
    color: #666;
}

.update-time {
    font-size: 12px;
    color: #999;
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.weather-temperature {
    flex: 1;
}

.temp {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.weather-condition {
    flex: 1;
    text-align: right;
}

.condition {
    font-size: 16px;
    color: #666;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.detail-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.detail-content {
    text-align: center;
}

.detail-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.detail-label {
    font-size: 12px;
    color: #999;
}

.detail-divider {
    width: 1px;
    height: 30px;
    background-color: #eee;
}

/* 出门建议卡片样式 */
.suggestion-card {
    display: flex;
    align-items: center;
}

.suggestion-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.suggestion-icon-wrapper {
    margin-right: 15px;
}

.suggestion-icon {
    font-size: 24px;
    color: #07c160;
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.suggestion-content {
    font-size: 14px;
    color: #666;
}

/* 日历卡片样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.current-date {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.lunar-month {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}

.calendar-controls {
    display: flex;
}

.control-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
}

.control-btn:active {
    background-color: #e5e5e5;
}

.today-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.date-str {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.calendar-week {
    font-size: 14px;
    color: #666;
}

.lunar-info {
    display: block;
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.calendar-body {
    margin-bottom: 15px;
}

.weekdays {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.weekday {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    padding: 5px 0;
}

.dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.date-item:hover {
    background-color: #f5f5f5;
}

.date-item.today {
    background-color: #07c160;
    color: #fff;
}

.date-item.other-month {
    color: #ddd;
}

.date-item.selected {
    background-color: #1890ff;
    color: #fff;
}

.solar-day {
    font-size: 14px;
    font-weight: bold;
}

.lunar-day {
    font-size: 10px;
    margin-top: 2px;
}

.jieqi-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #faad14;
    color: #fff;
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 3px;
}

.huangli-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.huangli-section {
    margin-bottom: 10px;
}

.section-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.section-content {
    font-size: 14px;
    color: #666;
}

.section-content.yi {
    color: #07c160;
}

.section-content.ji {
    color: #f5222d;
}

/* 地图页面样式 */
.map-card {
    padding: 15px;
}

.location-search-container {
    margin-bottom: 15px;
}

/* 省市区三级联动样式 */
.region-picker-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.region-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.region-select:hover {
    border-color: #4A90E2;
}

.region-select:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.region-select option {
    padding: 8px;
    font-size: 14px;
}

.search-box {
    display: flex;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    height: 40px;
    padding: 0 15px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
}

.search-btn:active {
    background-color: #06ad56;
}

.search-results {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: calc(100% - 30px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none; /* 初始隐藏 */
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:active {
    background-color: #f5f5f5;
}

.result-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.result-address {
    display: block;
    font-size: 12px;
    color: #999;
}

.map-type-controls {
    display: flex;
    margin-bottom: 10px;
}

.map-type-btn {
    flex: 1;
    height: 36px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.map-type-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.map-type-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.map-type-btn.active {
    background-color: #07c160;
    color: #fff;
    border-color: #07c160;
}

.map-wrapper {
    position: relative;
    min-height: 700px;
    height: 70vh;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#map-container {
    width: 100%;
    height: 100%;
}

/* 确保地图容器相对定位，让罗盘相对于地图定位 */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.compass-float {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    /* 移除最大和最小宽度限制，让罗盘充满地图 */
    background-color: rgba(255, 255, 255, 0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    z-index: 10;
    /* 正方形等比例 */
    aspect-ratio: 1;
    pointer-events: none;
    /* 确保罗盘大小随地图变化 */
    transition: width 0.3s ease;
}

/* 确保罗盘图片自适应充满容器 */
.compass-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    /* 确保图片在容器内居中显示 */
    margin: auto;
}

.compass-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #f5222d;
    border-radius: 50%;
    pointer-events: none;
}

.tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 4px;
}

.marker-controls {
    margin-bottom: 15px;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 10px;
}

.control-btn {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.control-btn:active {
    background-color: #e5e5e5;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.primary {
    background-color: #07c160;
    color: #fff;
    border-color: #07c160;
}

.control-btn.danger {
    background-color: #f5222d;
    color: #fff;
    border-color: #f5222d;
}

.draw-controls {
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 10px;
}

.color-picker-container, .line-width-container {
    margin-bottom: 15px;
}

.color-picker-title, .line-width-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.color-picker {
    display: flex;
    gap: 10px;
}

.color-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-item.active {
    border-color: #000;
}

.line-width-picker {
    display: flex;
    gap: 10px;
}

.line-width-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.line-width-item.active {
    border-color: #000;
}

.line-width-preview {
    margin-bottom: 5px;
}

.line-width-label {
    font-size: 12px;
    color: #666;
}

.draw-control-group {
    display: flex;
    gap: 10px;
}

/* 记录列表样式 */
.record-card {
    margin-top: 15px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.list-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.total-distance {
    font-size: 14px;
    color: #666;
}

.distance-value {
    font-weight: bold;
    color: #1890ff;
}

.empty-list {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-text {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.empty-tip {
    display: block;
    font-size: 14px;
}

.record-list {
    max-height: 300px;
    overflow-y: auto;
}

.record-item {
    padding: 15px;
    background-color: #fafafa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.record-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-content {
    margin-bottom: 10px;
}

.record-coord {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.coord-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coord-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.coord-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.record-distance {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    margin-top: 10px;
}

.distance-label {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
}

.record-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.locate-btn, .collect-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.locate-btn {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.collect-btn {
    background-color: #faad14;
    color: #fff;
    border-color: #faad14;
}

/* 底部导航栏样式 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-item:active {
    background-color: #f5f5f5;
}

.tab-item.active {
    color: #07c160;
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.tab-text {
    font-size: 10px;
}

/* 社稷页面样式 */
.upload-btn {
    display: block;
    width: 100%;
    height: 44px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

.upload-btn:active {
    background-color: #06ad56;
}

.tip {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 15px;
}

/* 社稷页样式 */
/* 页面整体背景 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 页面容器 */
.app-container {
    background: white;
    border-radius: 20px 20px 0 0;
    min-height: 100vh;
}

/* 社稷页样式 */
#temple {
    padding: 0 20px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 选择图片按钮 */
.upload-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 提示文字 */
.tip {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 图片数量统计 */
.image-count {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #667eea;
}

/* 图片列表容器 */
.image-list-container {
    margin-bottom: 20px;
}

/* 图片网格 */
.image-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* 图片项 */
.image-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* 图片包装器 */
.image-wrapper {
    width: 100%;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

/* 预览图片 */
.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 时间戳 */
.image-time-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* 图片操作按钮 */
.image-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.image-actions button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 收藏按钮 */
.favorite-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    text-align: center;
}

.favorite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

/* 删除按钮 */
.delete-btn {
    background: linear-gradient(135deg, #f5222d 0%, #fa8c16 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 34, 45, 0.4);
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    text-align: center;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 34, 45, 0.6);
}

/* 确保按钮在图片项中正确显示 */
.image-item .image-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* 确保图片项内的收藏按钮样式 */
.image-item .image-actions .favorite-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 确保图片项内的删除按钮样式 */
.image-item .image-actions .delete-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    background: linear-gradient(135deg, #f5222d 0%, #fa8c16 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 34, 45, 0.4);
}

/* 确保图片项内的按钮悬停效果 */
.image-item .image-actions .favorite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

.image-item .image-actions .delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 34, 45, 0.6);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 空状态图标 */
.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    color: #667eea;
}

/* 空状态标题 */
.empty-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 空状态提示 */
.empty-tip {
    display: block;
    font-size: 14px;
    color: #666;
}

/* 操作提示 */
.operation-tip {
    font-size: 16px;
    color: #667eea;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

/* 收藏页面样式 */
.favorite-list-container {
    margin-top: 15px;
}

.favorite-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.favorite-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.record-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
}

.record-icon {
    font-size: 20px;
    margin-right: 15px;
    color: #faad14;
}

.record-name-wrapper {
    flex: 1;
}

.record-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-body {
    padding: 15px;
}

.record-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 15px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.delete-favorite-btn {
    background-color: #f5222d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.jump-map-btn {
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.record-images {
    margin-top: 15px;
}

.images-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 图片预览模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
    }
    
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
    
    .image-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}