/* archive_detail.css 完整样式，全站max‑width:1500px对齐，包含PC/平板/手机响应式 */

.archive-detail-wrap {
    width: 100%;
    max-width: 1500px;
    margin: 24px auto;
    display: flex;
    /* 2026-11-21：与祝福卡片页 .page-wrapper 的两栏间距对齐（原 20px） */
    gap:27px;
}
/* 当缅怀档案：无侧边栏，主内容占满整行 */
.archive-detail-wrap.no-sidebar{
    width:100%;
}

.archive-page {
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
  width: 98%;
  max-width: 1500px;
}

/* 内容+侧边栏的容器 */
.moe-container {
  display: flex;
  gap: 27px;
  width: 100%;
  margin: 0 auto;
}

.archive-main-content{
    display: flex;
    flex-direction: column;
    flex: 1; /* 占据剩余全部宽度 */
}
.aright-sidebar{
    width: 27%;
    flex-shrink: 0;
    box-sizing: border-box; /* 与祝福卡片页 .aright-sidebar 保持同一套盒模型 */
}
.sidebar-sticky{
    position:sticky;
    top:20px;
    display:flex;
    flex-direction:column;
    /* 2026-11-21：这里原先是 gap:16px，但 .a-module 自身已带 margin-bottom:17px，
       两者叠加后模块间距变成 33px，比祝福卡片页侧栏宽一倍。去掉 gap 回到 17px。 */
    gap:0;
}

/* =========头部Banner卡片：头像+标题+按钮，统一粉色边框+阴影========= */
.archive-top-banner{
    display:flex;
    gap:24px;
    align-items:center;
    flex-wrap:wrap;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(237,59,146,0.12);
    padding:24px;
    margin-bottom:24px;
    box-shadow: var(--shadow-card);
    border: 1px solid #f9ccd7;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 2026-11-21：容器本身不可点，全站规范是「hover 不换阴影、不上浮」。 */
.archive-top-banner:hover {
  box-shadow: var(--shadow-card);
}
/*top头像*/
.archive-avatar-box img,
.archive-avatar-box .archive-default-avatar{
    width:110px;
    height:110px;
    border-radius:50%;
    border:2px solid #f9ccd7;  /*和网站主题粉色保持一致*/
    transition: transform 0.3s ease;
}
.archive-avatar-box img{
    object-fit:cover;
}
.archive-avatar-box .archive-default-avatar{
    background:#ed3b92;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:44px;
}
/*鼠标悬浮放大效果*/
.archive-avatar-box img:hover,
.archive-avatar-box .archive-default-avatar:hover{
    transform: scale(2.12);
}
/*top头像结束*/
.archive-top-info{
    flex:1;
    /* 2026-11-21：右侧「分享 + 送礼」一列是 flex-shrink:0，实测会吃掉约 400px，
       把这块压到 298px —— 于是 4 个操作按钮被挤成两行字。
       给一个下限后，空间不够时由 .archive-top-banner 的 flex-wrap 把右列换到下一行，
       而不是继续压扁标题和按钮。 */
    min-width:280px;
}
.archive-title{
    margin:0 0 16px 0;
    font-size:24px;
    color:#c82470;
}
.memorial-page-badge{
    display:inline-block;
    background:#fae8e8;
    color:#b83030;
    padding:4px 12px;
    border-radius:8px;
    margin:0 0 16px 0;
}
.archive-btn-group{
    display:flex;
    gap:6px;
    /* 2026-11-21：站长要求四个操作按钮必须**一行**显示。
       做法是「按钮本体收紧 + 右侧分享/送礼列收窄」，而不是让按钮折行。
       flex-wrap 保留为兜底：极端窄屏（如 768 以下）才不会横向溢出。 */
    flex-wrap:wrap;
    min-width:0;
}
.btn-archive-edit{
    padding:7px 9px;
    font-size:13px;
    line-height:1.2;
    background:#ed3b92;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    flex:0 0 auto;
    white-space:nowrap;
}
.btn-archive-back{
    padding:7px 9px;
    font-size:13px;
    line-height:1.2;
    background:#888e99;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    flex:0 0 auto;
    white-space:nowrap;
}

/* =========倒计时模块========= */
.archive-countdown-block{
    /* 2026-11-21：padding / 底色原先是 PHP 里的行内 style，优先级高过这里，
       手机断点的 padding 完全压不下去。迁回 CSS 后桌面取值不变，窄屏才收得住。 */
    background:#fff7fb;
    border-radius:16px;
    box-shadow:0 3px 12px rgba(237,59,146,0.12);
    padding:22px 16px;
    text-align:center;
    margin-bottom:24px;
    box-shadow: var(--shadow-card);
    border: 1px solid #f9ccd7;
    transition: all 0.3s ease;
    box-sizing:border-box;
}
.archive-countdown-block:hover {
  /* 2026-11-21：容器本身不可点，与全站其它版块一致——不上浮、不换阴影 */
  box-shadow: var(--shadow-card);
}

.archive-countdown-block h3{
    margin:0 0 10px 0;
    color:#c82470;
}
.countdown-box{
    font-size:26px;
    color:#c82470;
    font-weight:bold;
}


/* =========档案信息卡片：保留原有视觉，只修布局变形 ========= */

.archive-card-box {
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(237,59,146,0.12);
    padding:24px;
    margin-bottom:24px;
    box-shadow: var(--shadow-card);
    border: 1px solid #f9ccd7;
    transition: all 0.3s ease;
}

.archive-card-box:hover {
    /* 2026-11-21：容器本身不可点，取消上浮，与全站统一 */
    box-shadow: var(--shadow-card);
}

.archive-grid-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px 20px;
    margin-bottom:16px;
}

/* 只作用于网格内的字段行，不影响备注行 */
.archive-grid-row .archive-item {
    display:flex;
    align-items:center;
    gap:12px;
}

.archive-grid-row .archive-item label {
    min-width:140px;
    flex-shrink:0;
    font-size:14px;
    color:#666;
    margin:0;
}

.archive-grid-row .archive-value {
    font-size:15px;
    flex:1;
}

/* 备注/寄语行：恢复普通上下结构，不再受 flex 影响 */
.archive-card-box > .archive-item {
    display:block;
    margin-top:4px;
}

.archive-card-box > .archive-item label {
    display:block;
    font-size:14px;
    color:#666;
    margin-bottom:4px;
}

.archive-divider {
    border:0;
    border-bottom:1px solid #f1d8e4;
    margin:20px 0;
}

.archive-remark-block {
    background:#fcf7fa;
    padding:16px;
    border-radius:16px;
    white-space:pre-wrap;
    text-indent:0;
    line-height:1.6;
    min-height:80px;
}

.archive-time-text {
    margin-top:12px;
    font-size:13px;
    color:#777;
    text-align:right;
}

/* =========手机适配 ========= */
@media (max-width:768px) {
    .archive-grid-row {
        grid-template-columns:1fr;
        gap:12px;
        margin-bottom:12px;
    }

    /* 手机端：标签在左、内容在右，单行横向排列，节省纵向空间 */
    .archive-grid-row .archive-item {
        flex-direction:row;
        align-items:flex-start;
        gap:10px;
    }

    .archive-grid-row .archive-item label {
        min-width:0;
        flex:0 0 92px;
        margin-bottom:0;
        font-size:13px;
        color:#9a8f97;
        line-height:1.6;
        white-space:nowrap;
    }

    .archive-grid-row .archive-value {
        flex:1;
        min-width:0;
        font-size:15px;
        color:#333;
        line-height:1.6;
        word-break:break-word;
    }

    .archive-card-box {
        padding:16px;
    }
}

/* ========== 档案相册模块 ========== */
.archive-photo-section {
    /* 2026-11-21：与档案信息卡 / 倒计时区块的 24px 统一，原来 30px */
    margin: 0 0 24px;
}

/* 和页面其他卡片完全统一，直接沿用现有卡片类 */
.archive-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: all 0.3s ease;
}

.archive-card:hover {
    /* 2026-11-21：容器本身不可点，取消上浮，与全站统一 */
    box-shadow: var(--shadow-card);
}


.archive-photo-title {
    font-size: 18px;
    font-weight: bold;
    color: #c22b78;
    margin:0 0 16px 0;
    border-left: 4px solid #f472b6;
    padding-left: 10px;
}

.archive-photo-empty {
    padding:24px;
    text-align: center;
    background: #fdf2f8;
    border-radius: 12px;
    color: #996b84;
}

.archive-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.photo-item {
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f7f7f7;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式 */
@media (max-width: 992px) {
    .archive-photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .archive-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*相册翻页CSS*/
.btn-page{
    display:inline-block;
    padding:6px 16px;
    margin:0 4px;
    border:1px solid #ff69b4;
    color:#ff69b4;
    border-radius:8px;
    text-decoration:none;
}
.btn-page:hover{
    background:#ff69b4;
    color:#fff;
}
.photo-page-btn{
    border: 1px solid #bbb;
    background:#f8f8f8;
    border-radius:6px;
    min-width:36px;   /*缩小宽度*/
    height:36px;      /*缩小高度*/
    font-size:15px;   /*缩小字体*/
    margin:0 3px;
    cursor:pointer;
    padding:0 8px;
}
.photo-page-btn.active{
    background:#ff4499;
    color:#ffffff;
    border-color:#ff4499;
}
.photo-page-btn:disabled{
    opacity:0.35;
    cursor:not-allowed;
}





/* =========留言祝福模块========= */
/* 3. 留言板样式 */
.comment-section {
    align-items: center;
    margin: 0 0 20px 0; /* 水平居中 */
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 1070px; /* 限制最大宽度但不影响flex布局 */
    border: 1px solid #f9ccd7;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.comment-section:hover {
    background-color: #ffffff;
    /* 容器本身不可点：阴影与常态一致（2026-11-20 全站统一）
       2026-11-21：残留的 translateY(-3px) 已删，留言板不再跟着鼠标浮动。 */
    box-shadow: var(--shadow-card);
}

.comment-section h2 {
    font-size: 1.9em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(255, 123, 156, 0.15);
}

/* 留言表单 */
.comment-form {
    margin-bottom: 25px;
    padding: 0 10px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1.05em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 85%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 2px solid #ffccd5;
    border-radius: 12px;
    background: #fff9fb;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
    background: #fff;
}

.comment-form input:hover,
.comment-form textarea:hover {
    background: #fff;
    border-color: #ff85a2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.comment-form button {
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    box-shadow: 0 5px 18px rgba(255, 107, 107, 0.5);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    width: auto;
    font-size: 1.05em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7043);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
}

/* 4. 评论与回复样式 */
.comment {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #ffccd5;
    border-radius: 18px;
    /* 2026-11-20：原来是模板遗留的红+紫双色投影，统一改为版块阴影令牌 */
    box-shadow: var(--shadow-card);
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 留言条目本身不可点：不再上浮 */
.comment:hover {
    box-shadow: var(--shadow-card);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.comment-header span {
    font-weight: 600;
    margin: 0;
    color: #333;
    font-size: 1.05em;
}

.comment-header time {
    color: #666;
    margin: 0;
    font-size: 0.95em;
    opacity: 0.9;
}

.comment-content {
    line-height: 1.7;
    padding: 0 5px;
    color: #444;
    font-size: 1.02em;
    margin-bottom: 12px;
}

/* 回复按钮 */
.reply-btn {
    position: relative;
    margin-top: 12px;
    padding: 9px 22px;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    color: white;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin-left: 0;
    font-size: 0.98em;
}

.reply-btn:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 2;
}

.reply-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(45deg, #ff5252, #ff7043);
}

.reply-btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

.reply-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.reply-btn::after {
    content: '💬';
    margin-left: 8px;
    font-size: 1em;
    vertical-align: middle;
}

/* 回复表单 */
.reply-form {
    width: 93%;
    display: none;
    margin-top: 15px;
    text-align: left;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7), 
                0 0 25px rgba(255,107,107,0.6), 
                0 0 45px rgba(165,99,233,0.3);
    border: none;
    background: #fff;
    border-radius: 20px;
    padding: 22px 25px;
    margin: 15px 0 0;
    position: relative;
    z-index: 1;
}

.reply-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: -1;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #fbd16a, #78e08f, #6c5dd3, #a563e9);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    filter: blur(12px);
    opacity: 0.8;
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    margin: 12px 0;
    padding: 12px 18px;
    border: 2px solid #ffccd5;
    border-radius: 15px;
    background: #fff9fb;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.reply-form input:focus,
.reply-form textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
    border-color: #ff69b4;
}

.reply-form button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
}

.reply-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff7043);
}

/* 回复内容样式 */
.reply {
    margin: 17px 0 0 20px;
    border: 1px solid #ff69b4;
    padding-left: 10px;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* 5. 头像样式 */
.comment-header .comment-avatar {
    flex-shrink: 0;
    margin-right: 10px;
}

.comment-avatar .avatar {
    width: 40px;
    height: 40px;
    border: 3px solid #ffccd5;
    object-fit: cover;
    border-radius: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-avatar .avatar:hover {
    transform: scale(2.2);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
}

.reply-avatar .avatar {
    width: 36px;
    height: 36px;
    margin: 7px;
    border-color: #f0c0d0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #ff69b4;
    color: white;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .comment-section {
        width: 100%;
        padding: 15px;
    }
    .reply-form {
        width: 100%;
    }

    /* 新增提交按钮在手机端的样式 */
    .comment-form button {
        padding: 10px 20px;
        background: linear-gradient(45deg, #ff6b6b, #ff8e53);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        width: 27%;
    }
}



/* 模态框背景 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 确保最上层 */
}

/* 模态框内容 */
.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;/*350px*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.modal-close:hover {
    color: #ff69b4;
}

/* 图标 */
.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ff69b4;
}

/* 提示文本 */
.modal-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

/* 按钮 */
.modal-btn {
    padding: 8px 20px;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.modal-btn:hover {
    background-color: #e60073;
}

/* =========侧边栏模块基础样式（沿用网站原有）========= */
.a-module {
  background: #ffffff;
  border: 2px solid #f9ccd7;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 17px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position:relative; /*给内部绝对定位作为参照物，关键修复*/
  box-sizing:border-box; /*防止padding撑大宽度，解决横向溢出变形*/
}
/* 模块悬停效果：容器本身不可点，2026-11-20 起不再上浮、不再换阴影 */
.a-module:hover {
  box-shadow: var(--shadow-card);
}
/* 模块标题 */
.a-module-title {
  font-size: 18px;
  color: #ff7a93;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px dashed #f9ccd7;
  transition: transform 0.3s ease;
  position:relative; /*限定装饰线在标题内部*/
}
/* 标题装饰 */
.a-module-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: #ff6b6b;
}
.a-module-title:hover {
  transform: scale(1.05);
}
/* 登录表单样式 */
.alogin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aform-group {
  width: 100%;
}
.aform-group input {
  width: 90%;
  padding: 10px 12px;
  border: 1px solid #f0e6e6;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing:border-box;
}
.aform-group input:focus {
  border-color: #f9ccd7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}
/* 验证码区域 */
.captcha-group {
  display: flex;
  gap: 10px;
}
#captcha-img {
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  font-weight: bold;
  letter-spacing: 3px;
}
/* 登录按钮 */
.alogin-btn {
  width: 100%;
  padding: 10px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  box-sizing:border-box;
}
.alogin-btn:hover {
  background: #ff4a4a;
}
/* 注册链接 */
.aregister-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}
.aregister-link:hover {
  color: #ff6b6b;
  text-decoration: underline;
}
/* 用户信息区域 */
.auser-info {
  text-align: center;
  padding: 10px 0;
}
.auser-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 4px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: linear-gradient(to bottom, #fff, #fff), linear-gradient(135deg, #ff7a93, #ffb6c1);
  box-shadow: 0 5px 12px rgba(255, 122, 147, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auser-avatar:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
}
.auser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.afont-bold {
  text-align: center;
  margin: 0;
  font-size: 17px;
}
/* 分类列表样式（礼物条目容器） */
.acategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: auto 17px;
  box-sizing:border-box;
}
.acategory-item {
  padding: 8px 15px;
  background-color: #ffe4eb;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(255, 122, 147, 0.2);
  text-decoration: none;
  margin: 3px;
  box-sizing:border-box;
}
.acategory-item:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.05);
}
/* 列表样式 */
.a-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.a-module-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #f9ccd7;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
}
.a-module-list li:last-child {
  border-bottom: none;
}
.a-module-list li:hover {
  background-color: rgba(255, 238, 245, 0.4);
  padding-left: 8px;
}


.asubcategory {
  font-size: 12px;
  color: #666;
}

/* 加载中样式 */
.loading {
  text-align: center;
  color: #666;
  padding: 10px 0;
}
/*右侧广告*/
.acategory-gg {
  background: #ffffff;
  border: 2px solid #f9ccd7;
  border-radius: 10px;
  padding: 1px;
  margin-bottom: 17px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  /* 新增：让容器成为图片的参考基准 */
  position: relative;
  overflow: hidden; /* 超出部分隐藏 */
}

/* 新增：图片自适应样式 */
.acategory-gg img {
  display: block; /* 去掉图片默认的行内空白 */
  width: 100%; /* 宽度铺满容器 */
  height: auto; /* 高度自动，保持比例 */
  max-width: 100%; /* 最大宽度不超过容器 */
  border-radius: 6px; /* 可选：和容器圆角呼应，更美观 */
}

/* 可选：a标签也铺满，点击区域更大 */
.acategory-gg a {
  display: block;
  width: 100%;
}

/* 模块悬停效果：广告容器本身不可点，2026-11-21 起不再上浮（全站统一） */
.acategory-gg:hover {
  box-shadow: var(--shadow-card);
}

/*右侧广告结束*/

/*右侧CSS样式结束 */



/* 创建人提示小字 */
.archive-creator-tip {
    font-size: 13px;
    color:#888;
    margin:7px 17px;
}
/* 2026-11-21：右侧「帮TA扩散 + 送礼物」整列限宽。实测无限制时它要 399px，
   把左侧标题区压到 298px，四个操作按钮只能排两行。收窄到 34% 后
   左侧约 435px，四个按钮可以一行放下；组内按钮字号同步微调以免挤爆。 */
.archive-side-col{
    max-width:36%;
}
/* 右侧送礼按钮容器，自动靠右对齐 */
.archive-gift-btn-group{
    margin-left:auto;
    display:flex;
    gap:10px;
    align-items:center;
    flex-shrink:0;
}
.gift-free-btn{
    background:#ffb6c1;
    color:#333;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}
.gift-pay-btn{
    background:#e94e8b;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}



/*礼物弹窗样式*/

.modal{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    z-index:999;
    /* 默认隐藏 */
    display:none;
    align-items:flex-start;/*垂直不靠最中间，靠上方*/
    justify-content:center;
    padding-top:80px;/*距离顶部80px，实现正中偏上效果*/
}
/*弹窗激活时显示*/
.modal.show{
    display:flex;
}
.modal-content{
    width: 460px;
    background: #fff;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(237, 59, 146, 0.35);
    padding: 20px;
    margin: 5% 35%;
}
.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}
#close-gift-modal{
    font-size:24px;
    cursor:pointer;
    color: #666;
}

.gift-record-block{
    background:#fff;
    border:1px solid #f8c6e0;
    border-radius:10px;
    padding:16px;
    margin-top:20px;
}
/* 2026-11-06：心意列表重排——首字头像 + 一行信息（昵称/游客/礼物/积分标签）+ 物语 + 时间 */
.gift-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 0;
    border-bottom:1px solid #f4e4ee;
    width: 100%;
}
.gift-avatar{
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:linear-gradient(135deg,#ffd7e7,#ffc0da);
    color:#c72e6e;
    font-size:15px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    user-select:none;
}
.gift-body{flex:1;min-width:0;}
.gift-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;color:#333;}
.gift-name{font-weight:bold;color:#ed3b92;}
.gift-icon{color:#666;}
.gift-guest{
    font-style:normal;
    font-size:11px;
    line-height:16px;
    color:#999;
    background:#f4f4f4;
    border-radius:8px;
    padding:0 6px;
}
.gift-cost{
    font-style:normal;
    font-size:11px;
    line-height:16px;
    color:#e60073;
    background:#ffeaf4;
    border:1px solid #ffd0e4;
    border-radius:8px;
    padding:0 6px;
    white-space:nowrap;
}
.gift-msg{margin:4px 0 0;color:#555;}
.gift-time{font-size:12px;color:#999;margin-top:4px;}
.gift-item-extra{display:none;}
.gift-item-extra.is-show{display:flex;}
.gift-expand{
    display:block;
    width:100%;
    margin-top:10px;
    padding:8px 0;
    background:#fff;
    border:1px dashed #f3b6d2;
    border-radius:10px;
    color:#c72e6e;
    font-size:13px;
    cursor:pointer;
}
.gift-expand:hover{background:#fff6fa;}
.gift-empty{padding:6px 0 2px;text-align:center;}
.gift-empty-btn{
    margin-top:8px;
    padding:7px 18px;
    border:none;
    border-radius:16px;
    background:#ed3b92;
    color:#fff;
    font-size:13px;
    cursor:pointer;
}
.gift-empty-btn:hover{background:#d92f80;}
.empty-tip{color: #666;text-align:center;padding:15px 0;}

.archive-gift-btn-group{
    display:flex;
    gap:12px;/*按钮之间间距*/
    align-items:center;
    /* 2026-11-21：整组允许换行，配合 .archive-side-col 的 max-width，
       不再靠无限撑宽去挤占左侧标题 / 操作按钮的空间。 */
    flex-wrap:wrap;
    justify-content:flex-end;
}
.gift-btn{
    border:none;
    border-radius:8px;
    /* 2026-11-21：右侧列收到 34%（约 315px）后，三个礼物按钮要能在这一行内排开，
       字号与内边距各收一档（14px/9-16 → 11.5px/6-9）。 */
    padding:6px 9px;
    font-size:11.5px;
    line-height:1.2;
    cursor:pointer;
    transition:0.25s;
    white-space:nowrap;
}
/*免费鲜花、蛋糕 浅粉色按钮*/
.gift-btn:not(.paid-btn){
    background:#f8c6e0;
    color:#c52b7c;
}
.gift-btn:not(.paid-btn):hover{
    background:#f3a8cf;
}
/*付费礼物 深玫红色按钮，和网站主色调一致*/
.gift-btn.paid-btn{
    background:#ed3b92;
    color:#ffffff;
}
.gift-btn.paid-btn:hover{
    background:#d8287e;
}

/*送礼弹窗确认送出样式*/

.btn-gift-submit{
    background:#ff69b4;
    color:#fff;
    border:none;
    padding:8px 22px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
}
.btn-gift-submit:hover{
    background:#ff87c2;
}

.btn-gift-cancel{
    background:#eeeeee;
    color:#444;
    border:none;
    padding:8px 22px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
}
.btn-gift-cancel:hover{
    background:#dddddd;
}



/*付费礼物样式*/
/* 2026-11-06：弹窗整体压矮，礼物格子、留言框、按钮都收紧，避免顶到屏幕底部 */
.paid-gift-select-box{
    display:grid;
    grid-template-columns: 1fr 1fr;  /* PC端双列 */
    gap:9px;
    margin-bottom:10px;
}
.paid-gift-item{
    display:flex;
    align-items:center;
    gap:6px;
    border:2px solid #f9ccd7;
    border-radius:10px;
    padding:7px 11px;
    cursor:pointer;
    transition:0.2s;
}
.paid-gift-item span{
    font-size:14px;
    line-height:1.45;
}
.paid-gift-item:hover{
    border-color:#ed3b92;
}
.paid-gift-item input:checked + span{
    color:#ed3b92;
    font-weight:bold;
}
/* 弹窗容器：限制最大高度，内容多时内部滚动，防止超出屏幕 */
#paid-gift-modal .modal-content{
    width:480px;
    max-width:92%;
    max-height:86vh;
    overflow-y:auto;
    padding:16px 22px 18px;
}
/* 小屏幕：手机，变成单列 */
@media screen and (max-width:640px){
    .paid-gift-select-box{
        grid-template-columns:1fr;
    }
}

#paid-message{
    width:100%;
    box-sizing:border-box;
    height:64px;
    margin-top:6px;
    padding:9px 11px;
    border:2px solid #f9ccd7;
    border-radius:10px;
    font-size:14px;
    line-height:1.45;
    resize:vertical;
}
#paid-send-btn{
    margin-top:12px;
    width:100%;
    height:40px;
    background:#ed3b92;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
}
#paid-send-btn:hover{
    background:#d82e7f;
}
#paid-gift-modal .modal-content{
    width:600px;
    position:relative; /*给X提供定位容器*/
}
#close-paid-modal{
    position:absolute;
    right:16px;
    top:9px;
    font-size:24px;
    cursor:pointer;
    color: #666;
}
#close-paid-modal:hover{
    color:#ed3b92;
}
/* 弹窗标题：原来用浏览器默认 h3 样式，上下各留 1em 空白，把弹窗顶得很高 */
#paid-gift-modal .modal-title{
    font-size:19px;
    line-height:1.3;
    margin:0 0 6px;
}
.paid-gift-item small{
    display:block;
    font-size:11.5px;
    color: #666;
    margin-top:2px;
    line-height:1.4;
}






/* ==========13‑14寸小屏笔记本 1025‑1366px========== */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    .archive-page {
        max-width: 1300px;
        padding: 15px;
    }

    /* 2026-11-21：这一档页面整体收窄到 1300px，标题区只剩约 316px，
       四个操作按钮按桌面尺寸会掉成两行。这里把按钮再收一档，保证仍是一行。 */
    .archive-btn-group {
        gap: 4px;
    }
    .btn-archive-edit,
    .btn-archive-back {
        padding: 6px 5px;
        font-size: 12px;
    }
    .archive-side-col {
        max-width: 34%;
    }
}

/* ==========1280px 以下（窄笔记本 / 分屏）==========
   2026-11-21：这一档标题区已不足 310px，四个操作按钮怎么收都会掉行。
   改成右侧「分享 + 送礼」整列换到横幅第二行，标题区独占整宽，
   按钮才能稳定保持一行（站长硬要求：不能两行）。 */
@media screen and (min-width: 769px) and (max-width: 1280px) {
    .archive-side-col {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========手机、平板竖屏统一 max‑width:768px（和全站保持一致）========== */
@media screen and (max-width: 768px) {
    /* 原1200px断点内容 */
    /* 2026-11-21：上下堆叠必须落在 .archive-detail-wrap 上。
       真正并排的是这一层 flex 行，只把外层 .moe-container 改成 column 是无效的，
       结果是主内容被挤成 77% 宽、右侧空出一条 23% 的白边。 */
    .archive-detail-wrap{
        flex-direction:column;
        gap:20px;
    }
    .sidebar-sticky{
        position:static;
    }
    .acategory-list{
        grid-template-columns:repeat(3,1fr);
    }
    
    .moe-container{
    flex-direction: column;
    gap:20px;
    }
    .archive-main-content{
    width:100%;
    flex:none;
    }
    /* 2026-11-21：手机端不再隐藏侧栏，改为整宽落到主内容下方，
       与祝福卡片页（css/blessing_detail.css 的 .right-sidebar-container 手机规则）一致。
       原来 display:none 等于手机上把登录框、送礼物入口整块拿掉。 */
    .aright-sidebar{
    display:block;
    width:100%;
    }

    /* 原992px断点内容 */
    .archive-top-banner {
        flex-direction: column;
        text-align: center;
    }
    .archive-top-info {
        width: 100%;
    }
    .archive-btn-group {
        margin-top:8px;
        justify-content:center;
    }
    .archive-grid-row{
        grid-template-columns:1fr;
    }
    .countdown-box {
        font-size:22px;
    }

    /* 原576px断点内容 */
    .archive-avatar-box .archive-default-avatar {
        width:90px;
        height:90px;
        font-size:36px;
    }
    .archive-page {
        padding: 10px;
    }
    .archive-title {
        font-size:20px;
        margin-bottom:14px !important;
    }
    .archive-btn-group{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }
    .archive-top-banner,
    .archive-card-box,
    .archive-countdown-block,
    .archive-message-block{
        padding:16px 14px;
    }
    .countdown-box {
        font-size:18px;
    }
    .msg-head {
        flex-direction:column;
        gap:4px;
    }
    .msg-item {
        padding:12px 14px;
    }
    .acategory-list{
        grid-template-columns:repeat(2,1fr);
    }
    .archive-top-banner{
        flex-direction:column;
    }
    /* 2026-11-14：右侧竖排容器（上分享/下礼物）手机端改全宽居中，与礼物按钮对齐 */
    .archive-side-col{
        width:100%;
        align-items:center;
        /* 2026-11-21：抵消桌面的 max-width:44%，手机端必须整宽 */
        max-width:100%;
    }
    .archive-share-row{
        justify-content:center;
    }
    .archive-gift-btn-group{
        margin-left:0;
        margin-top:12px;
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }
}


/* ============================================================
   2026-11-16：从 archive_detail.php 的页面内联样式迁入
   （成长记录时间轴 + 底部相关推荐）
   改这里记得同步抬 archive_detail.php 里 archive_detail.css 的版本号。
   ============================================================ */

/* 成长记录轻量时间轴（2026-11-10） */
.tl-list{list-style:none;margin:0;padding:0;}
.tl-item{position:relative;display:flex;gap:14px;padding-bottom:18px;}
.tl-item:not(:last-child)::before{content:"";position:absolute;left:21px;top:44px;bottom:0;width:2px;background:#ffe4ef;}
.tl-node{flex:0 0 44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#ff9cc4,#e60073);
color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;box-shadow:0 4px 12px rgba(230,0,115,.22);}
.tl-node span{font-size:15px;font-weight:800;}
.tl-node em{font-style:normal;font-size:9px;opacity:.9;}
.tl-card{flex:1 1 auto;min-width:0;background:#fffafc;border:1px solid #ffe4ef;border-radius:12px;padding:12px 14px;}
.tl-text{font-size:14.5px;line-height:1.8;color:#5c4a52;word-break:break-word;}
.tl-imgs{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
.tl-img{width:110px;height:110px;object-fit:cover;border-radius:10px;cursor:pointer;border:1px solid #ffe4ef;}
.tl-img-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
background:#fff;border:2px dashed #ff9cc4;border-radius:10px;color:#e60073;
font-weight:700;font-size:13px;line-height:1.3;padding:0;cursor:pointer;box-sizing:border-box;}
.tl-img-add:hover{background:#fff5f9;}
.tl-img-add span{font-size:12px;font-weight:600;}
.tl-date{margin-top:8px;font-size:12px;color:#b3a6ab;}
.tl-ops{margin-top:8px;display:flex;gap:8px;}
.tl-op-btn{border:1px solid #ffd9e8;background:#fff;color:#b7678c;font-size:12px;
padding:4px 12px;border-radius:999px;cursor:pointer;}
.tl-op-btn:hover{color:#e60073;border-color:#ff9cc4;background:#fff5f9;}
.tl-op-del:hover{color:#d93025;border-color:#f3b6ae;background:#fff5f4;}
.tl-editing-tip{font-size:12.5px;color:#b7678c;background:#fff0f7;border:1px dashed #ff9cc4;
border-radius:8px;padding:6px 10px;margin-bottom:8px;}
.tl-editing-tip button{border:none;background:none;color:#e60073;font-size:12.5px;cursor:pointer;text-decoration:underline;padding:0;}
.tl-empty{margin:0;font-size:13.5px;color:#b3a6ab;}
.tl-form-wrap{margin-top:16px;}
.tl-toggle{border:1px dashed #ff9cc4;background:#fff;color:#e60073;font-size:13.5px;font-weight:700;
padding:9px 16px;border-radius:999px;cursor:pointer;}
.tl-toggle:hover{background:#fff5f9;}
.tl-form{margin-top:12px;background:#fffafc;border:1px solid #ffe4ef;border-radius:12px;padding:12px;}
.tl-form textarea{width:100%;box-sizing:border-box;border:1px solid #ffd9e8;border-radius:10px;padding:10px;font-size:14px;resize:vertical;}
.tl-form-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap;}
.tl-form-row:last-child{margin-bottom:0;}
.tl-age-label{font-size:13.5px;color:#5c4a52;font-weight:700;display:flex;align-items:center;gap:6px;}
.tl-age-label input{width:70px;border:1px solid #ffd9e8;border-radius:8px;padding:6px 8px;font-size:14px;}
.tl-age-tip{font-size:12px;color:#b3a6ab;}
.tl-file-btn{font-size:13px;color:#b7678c;cursor:pointer;border:1px solid #ffd9e8;border-radius:999px;padding:6px 14px;}
.tl-file-name{font-size:12px;color:#b3a6ab;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tl-submit{margin-left:auto;border:none;background:linear-gradient(135deg,#ff5c98,#e60073);color:#fff;
font-size:13.5px;font-weight:700;padding:8px 20px;border-radius:999px;cursor:pointer;}
.tl-submit:disabled{background:#c9c9c9;cursor:not-allowed;}
@media (max-width:640px){ .tl-node{flex:0 0 38px;height:38px;} .tl-node span{font-size:13px;} .tl-img{width:90px;height:90px;} }

/* 2026-11-15：相关推荐卡片——名字右侧带类型小标签（🔎 寻亲 / 🎂 生日） */
/* 2026-11-15：style.css 里这块没写 box-sizing，width:100% 再加内边距会右侧溢出 */
/* 2026-11-16：宽度改成跟主内容区一致。style.css 里这块带着 max-width:1030px /
96% / 93% 三个不同断点的上限，加过粉边之后右边缘会明显比上下的相册卡缩进去一截，
一眼就能看出来；这里让它跟相册卡同为 100%，右边缘对齐。 */
/* 2026-11-21：推荐块上方空隙实测 60px —— 相册区块 margin-bottom:30px
   叠上 style.css 里 .related-blessings 的 margin-top:30px（全站版面用值）。
   档案页各版块间距统一 24px，这里把叠加项归零，只保留前一块的 24px。 */
.archive-main-content .related-blessings { margin-top: 0; margin-bottom: 24px; }
.related-blessings { box-sizing: border-box; max-width: 100%; width: 100%; }

@media (max-width: 768px) {
    /* 2026-11-21：style.css 手机端给的是 margin:20px 10px 0 + max-width:93%
       （靠缩小宽度抵消左右外边距）；本页已把宽度改回 100%，
       左右各 10px 会把这卡顶出容器 20px，这里归零。 */
    .archive-main-content .related-blessings { margin-left: 0; margin-right: 0; }
}
.related-blessings .related-info { flex: 1 1 auto; min-width: 0; }
.related-blessings .ra-line { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.related-blessings .ra-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-blessings .ra-tag { flex: 0 0 auto; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 9px; font-style: normal; font-weight: 500; white-space: nowrap; }
.related-blessings .ra-tag.missing { background: #ffe8f0; color: #e60073; }
.related-blessings .ra-tag.birthday { background: #fff4f8; color: #b4698a; }
.related-blessings .ra-sub { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: #9b8b93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
 * 2026-11-19 链路3：档案「共同维护人」区块
 * 位置：archive_detail.php 档案信息卡与相册之间。
 * 说明：样式跟 .archive-card 对齐（同底色同圆角），成员用胶囊标签排一行，
 *      创建者看到添加表单，其他人只看到名单，避免非创建者误以为可以随便加人。
 * ========================================================== */
.amem-section {
    margin: 0 0 20px;
}

.amem-card {
    padding: 20px;
}

.amem-tip {
    margin: 6px 0 14px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #7a6a70;
}

.amem-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.amem-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid #f9ccd7;
    border-radius: 999px;
    background: #fff5f8;
    font-size: 13px;
}

.amem-name {
    color: #333;
    font-weight: 600;
}

.amem-role {
    font-size: 12px;
    color: #a3637c;
}

.amem-remove {
    margin: 0;
    display: inline;
}

.amem-remove button {
    padding: 0;
    border: 0;
    background: none;
    color: #c99;
    font-size: 12px;
    cursor: pointer;
}

.amem-remove button:hover {
    color: #c82440;
}

.amem-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.amem-add input[type="text"] {
    flex: 1 1 180px;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #f0d7de;
    border-radius: 8px;
    font-size: 13.5px;
    box-sizing: border-box;
}

.amem-add select {
    padding: 8px 10px;
    border: 1px solid #f0d7de;
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
}

.amem-add button {
    padding: 9px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7b9c 0%, #e60073 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.amem-msg {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.amem-msg-err {
    color: #c82440;
}

.amem-msg-ok {
    color: #1a9c5b;
}

@media (max-width: 768px) {
    .amem-add input[type="text"],
    .amem-add select {
        flex: 1 1 100%;
    }

    .amem-add button {
        flex: 1 1 100%;
    }
}

/* 2026-11-19 链路3：成长记录「由 XX 记录」——只在成员数 > 1 时由 PHP 输出 */
.blessing-container .tl-author,
.tl-date .tl-author {
    color: #b58a9c;
    font-weight: 400;
}

/* ============================================================
 * 2026-11-21：倒计时区块内部布局（从 archive_detail.php 行内 style 迁入）
 * 三栏：左文案 / 中间倒计时面板 / 右文案，桌面并排、手机逐行。
 * 迁入原因：行内 style 优先级高于 CSS，768 断点的 padding、字号对
 *          这一块完全无效，窄屏被 22px/16px 的内边距和 420px 面板撑破。
 * ============================================================ */
.archive-countdown-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.archive-countdown-text {
    flex: 1 1 0;
    min-width: 160px;
    text-align: center;
    color: #914779;
    font-size: 20px;
    line-height: 1.6;
}

.archive-countdown-panel {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 24px 16px;
    /* 原行内是 0 17px 0 的「立体下沿」，桌面视觉不能变 */
    box-shadow: 0 17px 0 rgba(236, 80, 146, 0.18);
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    /* 一句在上、面板居中、一句在下，比三栏硬挤更好读 */
    .archive-countdown-text {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 16px;
    }

    .archive-countdown-panel {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px 8px;
        box-shadow: 0 8px 0 rgba(236, 80, 146, 0.14);
    }
}
