/* ===== 表单样式 ===== */
.cm-form-wrap {
    max-width: 780px;
    margin: 30px auto;
    padding: 30px 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid #e8e4de;
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
}
.cm-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0ece7;
}
.cm-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0;
    font-weight: 300;
    letter-spacing: 4px;
}
.cm-header h2::before {
    content: "🕊️ ";
    font-size: 30px;
}
.cm-header p {
    color: #999;
    font-size: 16px;
    margin: 8px 0 0;
    letter-spacing: 1px;
}
.cm-group {
    margin-bottom: 22px;
}
.cm-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 15px;
}
.cm-group .required {
    color: #e74c3c;
    margin-left: 3px;
}
.cm-input, .cm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e4de;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.cm-input:focus, .cm-textarea:focus {
    border-color: #a68b7a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(166,139,122,0.12);
}
.cm-row {
    display: flex;
    gap: 20px;
}
.cm-half {
    flex: 1;
}
.file-wrap {
    position: relative;
}
.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border: 2px dashed #d5cec5;
    border-radius: 12px;
    background: #faf8f6;
    cursor: pointer;
    transition: 0.3s;
}
.file-label:hover {
    border-color: #a68b7a;
    background: #f5f1ec;
}
.file-icon {
    font-size: 28px;
}
.file-text {
    color: #888;
    font-size: 15px;
}
#image-preview {
    margin-top: 12px;
    display: none;
    text-align: center;
}
#image-preview .preview-frame {
    width: 250px;
    height: 300px;
    margin: 0 auto;
    border: 4px solid #d5cec5;
    border-radius: 12px;
    background: #faf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#image-preview .preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#image-preview .preview-frame .placeholder-text {
    color: #ccc;
    font-size: 14px;
}
.help-text {
    font-size: 13px;
    color: #bbb;
    margin-top: 6px;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #3d2c25, #5a4036);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    letter-spacing: 2px;
    font-family: inherit;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61,44,37,0.25);
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.cm-feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
}
.cm-feedback.error {
    display: block;
    background: #fef6f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.cm-feedback.success {
    display: block;
    background: #f0f9f0;
    color: #27ae60;
    border: 1px solid #b8e6b8;
}
.cm-success {
    margin-top: 20px;
    padding: 25px;
    background: #e8f5e9;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #81c784;
    display: none;
}
.cm-success p {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    margin: 8px 0;
}
.cm-success a {
    display: inline-block;
    margin-top: 8px;
    color: #2e7d32;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(46,125,50,0.1);
    text-decoration: none;
}
@media (max-width: 768px) {
    .cm-form-wrap { padding: 20px; }
    .cm-row { flex-direction: column; gap: 0; }
    #image-preview .preview-frame { width: 200px; height: 240px; }
}

/* ===== 纪念页样式 ===== */
.memorial-page-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}
.memorial-banner {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 50px 20px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.banner-icon {
    font-size: 38px;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.memorial-banner h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 10px;
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
.memorial-banner h2 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 6px;
    margin: 0;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.banner-dates {
    font-size: 19px;
    opacity: 0.7;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}
.interactions-wrap {
    background: #fff;
    padding: 0 25px 25px;
    border-radius: 14px;
    border: 1px solid #f0ece7;
    margin-top: 20px;
}
.interactions-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 15px 0;
    border-bottom: 2px solid #f0ece7;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #3d2c25;
    line-height: 1.2;
}
.stat-icon {
    font-size: 34px;
    display: block;
    margin: 2px 0;
}
.stat-label {
    font-size: 16px;
    color: #999;
    margin-top: 2px;
}
.interactions-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 10px;
    gap: 10px;
}
.interactions-actions .btn-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}
.action-btn {
    padding: 12px 38px;
    font-size: 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.flower-btn { background: #fce8e8; color: #a65a5a; }
.flower-btn:hover:not(:disabled) { background: #fad5d5; }
.candle-btn { background: #f6edd8; color: #b88a4b; }
.candle-btn:hover:not(:disabled) { background: #efe2c8; }
.action-btn .btn-icon {
    font-size: 28px;
    line-height: 1;
}
.action-feedback {
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
    margin: 5px auto 0;
    box-sizing: border-box;
}
.action-feedback.success {
    display: block;
    background: #f0f9f0;
    color: #27ae60;
    border: 1px solid #b8e6b8;
}
.action-feedback.error {
    display: block;
    background: #fef6f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.furnace-wrap {
    background: #2c1a0e;
    padding: 20px 25px 25px;
    border-radius: 14px;
    margin: 15px 0 20px;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid #4a3222;
    position: relative;
}
.furnace-wrap::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: linear-gradient(180deg, #8B6914, #4a3222);
    border-radius: 14px 14px 0 0;
}
.furnace-wrap h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #f5d6a8;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.furnace-wrap p {
    margin: 0 0 12px;
    color: #d4a373;
    font-size: 14px;
    opacity: 0.8;
}
.furnace-body {
    background: #0d0704;
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
    border: 1px solid #4a3222;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}
.fire-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 90px;
    pointer-events: none;
}
.fire-container .flame {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin: bottom center;
}
.fire-container .flame-1 {
    left: 55px;
    width: 50px;
    height: 70px;
    background: radial-gradient(ellipse at center bottom, #fff4a0 0%, #ff8800 30%, #ff4400 60%, transparent 100%);
    animation: fireDance1 0.4s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.9;
}
.fire-container .flame-2 {
    left: 30px;
    width: 35px;
    height: 55px;
    background: radial-gradient(ellipse at center bottom, #ffcc44 0%, #ff6600 40%, #cc3300 70%, transparent 100%);
    animation: fireDance2 0.5s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.85;
}
.fire-container .flame-3 {
    left: 75px;
    width: 40px;
    height: 60px;
    background: radial-gradient(ellipse at center bottom, #ffdd55 0%, #ff7700 35%, #cc3300 65%, transparent 100%);
    animation: fireDance3 0.45s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.88;
}
.fire-container .flame-4 {
    left: 15px;
    width: 25px;
    height: 40px;
    background: radial-gradient(ellipse at center bottom, #ffaa33 0%, #ff5500 40%, #cc3300 70%, transparent 100%);
    animation: fireDance4 0.55s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.7;
}
.fire-container .flame-5 {
    left: 100px;
    width: 28px;
    height: 42px;
    background: radial-gradient(ellipse at center bottom, #ffbb44 0%, #ff6600 40%, #cc3300 70%, transparent 100%);
    animation: fireDance5 0.48s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.7;
}
.fire-container .flame-6 {
    left: 45px;
    width: 30px;
    height: 48px;
    background: radial-gradient(ellipse at center bottom, #ffdd66 0%, #ff7700 35%, #cc3300 65%, transparent 100%);
    animation: fireDance2 0.52s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.75;
}
.fire-container .flame-7 {
    left: 85px;
    width: 22px;
    height: 35px;
    background: radial-gradient(ellipse at center bottom, #ff9922 0%, #ff5500 40%, #cc3300 70%, transparent 100%);
    animation: fireDance4 0.58s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.65;
}
.fire-container .flame-core {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: radial-gradient(ellipse at center bottom, #ffffff 0%, #ffdd44 40%, #ff8800 70%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: corePulse 0.3s infinite alternate ease-in-out;
    filter: blur(1px);
    opacity: 0.9;
}
@keyframes fireDance1 {
    0% { transform: scaleY(1) translateX(0) rotate(-2deg); opacity: 0.9; }
    100% { transform: scaleY(1.2) translateX(4px) rotate(2deg); opacity: 1; }
}
@keyframes fireDance2 {
    0% { transform: scaleY(1) translateX(0) rotate(2deg); opacity: 0.85; }
    100% { transform: scaleY(1.15) translateX(-3px) rotate(-2deg); opacity: 0.95; }
}
@keyframes fireDance3 {
    0% { transform: scaleY(1) translateX(0) rotate(0deg); opacity: 0.88; }
    100% { transform: scaleY(1.25) translateX(5px) rotate(3deg); opacity: 1; }
}
@keyframes fireDance4 {
    0% { transform: scaleY(1) translateX(0) rotate(-1deg); opacity: 0.7; }
    100% { transform: scaleY(1.1) translateX(-4px) rotate(1deg); opacity: 0.85; }
}
@keyframes fireDance5 {
    0% { transform: scaleY(1) translateX(0) rotate(1deg); opacity: 0.7; }
    100% { transform: scaleY(1.12) translateX(3px) rotate(-1deg); opacity: 0.85; }
}
@keyframes corePulse {
    0% { transform: translateX(-50%) scaleY(1); opacity: 0.9; }
    100% { transform: translateX(-50%) scaleY(1.3); opacity: 1; }
}
.furnace-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: radial-gradient(ellipse at center bottom, rgba(255,120,30,0.5) 0%, rgba(255,80,0,0.25) 40%, transparent 70%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    animation: glowPulse 1.2s infinite alternate;
}
@keyframes glowPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
.upload-file-btn {
    padding: 8px 22px;
    background: #4a3222;
    color: #f5d6a8;
    border: 1px solid #6b4a32;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
    font-family: inherit;
    margin-top: 10px;
}
.upload-file-btn:hover {
    background: #6b4a32;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-item {
    background: rgba(42, 26, 14, 0.8);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #4a3222;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #d4a373;
    flex-wrap: wrap;
}
.file-item .file-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item .file-status {
    font-size: 12px;
    color: #888;
}
.file-item .file-status.burned {
    color: #e74c3c;
}
.file-item .file-status.active {
    color: #27ae60;
}
.file-item .file-pickup {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.file-item .file-pickup input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #4a3222;
    border-radius: 4px;
    background: #1a0e06;
    color: #f5d6a8;
    font-size: 13px;
    font-family: inherit;
    text-align: center;
    letter-spacing: 2px;
}
.file-item .file-pickup input::placeholder {
    color: #555;
}
.file-item .file-pickup .pickup-btn {
    padding: 4px 12px;
    background: #6b4a32;
    color: #f5d6a8;
    border: 1px solid #8B6914;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: 0.3s;
}
.file-item .file-pickup .pickup-btn:hover {
    background: #8B6914;
}
.file-item .file-pickup .pickup-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.file-item .file-pickup .pickup-result {
    font-size: 13px;
    margin-left: 4px;
}
.file-item .file-pickup .pickup-result.success {
    color: #27ae60;
}
.file-item .file-pickup .pickup-result.error {
    color: #e74c3c;
}
.burn-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 3px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
    font-family: inherit;
}
.burn-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: scale(1.05);
}
.burn-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
.burn-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto;
    display: none;
}
.burn-container canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}
.memorial-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 35px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0ece7;
    margin-bottom: 20px;
}
.memorial-photo {
    text-align: center;
    margin-bottom: 20px;
}
.memorial-photo .photo-frame {
    width: 250px;
    height: 300px;
    margin: 0 auto;
    border: 4px solid #d5cec5;
    border-radius: 12px;
    background: #faf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.memorial-photo .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.change-avatar-btn {
    display: block;
    margin: 10px auto 0;
    padding: 6px 20px;
    background: #f0ece7;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: 0.3s;
    font-family: inherit;
}
.change-avatar-btn:hover {
    background: #e0d9d1;
    transform: translateY(-1px);
}
.memorial-section {
    margin: 22px 0;
    padding: 18px 22px;
    background: #fcfbf9;
    border-radius: 12px;
    border-left: 4px solid #a68b7a;
}
.memorial-section h3 {
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #ede9e4;
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-weight: 700;
}
.section-content {
    line-height: 1.5;
    font-size: 16px;
    color: #444;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
}
.section-content p {
    margin: 0 0 4px 0;
    padding: 0;
}
.section-content br {
    display: none;
}
.memorial-footer {
    margin: 25px 0 10px;
    padding: 16px;
    text-align: center;
    background: #f8f6f3;
    border-radius: 12px;
    font-size: 16px;
    color: #666;
    border: 1px solid #ede9e4;
}
.interactions-message {
    background: #faf8f6;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 18px 0;
}
.interactions-message h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #2c3e50;
}
.interactions-message input,
.interactions-message textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0d9d1;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}
.interactions-message textarea {
    min-height: 70px;
    resize: vertical;
}
.message-btn {
    background: #3d2c25;
    color: #fff;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}
.message-btn:hover { background: #5a4036; }
.msg-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-size: 14px;
}
.msg-feedback.error {
    display: block;
    background: #fef6f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.msg-feedback.success {
    display: block;
    background: #f0f9f0;
    color: #27ae60;
    border: 1px solid #b8e6b8;
}
.msg-list { margin-top: 18px; }
.msg-list h4 {
    border-bottom: 2px solid #f0ece7;
    padding-bottom: 10px;
    margin-bottom: 14px;
    font-size: 16px;
    color: #2c3e50;
}
.msg-list ul { list-style: none; padding: 0; }
.msg-list li {
    background: #fcfbf9;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 10px;
    border-left: 4px solid #c4b5a8;
    transition: background 0.2s;
}
.msg-list li .msg-admin-actions {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
}
.msg-list li .msg-admin-actions button {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
    font-size: 12px;
}
.msg-list li .msg-admin-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.msg-list li .msg-admin-actions .delete-msg { color: #e74c3c; }
.msg-list li .msg-admin-actions .pin-msg { color: #f39c12; }
.msg-list li .msg-admin-actions .unpin-msg { color: #f39c12; }
.msg-list li.msg-item-admin {
    color: #c0392b !important;
    border-left-color: #c0392b !important;
    background: #fef6f5 !important;
}
.msg-list li.msg-item-pinned {
    border-left-color: #f39c12 !important;
    background: #fef9e7 !important;
}
.msg-list li strong { margin-right: 10px; color: #3d2c25; }
.msg-list li p { margin: 6px 0 0; font-size: 15px; color: #555; }
.msg-time { font-size: 12px; color: #bbb; }
.msg-ip { font-size: 11px; color: #999; margin-left: 8px; font-family: monospace; }
.msg-location { font-size: 11px; color: #888; margin-left: 4px; }
.no-msg {
    color: #ccc;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}
.msg-pagination {
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #f0ece7;
}
.msg-pagination .page-link {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 3px;
    background: #f0ece7;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.2s;
}
.msg-pagination .page-link:hover {
    background: #e0d9d1;
    text-decoration: none;
}
.msg-pagination .page-current {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 3px;
    background: #3d2c25;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}
.msg-pagination .page-disabled {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 3px;
    color: #ccc;
    font-size: 14px;
}
#cm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
#cm-modal .modal-box {
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 20px;
    max-width: 480px;
    width: 92%;
    max-height: 92%;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    position: relative;
}
#cm-modal .modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d2c25, #8B6914, #3d2c25);
    border-radius: 20px 20px 0 0;
}
#cm-modal .modal-box h3 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0ece7;
}
#cm-modal .modal-box h3 .modal-icon {
    margin-right: 8px;
}
#cm-modal .modal-box .modal-desc {
    color: #666;
    font-size: 15px;
    margin: 0 0 16px;
    line-height: 1.6;
    text-align: center;
}
#cm-modal .modal-box .modal-hint {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 4px 0 12px;
    padding: 6px 12px;
    background: #f8f6f3;
    border-radius: 6px;
}
#cm-modal .modal-box .modal-field {
    margin-bottom: 14px;
}
#cm-modal .modal-box .modal-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
}
#cm-modal .modal-box input[type="password"] {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e8e4de;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
    background: #fff;
}
#cm-modal .modal-box input[type="password"]:focus {
    border-color: #a68b7a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(166,139,122,0.12);
}
#cm-modal .modal-box .submit-btn {
    width: 100%;
    padding: 12px;
    background: #3d2c25;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 6px;
    font-family: inherit;
    transition: 0.3s;
    letter-spacing: 1px;
}
#cm-modal .modal-box .submit-btn:hover {
    background: #5a4036;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61,44,37,0.2);
}
#cm-modal .modal-box .submit-btn-success {
    background: #27ae60;
}
#cm-modal .modal-box .submit-btn-success:hover {
    background: #219a52;
}
#cm-modal .modal-box .close-btn {
    margin-top: 14px;
    background: #e8e4de;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#cm-modal .modal-box .close-btn:hover {
    background: #d5cec5;
}
#cm-modal .modal-box .payment-qr {
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    display: block;
    border: 2px solid #eee;
    border-radius: 10px;
}
#cm-modal .modal-box .size-hint {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 4px 0 12px;
    padding: 6px 12px;
    background: #f8f6f3;
    border-radius: 6px;
}
#cm-modal .modal-box .modal-result {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
#cm-modal .modal-box .modal-result.success {
    background: #f0f9f0;
    color: #27ae60;
}
#cm-modal .modal-box .modal-result.error {
    background: #fef6f5;
    color: #c0392b;
}
#cm-modal .modal-box .payment-section {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid #f0ece7;
}
#cm-modal .modal-box .payment-section .payment-text {
    color: #27ae60;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    margin-bottom: 8px;
}
#cm-modal .modal-box .payment-section .payment-text .fee-amount {
    font-size: 28px;
    color: #e74c3c;
    font-weight: 700;
}
@media (max-width: 768px) {
    .memorial-banner h1 { font-size: 24px; letter-spacing: 6px; }
    .memorial-banner h2 { font-size: 30px; letter-spacing: 4px; }
    .memorial-photo .photo-frame { width: 200px; height: 240px; }
    .interactions-actions .btn-group { flex-direction: column; align-items: center; }
    .action-btn { width: 100%; max-width: 220px; justify-content: center; }
    .memorial-card { padding: 18px; }
    .interactions-stats { gap: 30px; }
    .file-item { flex-direction: column; align-items: stretch; }
    .file-item .file-pickup { margin-left: 0; flex-wrap: wrap; }
    #cm-modal .modal-box { padding: 24px 20px; }
    .stat-number { font-size: 30px; }
    .stat-icon { font-size: 28px; }
    .action-btn { font-size: 17px; }
}