﻿        * { margin: 0; padding: 0; box-sizing: border-box; }

        .muyuan-page { 
            padding: 15px; 
            max-width: 1200px; 
            margin: 0 auto;
            background: #fff;
            min-height: 100vh;
        }

        /* 页面头部 */
        .page-header-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .page-title { 
            font-size: 26px; 
            font-weight: bold; 
            color: #333;
            letter-spacing: 2px;
        }

        /* 创建墓园按钮 */
        .btn-create-muyuan {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            background: #ff8c00;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: background 0.25s;
        }
        .btn-create-muyuan:hover {
            background: #e67e00;
        }
        .btn-create-muyuan::before {
            content: "+";
            font-size: 16px;
            font-weight: bold;
        }

        /* 筛选栏 */
        .filter-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }
        .filter-bar .filter-btn {
            padding: 5px 14px;
            border: 1px solid #ddd;
            background: #fff;
            color: #666;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }
        .filter-bar .filter-btn.active {
            background: #ff8c00;
            color: #fff;
            border-color: #ff8c00;
        }
        .filter-bar .filter-btn:hover:not(.active) {
            border-color: #ff8c00;
            color: #ff8c00;
        }

        /* 搜索区域 */
        .search-area {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }
        .search-area select {
            padding: 5px 8px;
            border: 1px solid #ddd;
            font-size: 13px;
            outline: none;
            background: #fff;
            cursor: pointer;
        }
        .search-area input {
            width: 150px;
            padding: 5px 10px;
            border: 1px solid #ddd;
            outline: none;
            font-size: 13px;
        }
        .search-area button {
            padding: 5px 16px;
            background: #ff8c00;
            color: #fff;
            border: 1px solid #ff8c00;
            cursor: pointer;
            font-size: 13px;
        }

        /* 墓园网格 */
        .muyuan-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        /* 墓园卡片 - 左图右文 */
        .muyuan-card {
            display: flex;
            background: #fff;
            border: 1px solid #e8e8e8;
            overflow: hidden;
            transition: border-color 0.25s;
        }
        .muyuan-card:hover {
            border-color: #ff8c00;
        }

        /* 左侧照片 */
        .muyuan-card .photo-wrap {
            width: 120px;
            min-width: 120px;
            height: 160px;
            overflow: hidden;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .muyuan-card .photo-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .muyuan-card .photo-wrap .no-photo {
            width: 60px;
            height: 60px;
            opacity: 0.5;
        }

        /* 右侧信息 */
        .muyuan-card .info {
            flex: 1;
            padding: 8px 12px;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .muyuan-card .info .name {
            font-size: 15px;
            font-weight: bold;
            color: #ff8c00;
            margin-bottom: 6px;
        }
        .muyuan-card .info .detail-row {
            font-size: 12px;
            color: #333;
            line-height: 1.8;
        }
        .muyuan-card .info .detail-row span.label {
            color: #ff8c00;
        }
        .muyuan-card .info .detail-row .gray {
            color: #888;
            font-size: 11px;
        }
        .muyuan-card .info .desc {
            font-size: 11px;
            color: #888;
            margin-top: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            line-height: 1.5;
        }

        /* 祭拜按钮 */
        .muyuan-card .actions {
            margin-top: auto;
            padding-top: 6px;
        }
        .muyuan-card .actions .btn-worship {
            display: block;
            width: 100%;
            padding: 6px 0;
            background: #ff8c00;
            color: #fff;
            text-align: center;
            text-decoration: none;
            font-size: 13px;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
        }
        .muyuan-card .actions .btn-worship:hover {
            background: #e67e00;
        }

        /* 分页 */
        .pagination {
            text-align: center;
            margin-top: 25px;
            padding-bottom: 20px;
        }
        .pagination .page-info {
            display: inline-block;
            padding: 5px 12px;
            margin: 0 5px 10px 0;
            color: #666;
            font-size: 13px;
        }
        .pagination a, .pagination span {
            display: inline-block;
            padding: 5px 12px;
            margin: 0 3px;
            border: 1px solid #ddd;
            color: #666;
            text-decoration: none;
            font-size: 13px;
            background: #fff;
        }
        .pagination a:hover {
            border-color: #ff8c00;
            color: #ff8c00;
        }
        .pagination span.current {
            background: #ff8c00;
            color: #fff;
            border-color: #ff8c00;
        }
        .pagination span.page-disabled {
            color: #bbb;
            border-color: #eee;
            background: #f9f9f9;
            cursor: not-allowed;
        }

        /* ===== 平板适配 ===== */
        @media (max-width: 1024px) {
            .muyuan-grid { 
                grid-template-columns: repeat(2, 1fr); 
                gap: 12px; 
            }
            .sections-row {
                gap: 15px;
            }
        }

        /* ===== 手机适配 ===== */
        @media (max-width: 768px) {
            .sections-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .muyuan-page { padding: 10px; }
            .page-title { font-size: 20px; }
            .page-header-bar { flex-direction: column; align-items: flex-start; }

            .filter-bar { gap: 5px; }
            .filter-bar .filter-btn {
                padding: 4px 10px;
                font-size: 12px;
            }
            .search-area { 
                margin-left: 0; 
                width: 100%; 
                margin-top: 8px;
                flex-wrap: wrap;
            }
            .search-area input { 
                flex: 1; 
                width: auto;
                min-width: 100px;
            }

            .muyuan-grid { 
                grid-template-columns: 1fr; 
                gap: 10px; 
            }
            .muyuan-card .photo-wrap { 
                width: 100px; 
                min-width: 100px;
                height: 140px; 
            }
        }

        /* ===== 小屏手机 ===== */
        @media (max-width: 480px) {
            .muyuan-card .photo-wrap { 
                width: 90px; 
                min-width: 90px;
                height: 130px; 
            }
            .muyuan-card .info { padding: 6px 10px; }
            .muyuan-card .info .name { font-size: 14px; }
            .muyuan-card .info .detail-row { font-size: 11px; }
        }

        /* ===== 时空邮箱 & 最新拜访记录 并排 ===== */
        .sections-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }
        .section-box {
            border: 1px solid #e8e8e8;
            background: #fff;
            margin-top: 0;
        }
        .section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            font-size: 15px;
            font-weight: bold;
            border-bottom: 2px solid #ff8c00;
        }
        .section-title .title-icon {
            font-size: 18px;
        }
        .section-content {
            padding: 0;
        }
        .record-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .record-item {
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
        }
        .record-item:last-child {
            border-bottom: none;
        }
        .record-time {
            font-size: 12px;
            color: #999;
            margin-bottom: 4px;
        }
        .record-info {
            font-size: 13px;
            color: #333;
            line-height: 1.6;
        }
        .record-user {
            color: #ff8c00;
            font-weight: bold;
        }
        .record-action {
            color: #666;
        }
        .record-target {
            color: #333;
        }
        .record-goods {
            color: #ff8c00;
            font-weight: bold;
        }
        .record-message {
            margin-top: 5px;
            padding: 8px 12px;
            background: #fafafa;
            border-left: 3px solid #ff8c00;
            font-size: 12px;
            color: #666;
            line-height: 1.5;
        }
        .no-record {
            text-align: center;
            padding: 30px 20px;
            color: #999;
            font-size: 13px;
        }
        .mailbox-section .section-title {
            background: #fff8f0;
            color: #ff8c00;
        }
        .visit-section .section-title {
            background: #fff0f5;
            color: #e91e63;
            border-bottom-color: #f48fb1;
        }
        .record-count {
            margin-left: auto;
            font-size: 12px;
            font-weight: normal;
            color: #999;
        }
        /* 滚动区域 */
        .scroll-box {
            max-height: 320px;
            overflow: hidden;
            position: relative;
        }
        .scroll-list {
            animation: scrollDown 40s linear infinite;
        }
        .scroll-list:hover {
            animation-play-state: paused;
        }
        @keyframes scrollDown {
            0% { transform: translateY(0); }
            100% { transform: translateY(-50%); }
        }
        /* 更多链接 */
        .column-more {
            margin-left: auto;
            color: #ff8c00;
            text-decoration: none;
            font-size: 13px;
        }
        .column-more:hover {
            text-decoration: underline;
        }