/* ========================================
   功德木鱼样式 (g8008)
   设计方向：禅院深木 + 佛金点缀
   - 深木色背景营造禅意纵深
   - 佛金(#d4a017)为唯一强调色
   - 檀红(#8b3a3a)辅助等级区分
   - 木鱼涟漪为签名时刻
   ======================================== */

/* 页面 — 深木色背景，加深营造纵深 */
.gongd-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a120b 0%, #2d1a0e 100%);
    padding-bottom: 80px;
}

/* 等级信息 — 顶部简洁展示 */
.gongd-header {
    text-align: center;
    padding: 24px 16px 16px;
    color: #f5e6c8;
}
.gongd-level-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.gongd-level-name {
    font-size: 18px;
    font-weight: 600;
    color: #f5e6c8;
    margin-bottom: 4px;
}
.gongd-level-text {
    font-size: 13px;
    color: rgba(245,230,200,0.6);
}
.gongd-level-bar {
    width: 200px;
    height: 4px;
    background: rgba(245,230,200,0.12);
    border-radius: 2px;
    margin: 12px auto 0;
    overflow: hidden;
}
.gongd-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a017, #8b3a3a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 祝福语 — 简洁一行 */
.gongd-blessing {
    text-align: center;
    padding: 0 16px 20px;
    color: rgba(245,230,200,0.85);
}
.gongd-blessing-type {
    font-size: 12px;
    color: #d4a017;
    margin-bottom: 4px;
}
.gongd-blessing-text {
    font-size: 15px;
    font-weight: 500;
}

/* 木鱼区 — 核心互动区，居中 */
.gongd-fish-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0 40px;
    min-height: 280px;
}

/* 木鱼光环背景 — 更柔和的佛金光晕 */
.gongd-fish-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.5; }
}

/* 木鱼主体 */
.gongd-fish-wrap {
    position: relative;
    z-index: 2;
}
.gongd-fish {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
}
.gongd-fish.gongd-knocking {
    transform: scale(0.94);
}

/* 木鱼涟漪 — 签名时刻：从木鱼中心扩散的金色同心圆 */
.gongd-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #d4a017;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}
.gongd-ripple.active {
    animation: rippleOut 0.8s ease-out forwards;
}
@keyframes rippleOut {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
        border-width: 2px;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(22);
        border-width: 0.5px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gongd-ripple.active {
        animation: none;
    }
}

/* SVG 木鱼 — 深檀木质感 */
.gongd-fish-svg {
    width: 200px;
    height: 192px;
}

/* 木鱼槌 */
.gongd-fish-kuai {
    position: absolute;
    right: -15px;
    top: 10px;
    transform: rotate(-25deg);
    transform-origin: 15px 70px;
    transition: transform 0.1s ease;
    z-index: 3;
}
.gongd-fish-kuai.gongd-knocking-kuai {
    transform: rotate(-50deg);
}

/* 功德飘字 — 佛金发光 */
.gongd-float-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.gongd-float {
    position: absolute;
    left: 50%;
    top: 20%;
    color: #d4a017;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(212,160,23,0.4), 0 2px 8px rgba(0,0,0,0.5);
    animation: floatUp 0.8s ease-out forwards;
    white-space: nowrap;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.8); }
    20% { opacity: 1; transform: translateX(-50%) translateY(-15px) scale(1.1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(1); }
}

/* 敲击提示 */
.gongd-fish-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(245,230,200,0.35);
    margin-top: 20px;
}

/* 统计区 — 隐约金色边框 */
.gongd-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    margin: 0 16px;
    background: rgba(212,160,23,0.04);
    border-radius: 12px;
    border: 1px solid rgba(212,160,23,0.12);
}
.gongd-stat-item {
    text-align: center;
}
.gongd-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 4px;
}
.gongd-stat-label {
    font-size: 12px;
    color: rgba(245,230,200,0.6);
}

/* 最近记录 */
.gongd-recent {
    margin: 16px;
    padding: 16px;
    background: rgba(212,160,23,0.03);
    border-radius: 12px;
    border: 1px solid rgba(212,160,23,0.08);
}
.gongd-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.gongd-recent-title {
    font-size: 14px;
    color: rgba(245,230,200,0.7);
}
.gongd-recent-more {
    font-size: 12px;
    color: rgba(245,230,200,0.5);
    text-decoration: none;
}
.gongd-recent-list {
    max-height: 150px;
    overflow-y: auto;
}
.gongd-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(245,230,200,0.06);
    color: rgba(245,230,200,0.8);
    font-size: 15px;
}
.gongd-recent-item:last-child {
    border-bottom: none;
}
.gongd-recent-type {
    color: #d4a017;
    font-size: 13px;
}
.gongd-recent-num {
    flex: 1;
    text-align: center;
    color: #d4a017;
    font-weight: 600;
    font-size: 16px;
}
.gongd-recent-time {
    font-size: 13px;
    color: rgba(245,230,200,0.5);
}

/* 记录页统计卡片 */
.gongd-logs-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    margin: 16px;
    background: rgba(212,160,23,0.04);
    border-radius: 12px;
    border: 1px solid rgba(212,160,23,0.12);
}
.gongd-logs-stat {
    text-align: center;
}
.gongd-logs-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 4px;
}
.gongd-logs-stat-label {
    font-size: 12px;
    color: rgba(245,230,200,0.6);
}

/* 记录页列表 */
.gongd-logs-list {
    margin: 0 16px;
}
.gongd-logs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(212,160,23,0.03);
    border-radius: 10px;
    border: 1px solid rgba(212,160,23,0.06);
}
.gongd-logs-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gongd-logs-item-type {
    font-size: 14px;
    color: #d4a017;
    font-weight: 500;
}
.gongd-logs-item-time {
    font-size: 12px;
    color: rgba(245,230,200,0.5);
}
.gongd-logs-item-right {
    font-size: 16px;
    font-weight: 600;
    color: #d4a017;
}

/* 分页 */
.gongd-logs-page {
    padding: 16px;
    color: rgba(245,230,200,0.6);
}

/* 空状态 */
.gongd-empty {
    text-align: center;
    padding: 60px 16px;
}
.gongd-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.gongd-empty-text {
    font-size: 15px;
    color: rgba(245,230,200,0.5);
    margin-bottom: 20px;
}
.gongd-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(212,160,23,0.15);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 20px;
    color: #d4a017;
    font-size: 14px;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 375px) {
    .gongd-fish-svg {
        width: 170px;
        height: 163px;
    }
    .gongd-stat-num {
        font-size: 22px;
    }
}
