/* styles.css */
body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background: var(--gradient-soft);
    color: var(--text-primary);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, rgba(93, 78, 55, 0.92), rgba(201, 143, 122, 0.90));
    color: var(--text-white);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    opacity: 0.7;
}

header::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 10%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
}

@keyframes sparkle {
    from { transform: translate(0, 0); }
    to { transform: translate(-200px, -100px); }
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 180, 160, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* 模块化卡牌展示 */
.deck-module {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(5px);
}

.deck-module h2 {
    color: var(--text-primary);
    border-bottom: 2px solid rgba(232, 180, 160, 0.55);
    padding-bottom: 10px;
    margin-top: 0;
}

/* 卡片示例图 */
.card-samples {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
}

.card-samples img {
    width: 18%; /* 展示5张卡片，每张占约18% */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-samples img:hover {
    transform: scale(1.05);
    border-color: #4db6ac;
    box-shadow: 0 6px 16px rgba(77, 182, 172, 0.3);
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a6b6b;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4db6ac, #26a69a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag-new {
    background: linear-gradient(90deg, #4db6ac, #26a69a);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* PayPal 按钮容器确保按钮能正确渲染 */
.paypal-container {
    max-width: 300px; /* 限制 PayPal 按钮宽度 */
    margin-top: 15px;
}

/* 青绿色装饰元素 */
.card-samples::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4db6ac, transparent);
}

footer {
    text-align: center;
    padding: 20px;
    background: #0a0a2a;
    color: #aaa;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 4s linear infinite;
    opacity: 0.7;
}

footer::after {
    content: "";
    position: absolute;
    top: 30%;
    right: 15%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.5);
}