/* 添加全局动画变量 */
:root {
    --gold-gradient: linear-gradient(135deg, #ffbe3b, #ff9900);
    --gold-light: rgba(255,190,59,0.1);
    --gold-border: rgba(255,190,59,0.2);
    --gold-shine: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.10);
    --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
    --card-shadow-active: 0 2px 16px rgba(0,0,0,0.08);
    --text-gradient: linear-gradient(90deg, #333, #666);
    --gold-text-gradient: linear-gradient(90deg, #ffbe3b, #ff9900);
}

/* 页面全局基础样式 */
body, html {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    box-sizing: border-box;
    background: none;
    overflow-y: auto;
}

/* 背景大图，固定全屏 */
.background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #fffbe6;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.background.loaded {
    background-image: url('images/bkt.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 700px) {
    .background,
    .background.loaded {
        background-size: 100% 100% !important;
    }
}

/* 页面主容器，居中显示 */
.container {
    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    justify-content: flex-start;
}

/* 顶部横幅区域 */
.header {
    width: 100vw;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0;
}

/* 轮播图样式 */
.slider {
    width: 100%;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 140px;
    object-fit: fill;
    display: block;
    border-radius: 0 !important;
    background: #000;
}

/* 轮播图指示器 */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 顶部导航栏 */
.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    width: 100vw;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 0 0 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}
.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0 8px 0;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.05rem;
    border-radius: 0;
}
.nav-item.active {
    color: #222;
    font-weight: bold;
    border-bottom: 2px solid #f5b100;
    background: #fffbe6;
    border-radius: 12px 12px 0 0;
}
.nav-item:last-child {
    border-radius: 0 12px 12px 0;
}

/* 主内容区（移动端竖排，PC端横排） */
main {
    width: 100vw;
    max-width: 430px;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    align-items: center;
}

/* 卡片通用样式 */
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 18px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 16px);
    box-sizing: border-box;
    font-size: 1.13rem;
    margin: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold-border);
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.card:active {
    transform: scale(0.98);
    box-shadow: var(--card-shadow-active);
}

.card:active::before {
    opacity: 0.05;
}

/* 下载区和加速器区的卡片（移动端） */
.app-download {
    flex-basis: 48%;
    flex-grow: 1;
    min-height: 0;
    margin-top: 18px;
}
.region-tip {
    flex-basis: 38%;
    flex-grow: 1;
    min-height: 0;
    margin-bottom: 18px;
}
/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.13rem;
    font-weight: bold;
    margin-bottom: 8px;
}
/* 下载按钮（所有卡片统一大小） */
.download-btn {
    background: var(--gold-gradient);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.92rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(255,190,59,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-shine);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.download-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 2px rgba(255,190,59,0.2);
}
.download-btn:active::before {
    transform: translateX(100%);
}
.card-header span {
    position: relative;
    display: inline-block;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.card-header span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:active .card-header span {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card:active .card-header span::after {
    transform: scaleX(1);
}
/* 卡片正文内容 */
.card-body {
    position: relative;
    z-index: 1;
}
.card-body > div {
    position: relative;
    padding-left: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}
.download-code {
    font-size: 1.13rem;
    margin-bottom: 4px;
}
.code {
    color: #2ebd59;
    font-weight: bold;
    font-size: 1.13rem;
}
.input-tip {
    color: #2ebd59;
    font-size: 1.08rem;
    font-weight: bold;
    margin-bottom: 4px;
}
.account-info {
    margin-bottom: 4px;
    font-size: 1.08rem;
}
.highlight {
    color: #f5b100;
    font-weight: bold;
}
.tip {
    color: #444;
    font-size: 1.01rem;
    margin-bottom: 2px;
}
.tip-edge {
    color: #e67e22;
    font-size: 1.01rem;
    margin-top: 2px;
}
.region-warning {
    color: #e74c3c;
    font-size: 1.01rem;
    margin-bottom: 2px;
}
.download-tip {
    color: #444;
    margin-bottom: 2px;
    font-size: 1.01rem;
}
.region-list {
    color: #e67e22;
    font-size: 1.01rem;
}

/* 底部footer */
.footer {
    width: 100vw;
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
    color: #444;
    font-size: 1.01rem;
    background: rgba(255,255,255,0.92);
    border-radius: 12px 12px 0 0;
    padding: 7px 0 3px 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.02);
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
}

/* PC端大屏幕下的横向排版和卡片样式 */
@media (min-width: 900px) {
    .container {
        max-width: 100vw;
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }
    .header, .nav, main {
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
    }
    .header {
        border-radius: 0 !important;
        height: 180px;
    }
    .header img {
        object-fit: contain !important;
        width: 100%;
        height: 180px;
        border-radius: 0 !important;
        background: #fff;
    }
    .nav {
        border-radius: 0 0 0 20px;
    }
    main {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 36px;
        padding: 40px 0 40px 0;
        min-height: 400px;
    }
    .card {
        border-radius: 18px;
        width: 380px;
        min-width: 340px;
        max-width: 420px;
        min-height: 360px;
        margin: 0;
        box-shadow: var(--card-shadow);
        padding: 40px 32px 32px 32px;
        border: 1px solid var(--gold-border);
    }
    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
    }
    .card:hover::before {
        opacity: 0.03;
    }
    .card:active {
        transform: scale(0.99);
    }
    .download-btn {
        width: 180px;
        font-size: 1.08rem;
        padding: 10px 0;
        min-width: 0;
        text-align: center;
        display: block;
        box-sizing: border-box;
        align-self: center;
        box-shadow: 0 4px 8px rgba(255,190,59,0.2);
    }
    .download-btn:hover {
        box-shadow: 0 6px 12px rgba(255,190,59,0.3);
        transform: translateY(-1px);
    }
    .download-btn:hover::before {
        transform: translateX(100%);
    }
    .download-btn:active {
        transform: scale(0.98);
    }
    .card-body {
        font-size: 1.04rem;
        line-height: 1.7;
        letter-spacing: 0.01em;
        padding-top: 6px;
    }
    .card-body > div {
        margin-bottom: 6px;
    }
    .card-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .card-header .download-btn {
        width: 180px;
        font-size: 1.08rem;
        padding: 10px 0;
        min-width: 0;
        text-align: center;
        display: block;
        box-sizing: border-box;
        align-self: center;
        margin: 0 auto;
    }
    .app-download .card-body {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .app-download .card-body > * {
        margin-bottom: 12px;
    }
    .app-download .card-body > *:last-child {
        margin-bottom: 0;
    }
    .app-download .card-header {
        margin-bottom: 16px;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .app-download .card-body > * {
        margin-left: auto;
        margin-right: auto;
    }
    .region-tip .card-header span {
        font-size: 1.18rem;
    }
    .nav.notice-active {
        border-radius: 0 0 0 0;
    }
}

/* 移动端适配 */
@media (max-width: 700px) {
    .header, .nav, main, .footer {
        max-width: 100vw;
    }
    .container {
        padding-bottom: 0;
    }
    .footer {
        font-size: 0.97rem;
        padding: 5px 0 2px 0;
    }
    .card {
        padding: 16px 6px 12px 6px;
        font-size: 1.01rem;
    }
    .header {
        height: 110px;
    }
    .header img {
        height: 110px;
    }
    main > .card:first-child {
        margin-top: 8px;
    }
    main > .card + .card {
        margin-top: 8px;
    }
    .app-download.card {
        background: #fff !important;
    }
    .app-download .card-body {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .app-download .card-body > * {
        margin-bottom: 12px;
    }
    .app-download .card-body > *:last-child {
        margin-bottom: 0;
    }
    .app-download .card-header {
        margin-bottom: 16px;
    }
    .account-info > div {
        margin-bottom: 8px;
    }
    .account-info > div:last-child {
        margin-bottom: 0;
    }
}

/* 第二张卡片内的下载按钮更小 */
.region-tip .download-btn {
    padding: 4px 12px;
    font-size: 0.92rem;
}

/* 第二张卡片标题更小，保证一行 */
.region-tip .card-header span {
    font-size: 0.98rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
}

/* 最新公告激活时导航栏左下方角（所有端） */
.nav.notice-active {
    border-radius: 0 0 0 0;
}

/* 新增的appdownload-active类 */
.nav.appdownload-active {
    border-radius: 0 0 0 0;
}

/* 红色下划线样式 */
.underline-gold {
    border-bottom: 2px solid #ffbe3b;
    color: inherit;
    padding-bottom: 2px;
}

/* 第二张卡片标题下划线（加速器要开通会员更改地区） */
.region-tip .card-header span {
    position: relative;
    display: inline-block;
}
.region-tip .card-header span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: #ffbe3b;
    border-radius: 2px;
    width: 100%;
}

.custom-download-btn {
    display: block;
    width: 90%;
    max-width: 420px;
    margin: 0 auto 8px auto;
    background: linear-gradient(180deg, #fa5a57 0%, #e94e3c 100%);
    color: #fff;
    font-size: 1.45rem;
    font-weight: bold;
    border-radius: 12px;
    text-align: center;
    padding: 18px 0;
    box-shadow: 0 4px 16px rgba(234,76,60,0.12);
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.2s;
}
.custom-download-btn:hover {
    background: linear-gradient(180deg, #e94e3c 0%, #fa5a57 100%);
    color: #fff;
}

.card.app-download .card-header .underline-gold {
    color: #111 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}
.card.region-tip > div:first-child span {
    color: #111 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
} 