/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --img-size: 62px;
    --main-img-size: 84px;
    --primary-color: #7b1fa2;
    /* 深紫 */
    --secondary-color: #b388ff;
    /* 淡紫 */
    --accent-color: #ede7f6;
    /* 柔和紫 */
    --text-color: #333;
    --bg-overlay-alpha: 0.62;
    /* 背景图覆盖层透明度（0~1，越大越暗）*/
    --bg-gradient: linear-gradient(135deg, #2b1055 0%, #120a3a 100%);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body {
    background: linear-gradient(180deg, rgba(12, 5, 41, 0.95) 0%, rgba(34, 13, 79, 0.88) 32%, rgba(76, 34, 140, 0.76) 64%, rgba(203, 182, 255, 0.82) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 70px;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100vw;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 10px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #ffe066;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 224, 102, 0.42);
    font-family: "Georgia", "Times New Roman", "KaiTi", "楷体", serif;
    line-height: 1.5;
    font-style: italic;
    letter-spacing: 0.3px;
    padding: 0 5px;
}

.contact-page h1 {
    color: #5a2b8a;
    text-shadow: 0 6px 18px rgba(96, 64, 155, 0.24), 0 0 10px rgba(210, 183, 255, 0.4);
}

.poster-card {
    width: min(100%, 360px);
    margin: 14px auto 22px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 35px rgba(32, 17, 74, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.poster-card img {
    width: 100%;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 20px rgba(26, 8, 61, 0.18);
}

.poster-caption {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(49, 17, 92, 0.92);
}

.poster-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.poster-meta {
    font-size: 0.78rem;
    letter-spacing: 0.16px;
    color: rgba(49, 17, 92, 0.7);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 状态消息样式 */
.status-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.status-message.info {
    display: block;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.14), rgba(103, 58, 183, 0.10));
    border: none;
    color: #6a1b9a;
}

.status-message.error {
    display: block;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.14), rgba(123, 31, 162, 0.10));
    border: none;
    color: #ad1457;
}

.status-message.success {
    display: block;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.14), rgba(103, 58, 183, 0.08));
    border: none;
    color: #2e7d32;
}

/* 输入区域样式 */
.input-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: none;
    padding: 12px;
    margin-bottom: 12px;
    border: none;
}

.calendar-quick-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0 0 12px 0;
    padding: clamp(12px, 1.8vw, 20px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(182, 157, 230, 0.30), rgba(116, 88, 186, 0.22));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(19, 8, 50, 0.18);
}

.calendar-quick-left {
    flex: 1 1 62%;
    min-width: 0;
    padding-right: clamp(10px, 1.8vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.55vw, 8px);
}

.calendar-quick-right {
    flex: 1 1 38%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: clamp(6px, 0.9vw, 12px);
    padding-left: clamp(12px, 1.8vw, 22px);
    border-left: 1px solid rgba(245, 235, 255, 0.28);
}

.calendar-quick-line {
    color: rgba(250, 244, 255, 0.95);
    font-size: clamp(0.92rem, 0.84rem + 0.52vw, 1.2rem);
    line-height: 1.34;
    letter-spacing: 0.02em;
    word-break: break-word;
    text-align: left;
}

.calendar-quick-year {
    color: #ffd27a;
    font-size: clamp(1.5rem, 1.1rem + 1.95vw, 2.35rem);
    line-height: 1.12;
    font-weight: 700;
    margin-bottom: clamp(4px, 0.65vw, 10px);
    text-align: left;
    text-align-last: auto;
}

.calendar-quick-main {
    font-size: clamp(1rem, 0.88rem + 0.82vw, 1.48rem);
    line-height: 1.24;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
}

.calendar-quick-kin {
    font-size: clamp(1rem, 0.89rem + 0.68vw, 1.34rem);
    line-height: 1.2;
    font-weight: 600;
    color: rgba(247, 240, 255, 0.92);
    text-align: left;
}

.calendar-quick-note {
    margin-top: clamp(3px, 0.55vw, 7px);
    color: rgba(255, 223, 152, 0.94);
    font-size: clamp(0.78rem, 0.72rem + 0.36vw, 0.98rem);
    line-height: 1.35;
    text-align: left;
    text-align-last: auto;
}

@media (max-width: 520px) {
    .calendar-quick-card {
        padding: clamp(10px, 2.6vw, 13px);
    }

    .calendar-quick-year {
        margin-bottom: 4px;
    }

    .calendar-quick-right {
        padding-left: clamp(9px, 2.1vw, 12px);
    }
}

/* 日历信息嵌入指引行两侧 */
.calendar-cell {
    width: 100%;
    padding: 6px 2px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.calendar-cell-line {
    color: rgba(255, 223, 152, 0.9);
    font-size: clamp(0.74rem, 0.6rem + 0.6vw, 1rem);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0.01em;
    word-break: break-word;
    text-align: center;
}

.calendar-cell-year {
    color: #ffd27a;
    font-size: clamp(0.88rem, 0.7rem + 0.85vw, 1.3rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 2px;
}

.calendar-cell-note {
    margin-top: 2px;
    color: rgba(255, 223, 152, 0.9);
    font-size: clamp(0.66rem, 0.55rem + 0.4vw, 0.85rem);
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
}

.calendar-cell-main {
    font-size: clamp(0.88rem, 0.7rem + 0.85vw, 1.3rem);
    line-height: 1.15;
    font-weight: 700;
    color: #2e8b57;
}

.calendar-cell-kin {
    font-size: clamp(0.88rem, 0.7rem + 0.85vw, 1.3rem);
    line-height: 1.15;
    font-weight: 700;
    color: #2e8b57;
}

.calendar-cell-left {
    padding-top: 14px;
}

.calendar-cell-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.date-input {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}

.date-input>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}

select {
    padding: 6px 4px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10));
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a148c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.3);
    display: block;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.4);
}

button:active {
    transform: translateY(0);
}

/* 结果区域样式 */
.result-section {
    display: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.10));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: none;
    padding: 12px 10px;
    margin-bottom: 12px;
    width: 100%;
    border: none;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图腾网格布局 - 移动端优化 */
.seal-grid {
    display: grid;
    grid-template-areas:
        "guide-row"
        "middle"
        "push"
        "desc"
        "additional";
    gap: 8px;
    justify-items: center;
    margin-top: 18px;
    width: 100%;
}

/* 指引行三列布局 */
.guide-row {
    grid-area: guide-row;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4px;
    width: 100%;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.seal.guide {
    width: auto;
    margin: 0;
}

.middle-row {
    grid-area: middle;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.seal.push {
    grid-area: push;
    width: 50%;
    margin: 0 auto;
}

.description-section {
    grid-area: desc;
}

.additional-info {
    grid-area: additional;
}

/* 主印记描述区域样式 */
.description-section {
    width: 100%;
    margin: 10px auto 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
}

.description-section h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.kin-desc-container {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.kin-desc {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 13px;
    text-align: center;
    padding: 6px;
}

/* 底部附加信息样式 - 1x4 横向布局（去分隔线） */
.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
}

/* 各个图腾区域样式 - 去矩形框，改为晕开渐变 */

.seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.seal:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: transparent;
}

/* 底部附加信息区域的图腾样式 - 更小更紧凑 */
.additional-info .seal {
    padding: 4px 2px;
    border-radius: 8px;
    background: radial-gradient(120% 150% at 50% 20%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.additional-info .seal img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.additional-info .seal-name {
    font-size: 0.65rem;
    min-height: 24px;
    margin-bottom: 3px;
    line-height: 1.2;
    color: rgba(240, 228, 255, 0.9);
    text-shadow: 0 1px 4px rgba(8, 0, 24, 0.35);
}

.additional-info .kin-info,
.additional-info .wave-info {
    font-size: 0.65rem;
    margin-top: 3px;
    color: rgba(233, 221, 255, 0.88);
    text-shadow: 0 1px 4px rgba(8, 0, 24, 0.3);
}

.seal:hover {
    transform: translateY(-3px);
}

.main {
    border: none;
    background: transparent;
    padding: 6px 0;
    box-shadow: none;
}

.guide,
.challenge,
.support,
.push {
    border: none;
    background: transparent;
}

.seal-name {
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-align: center;
    color: rgba(244, 234, 255, 0.94);
    text-shadow: 0 2px 6px rgba(10, 0, 32, 0.5);
    line-height: 1.2;
}

.seal.main .seal-name {
    color: #2e8b57;
}

.seal img {
    width: var(--img-size);
    height: var(--img-size);
    object-fit: contain;
    border-radius: 6px;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.seal.main img {
    width: var(--main-img-size);
    height: var(--main-img-size);
}

.kin-info {
    font-weight: 600;
    margin-top: 6px;
    color: rgba(240, 228, 255, 0.92);
    text-shadow: 0 2px 6px rgba(8, 0, 26, 0.45);
    font-size: 0.75rem;
}

.wave-info {
    font-weight: 600;
    margin-top: 6px;
    color: rgba(236, 224, 255, 0.9);
    text-shadow: 0 2px 6px rgba(8, 0, 26, 0.4);
    font-size: 0.75rem;
}

/* 触摸设备特定样式 */
.touch-device .seal:hover {
    transform: none;
    /* 禁用悬停效果 */
}

.touch-device .seal.active {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 设备方向特定样式 */
.mobile-device.portrait-mode .seal-grid {
    grid-template-areas:
        "guide-row"
        "middle"
        "push"
        "desc"
        "additional";
    grid-template-columns: 1fr;
}

.mobile-device.landscape-mode .seal-grid {
    grid-template-areas:
        "guide-row middle push"
        "desc desc desc"
        "additional additional additional";
    grid-template-columns: 1fr 2fr 1fr;
}

.mobile-device.landscape-mode .middle-row {
    flex-direction: column;
    display: flex;
}

.mobile-device.landscape-mode .seal.main {
    order: 1;
}

.mobile-device.landscape-mode .seal.challenge {
    order: 2;
}

.mobile-device.landscape-mode .seal.support {
    order: 3;
}

/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[src] {
    opacity: 1;
}

/* 移动端优化布局 - 所有样式已应用到全局 */

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: none;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(245, 235, 255, 0.6);
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    font-size: 0.75rem;
}

.nav-item:hover,
.nav-item:active,
.nav-item.active {
    color: #f3e5ff;
    background: transparent;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 35%;
    right: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(243, 229, 255, 0.8), transparent);
    border-radius: 2px;
    box-shadow: none;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    font-style: normal;
    transition: transform 0.3s ease;
}

.nav-item span {
    font-size: 11px;
    transition: transform 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 导航点击动画 */
.nav-item.nav-clicked .nav-icon {
    transform: scale(1.15);
}

.nav-item.nav-clicked span {
    transform: scale(1.05);
}

/* 占位内容样式 */
.placeholder-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0 80px 0;
}

/* 页面内容样式 */
.page-content {
    margin-bottom: 80px;
}

/* 学一学页面样式 */
body.learning-page {
    position: relative;
    background: linear-gradient(140deg, rgba(244, 239, 255, 0.95) 0%, rgba(230, 215, 255, 0.96) 38%, rgba(204, 181, 255, 0.92) 100%);
    color: #2d0f6e;
    overflow-x: hidden;
}

.learning-page h1 {
    color: #341079;
    text-shadow: 0 8px 20px rgba(60, 24, 128, 0.25), 0 0 12px rgba(178, 136, 255, 0.4);
}

body.learning-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(123, 31, 162, 0.12) 1px, transparent 0),
        radial-gradient(rgba(103, 58, 183, 0.16) 1px, transparent 0);
    background-size: 140px 140px, 220px 220px;
    background-position: 32px 48px, 90px 120px;
    opacity: 0.48;
    pointer-events: none;
    z-index: -1;
}

.learning-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 12px;
}

.learning-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
    padding-top: 4px;
    padding-bottom: 0;
    border-radius: 20px;
    /* 背景图：learn/learn1.jpg，仅作用于顶部大组件 */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.28)), url("learn/learn1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 18px 38px rgba(82, 40, 158, 0.18);
    overflow: hidden;
    min-height: 220px;
}

.learning-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(160% 120% at 80% 0%, rgba(123, 31, 162, 0.2) 0%, rgba(123, 31, 162, 0) 70%);
    opacity: 0.38;
    pointer-events: none;
}

.hero-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 18px rgba(91, 48, 158, 0.25));
    z-index: 1;
}

.learning-hero h2 {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(76, 44, 147, 0.92), rgba(123, 31, 162, 0.88));
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 18px rgba(64, 27, 122, 0.25);
    z-index: 1;
}

.learning-hero p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(58, 22, 134, 0.85);
    margin-bottom: 14px;
    max-width: 520px;
    z-index: 1;
}

.hero-note {
    font-size: 0.78rem;
    color: #fff;
    padding: 6px 10px;

    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(60, 28, 120, 0.88), rgba(103, 58, 183, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(64, 27, 122, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.learning-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 8px 0 30px 0;
    padding-top: 8px;
    padding-bottom: 10px;
    /* 底部文章区域背景图 */
    background-image: url("learn/learn2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.learning-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65));
    box-shadow: 0 14px 26px rgba(72, 34, 134, 0.12);
    border: 1px solid rgba(123, 31, 162, 0.16);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
    isolation: isolate;
}

.learning-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(123, 31, 162, 0.16), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: -1;
}

.learning-card:hover,
.learning-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(64, 27, 122, 0.22);
    border-color: rgba(123, 31, 162, 0.34);
}

.learning-card:hover::after,
.learning-card:focus-visible::after {
    opacity: 1;
}

.learning-card:active {
    transform: translateY(-3px);
}

.learning-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.25);
}

.learning-card-index {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(133, 77, 204, 0.65));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #fff;
    box-shadow: 0 12px 24px rgba(82, 40, 158, 0.28);
    flex-shrink: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.learning-card:hover .learning-card-index,
.learning-card:focus-visible .learning-card-index {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(82, 40, 158, 0.38);
}

.learning-card-index-img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(82, 40, 158, 0.32);
    flex-shrink: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.learning-card:hover .learning-card-index-img,
.learning-card:focus-visible .learning-card-index-img {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(82, 40, 158, 0.4);
}

.learning-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.learning-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    color: rgba(42, 17, 108, 0.95);
}

.learning-card-meta {
    font-size: 0.8rem;
    color: rgba(52, 27, 120, 0.7);
    letter-spacing: 0.2px;
}

.learning-card-icon {
    font-size: 1.38rem;
    color: rgba(74, 20, 140, 0.82);
    transition: transform 0.28s ease;
    margin-left: 6px;
}

.learning-card:hover .learning-card-icon,
.learning-card:focus-visible .learning-card-icon {
    transform: translateX(6px);
}

@media (min-width: 768px) {
    .learning-section {
        gap: 28px;
    }

    .learning-hero {
        padding: 0 8px;
        padding-top: 6px;
        padding-bottom: 0;
    }

    .learning-hero h2 {
        font-size: 1.4rem;
    }

    .learning-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .learning-card {
        padding: 18px 20px;
    }
}

@media (max-width: 767.98px) {
    .learning-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-note {
        left: 8px;
        right: 8px;
        transform: none;
        width: auto;
    }
}