/* ============================================
   NO12 模板样式 - 大发 DAFA 综合娱乐中心
   精确还原原始Vue编译版视觉效果
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fff;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   顶部通知区域
   ============================================ */
.dafa-notice-section {
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(255,248,225,.55) 0%, rgba(255,243,200,.35) 50%, rgba(255,255,255,.1) 100%);
}

.dafa-notice-inner {
    max-width: 100%;
    width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 14px 0;
    overflow: hidden;
}

/* === 品牌卡片 === */
.dafa-brand-card {
    border: none;
    box-shadow: none;
    background: transparent;
    text-align: center;
    padding: 12px 16px 4px;
    position: relative;
    margin-bottom: 0;
}

.dafa-domain {
    background: rgba(255,255,255,.18);
    border: none;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dafa-domain-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.dafa-domain-brand {
    font-weight: 950;
    font-size: 26px;
    letter-spacing: 1.5px;
    color: #000;
    line-height: 1;
}

.dafa-slogan {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 950;
    color: #b87918;
    letter-spacing: .5px;
    line-height: 1.35;
    text-align: center;
}

.dafa-slogan2 {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 950;
    color: #b87918;
    letter-spacing: .5px;
    line-height: 1.35;
    text-align: center;
}

/* === 滚动公告 === */
.dafa-notice-marquee {
    background: rgba(255,255,255,.22);
    border: none;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: calc(100% - 60px);
    max-width: 980px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 4px auto 0;
    padding: 10px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
}

.dafa-notice-viewport {
    width: 100%;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
}

.dafa-notice-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
    color: #2b1b10;
    font-weight: 650;
    font-size: 14px;
}

.dafa-notice-track span {
    padding-right: 80px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   横幅大图
   ============================================ */
.dafa-wc-card {
    position: relative;
    margin: -10px auto 20px;
    max-width: calc(980px * var(--banner-scale-desktop, 50) / 100);
    width: calc(var(--banner-scale-desktop, 50) * 1%);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.dafa-wc-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: contain;
}

/* ============================================
   平台名称行（卡片下方）
   ============================================ */
.platform-bottom {
    text-align: center;
    padding: 10px 16px 0;
    max-width: 980px;
    margin: 0 auto;
}

.platform-names-line {
    display: block;
    padding: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: rgba(43,27,16,.78);
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-subtitle {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(103,84,65,.65);
    letter-spacing: .5px;
}

/* ============================================
   平台卡片区域（核心布局）
   ============================================ */
.games-section {
    padding-top: 0;
    padding-bottom: 28px;
}

.games-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
}

.game-card-wrapper {
    width: 50%;
    padding: 12px;
    box-sizing: border-box;
}

.game-card-wrapper.game-card-full {
    width: 100%;
}

/* ============================================
   card-style2（第一个卡片 - MK体育，全宽）
   ============================================ */
.card-style2 {
    position: relative;
    width: 100%;
}

.card-style2-logo-container {
    position: relative;
    z-index: 5;
}

.card-style2-logo {
    height: 64px;
    margin-left: auto;
    margin-right: auto;
    width: 260px;
    padding: 12px;
    box-shadow: 0 20px 25px 1px rgba(103,84,65,.7);
    margin-bottom: 40px;
    background-color: #675441;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateZ(0);
    transition: transform .3s ease;
}

.card-style2-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: 100%;
    width: auto;
}

.card-style2-logo-text {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    white-space: nowrap;
    line-height: 42px;
}

.card-style2-left-triangle {
    position: absolute;
    transform: rotate(180deg);
    top: 1px;
    width: 0;
    height: 0;
    border-top: 17px solid #000;
    z-index: 6;
    left: calc(50% - 158px);
    border-right: 17px solid transparent;
    border-left: 0;
    border-bottom: 0;
}

.card-style2-right-triangle {
    position: absolute;
    transform: rotate(180deg);
    top: 1px;
    width: 0;
    height: 0;
    border-top: 17px solid #000;
    z-index: 6;
    right: calc(50% - 158px);
    border-left: 17px solid transparent;
    border-right: 0;
    border-bottom: 0;
}

.card-style2-content {
    position: relative;
    margin-top: -111px;
    overflow: hidden;
    background-color: #f0e5d9;
    border-radius: 16px;
    padding: 24px;
    padding-top: 112px;
    border: .5px solid rgba(103,84,65,.2);
    transition: all .3s ease;
    background-image:
        linear-gradient(rgba(254,153,0,.06) 1px, transparent 0),
        linear-gradient(90deg, rgba(254,153,0,.06) 1px, transparent 0);
    background-size: 20px 20px;
    box-shadow: 0 8px 24px 0 rgba(103,84,65,.1);
}

.card-style2-content:hover {
    border-color: #fef3c6;
}

.card-style2-glow-1 {
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
    filter: blur(30px);
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    opacity: .3;
}

.card-style2-glow-2 {
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
    filter: blur(30px);
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    opacity: .2;
}

.card-style2-buttons-container {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 16px;
}

/* ============================================
   card-style1（半宽卡片 - 开云/华体会/九游等）
   ============================================ */
.card-style1 {
    position: relative;
    background-color: #f0e5d9;
    border-radius: 16px;
    padding: 16px;
    border: .5px solid rgba(103,84,65,.2);
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 8px 24px 0 rgba(103,84,65,.1);
    height: 100%;
}

.card-style1:hover {
    box-shadow: 0 10px 15px rgba(103,84,65,.6);
}

.card-style1-glow {
    position: absolute;
    z-index: 1;
    top: -200px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: .5;
    background-color: #fff;
    pointer-events: none;
    transform: scale(1.5);
    filter: blur(20px);
}

.card-style1-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 16px;
}

.card-style1-logo {
    cursor: pointer;
    height: 112px;
    width: 112px;
    min-width: 112px;
    padding: 8px;
    box-shadow: 0 8px 24px 0 rgba(103,84,65,.1);
    background-color: #fdf6e3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0e5d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.card-style1-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-style1-info {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    flex: 1;
    min-width: 0;
}

.card-style1-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
    color: #675441;
    text-align: left;
    margin-top: 0;
    line-height: 1.1;
}

/* ============================================
   活动信息 & 进入按钮（通用）
   ============================================ */
.dafa-activity {
    padding: 4px 0;
}

.dafa-activity-center {
    text-align: center;
}

.activity-l1 {
    font-size: 14px;
    color: #675441;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.activity-l2 {
    font-size: 14px;
    color: #675441;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.dafa-activity-center .activity-l1,
.dafa-activity-center .activity-l2 {
    text-align: center;
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: red;
    color: #fff !important;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .3s;
    box-shadow: 0 4px 12px rgba(255,0,0,.25);
    margin-top: 10px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.enter-btn:hover {
    background: #c10007;
}

.enter-btn-wide {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: 16px auto 0;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    justify-content: center;
}

.dafa-activity-center .enter-btn:not(.enter-btn-wide) {
    display: flex;
    margin: 12px auto 0;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    padding: 20px 16px 30px;
    text-align: center;
}

.footer-content {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(43,27,16,.5);
    line-height: 1.6;
}

/* ============================================
   上浮粒子特效
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    display: block;
    border-radius: 50%;
    background-color: rgba(103,84,65,.55);
    animation-name: particleFloat;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

/* ============================================
   响应式 - 桌面端 (>=768px)
   ============================================ */
@media (min-width: 768px) {
    .dafa-domain-logo {
        width: 48px;
        height: 48px;
    }
    .dafa-domain-brand {
        font-size: 32px;
    }
    .dafa-slogan {
        font-size: 22px;
    }
    .dafa-slogan2 {
        font-size: 22px;
    }
    .card-style1-logo {
        margin-bottom: 16px;
        height: 144px;
        width: 144px;
        min-width: 144px;
    }
    .card-style1-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .activity-l1,
    .activity-l2 {
        font-size: 15px;
    }
    .card-style1-content {
        gap: 16px;
    }
}

/* ============================================
   响应式 - 手机端 (<768px)
   ============================================ */
@media (max-width: 767px) {
    .dafa-slogan {
        font-size: 17px;
    }
    .dafa-slogan2 {
        font-size: 16px;
    }
    .games-grid {
        flex-direction: column;
        margin: -12px;
    }
    .game-card-wrapper {
        width: 100%;
        padding: 12px;
    }
    .game-card-wrapper.game-card-full {
        width: 100%;
    }
    .card-style1-logo {
        height: 112px;
        width: 112px;
        min-width: 112px;
    }
    .card-style1-title {
        font-size: 20px;
    }
    .activity-l1,
    .activity-l2 {
        font-size: 14px;
    }
    .platform-names-line {
        white-space: normal;
        line-height: 1.5;
        font-size: 16px;
    }
    .platform-subtitle {
        font-size: 14px;
    }
    .dafa-wc-card {
        margin: -8px auto 14px;
        width: calc(var(--banner-scale-mobile, 50) * 1%);
        max-width: calc(440px * var(--banner-scale-mobile, 50) / 100);
        min-width: 120px;
    }
    .card-style2-logo {
        width: 200px;
        height: 56px;
    }
    .card-style2-left-triangle {
        left: calc(50% - 118px);
    }
    .card-style2-right-triangle {
        right: calc(50% - 118px);
    }
}
