* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #fdfaf6;
    color: #3a2a1a;
    line-height: 1.8;
    min-height: 100vh;
}

.container {
    max-width: 380px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 上半区 - 背景图区域 */
.header-section {
    background: url('../banner.jpg') center/cover no-repeat;
    min-height: 600px; /* 可根据 banner.jpg 实际比例调整 */
    padding: 40px 20px 100px; /* 底部留出空间给按钮 */
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.title {
    font-size: 26px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

/* 按钮容器：固定在图片底部 */
.buttons-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.button-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    max-width: none;
}

/* 下半区 - 内容区域 */
.content-section {
    flex: 1;
    padding: 20px;
    background: #fdfaf6;
}

/* 初始提示 */
.initial-hint {
    text-align: center;
    padding: 40px 20px;
    color: #8b7355;
}

.initial-hint p {
    font-size: 15px;
    line-height: 2;
}

.hint-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* 视频容器 */
.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.video-container video {
    width: 100%;
    display: block;
}

/* 塔罗牌图片 */
.card-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 25px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 结果容器 */
.result-container {
    opacity: 0;
}

.result-container.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 牌名 */
.card-name {
    text-align: center;
    font-size: 22px;
    color: #2c3e3b;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.position-tag {
    display: inline-block;
    background: linear-gradient(135deg, #8a9b68 0%, #7a8b58 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    margin-left: 10px;
}

/* 内容区块 */
.content-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #d4af37;
}

.block-title {
    font-size: 16px;
    color: #8b7355;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
}

.block-content {
    font-size: 14px;
    color: #3a2a1a;
    line-height: 2;
    text-align: justify;
}

/* 综合运势四维度 */
.dimension {
    margin-bottom: 15px;
}

.dimension:last-child {
    margin-bottom: 0;
}

.dimension-title {
    font-size: 15px;
    color: #2c3e3b;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dimension-icon {
    font-size: 16px;
}

.dimension-content {
    font-size: 14px;
    color: #3a2a1a;
    line-height: 1.9;
    padding-left: 22px;
}

/* 免责声明 */
.disclaimer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 380px;
    background: rgba(253, 250, 246, 0.95);
    padding: 12px 15px;
    font-size: 11px;
    color: #8b7355;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

/* 响应式 */
@media (max-width: 400px) {
    .container {
        max-width: 100%;
    }

    .disclaimer {
        max-width: 100%;
    }
}

/* 避免内容被免责声明遮挡 */
.content-section {
    padding-bottom: 60px;
}