* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    /* 主背景深橙色到浅橙色渐变 */
    background: linear-gradient(180deg, #f75533 0%, #fac6a5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 顶部文字 */
.top-notice {
    width: 100%;
    padding: 24px 20px 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

/* 外部半透明描边效果的外圈容器 */
.card-wrapper {
    width: 92%;
    max-width: 420px;
    /* 半透明白色外沿 */
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px;
    margin-top: 10px;
    position: relative;
    /* 真实的透明打孔效果：通过 CSS 全局遮罩挖去边缘，透出主页背景渐变 */
    -webkit-mask-image: radial-gradient(circle at 0px 231.5px, transparent 10px, black 11.5px),
                        radial-gradient(circle at 100% 231.5px, transparent 10px, black 11.5px);
    -webkit-mask-size: 51% 100%, 51% 100%;
    -webkit-mask-position: left top, right top;
    -webkit-mask-repeat: no-repeat;
    mask-image: radial-gradient(circle at 0px 231.5px, transparent 10px, black 11.5px),
                radial-gradient(circle at 100% 231.5px, transparent 10px, black 11.5px);
    mask-size: 51% 100%, 51% 100%;
    mask-position: left top, right top;
    mask-repeat: no-repeat;
}

/* 移除了假圆点缺口设计，让卡片更自然过渡 */

/* 内部核心白色卡片 */
.card-inner {
    background: #f5f6f8;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* 顶部课程信息区的独立卡片设计 */
.card-top {
    margin: 15px 15px 0; /* 下边界留给 action 区的 padding 来撑 */
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); /* 增加柔和投影 */
    display: flex;
    align-items: flex-start;
}

/* 课程图片 */
.course-thumb {
    width: 135px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 课程文本信息 */
.course-info {
    margin-left: 12px;
    position: relative;
    height: 80px;
    /* 同课程图片高度 */
    flex: 1;
}

.course-title {
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 17px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
}

.course-teacher {
    position: absolute;
    top: 55%;
    left: 0;
    transform: translateY(-50%);
    margin: 0;
    font-size: 13px;
    color: #666666;
}

/* 按钮操作区 */
.card-action {
    padding: 24px 15px; /* 更匀称的留白 */
    position: relative;
}

.btn-add {
    display: block;
    width: 86%; /* 从90%略微收敛，增加呼吸感 */
    margin: 0 auto;
    height: 52px; /* 高度缩减，更精致 */
    border-radius: 26px; /* 圆角为高度的一半 */
    /* 浅橙到深橙色的渐变按钮 */
    background: linear-gradient(90deg, #ff7b46 0%, #f6471f 100%);
    border: 3px solid rgba(255, 120, 70, 0.2);
    color: #ffffff;
    font-size: 19px; /* 字号克制，更现代 */
    font-weight: bold;
    text-align: center;
    line-height: 46px; /* height - borders */
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(246, 71, 31, 0.3), inset 0px -2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: btn-glow 2s infinite alternate ease-in-out;
}

.pulse-group {
    position: relative;
    width: 100%;
}

/* 按钮微弱的光晕呼吸动效 */
@keyframes btn-glow {
    0% { box-shadow: 0 4px 12px rgba(246, 71, 31, 0.3), inset 0px -2px 4px rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 6px 20px rgba(246, 71, 31, 0.6), inset 0px -2px 4px rgba(0, 0, 0, 0.1); }
}

/* 动态手指独立位移动效 */
@keyframes hand-point {
    0% { transform: translateY(-30%); }
    100% { transform: translateY(-55%); }
}

/* 动态手指图标容器 */
.hand-icon-wrapper {
    position: absolute;
    right: 8%; /* 使用百分比更兼容小屏幕 */
    top: 95%; /* 精确悬浮位置 */
    width: 65px; /* 手指大小收缩，不喧宾夺主 */
    height: 65px;
    pointer-events: none;
    animation: hand-point 0.5s infinite alternate ease-in-out;
    z-index: 20;
}

/* 分界线 */
.divider {
    position: relative;
    margin: 0 15px;
    height: 1px;
    border-top: 1px dashed #d5d6d8;
}

/* 底部骨架屏胶囊 */
.card-bottom {
    padding: 12px 15px 15px;
    display: flex;
    justify-content: center;
    background: #f5f6f8;
}

.skeleton-pill {
    width: 95%;
    height: 16px;
    background: #ecedef;
    border-radius: 8px;
}