/* ==================== CSS变量 ==================== */
:root {
    /* 颜色 */
    --color-primary: #262626;
    --color-white: #FFFFFF;
    --color-text-dark: #1D1D1D;
    --color-text-gray: #C6C6C6;
    --color-text-placeholder: #BABABA;
    --color-footer-text: #666666;
    --color-footer-copyright: #999999;

    /* 尺寸 */
    --container-max-width: 1200px;
    --content-max-width: 963px;
    --border-radius-lg: 21px;
    --border-radius-md: 30px;

    /* 间距 */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 32px;
    --spacing-lg: 48px;

    /* 阴影 */
    --shadow-light: 2px 0px 7px 0px rgba(3, 3, 3, 0.11);
    --shadow-medium: 2px 0px 7px 0px rgba(3, 3, 3, 0.21);

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ==================== 全局样式 ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center -150px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ==================== 顶部导航 ==================== */
.top-nav {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
}

.nav-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 60px;
}

.nav-link {
    font-size: 18px;
    font-weight: normal;
    color: #000000;
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: #E4A024;
}

/* ==================== 容器 ==================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ==================== 图片组件 ==================== */
.top-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.top-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.header-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.header-image img {
    width: 30%;
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.banner-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-image .banner-h5 {
    display: none;
}

.banner-image .banner-pc {
    display: block;
}

/* ==================== 查询面板 ==================== */
.query {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -124px;
}

.query-panel {
    width: 100%;
    max-width: var(--content-max-width);
    min-height: 100px;
    background: var(--color-white);
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius-lg);
    padding: 28px 30px 25px;
    margin: 0 var(--spacing-sm);
}

/* 按钮组 */
.btn-group {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.btn {
    display: inline-block;
    width: 220px;
    min-width: 180px;
    height: 43px;
    line-height: 43px;
    font-size: 18px;
    color: var(--color-primary);
    text-align: center;
    background-image: url('../img/btn.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-active {
    color: var(--color-white);
    background-image: url('../img/btn-hint.png');
}

/* 搜索栏 */
.search-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-input {
    flex: 1;
    max-width: 778px;
    min-width: 0;
    height: 52px;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-md);
    outline: none;
    border: none;
    padding: 0 40px;
    font-size: 19px;
    color: var(--color-text-dark);
    background-image: url('../img/search-input.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: box-shadow var(--transition-fast);
}

.search-input::placeholder {
    color: var(--color-text-placeholder);
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(3, 3, 3, 0.3);
}

.search-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 120px;
    height: 52px;
    font-size: 22px;
    color: var(--color-white);
    background-image: url('../img/search-btn2.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

/* ==================== 公告栏 ==================== */
.notice {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-xs);
}

.notice-wrapper {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    height: 32px;
    margin: 0 var(--spacing-sm);
}

.notice img {
    flex-shrink: 0;
    display: block;
    height: 26px;
    width: auto;
}

.notice-text-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.notice-text {
    font-size: 16px;
    color: var(--color-text-dark);
    white-space: nowrap;
    display: inline-block;
    animation: scroll-left 10s linear infinite;
    /* 暂时注释掉滚动效果 */
    margin: 0;
}

.notice-text:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==================== 详情内容 ==================== */
.detail {
    background-image: url('../img/detail-bg.png');
    background-size: 100% 100%;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 25px auto 0;
    padding: 0 var(--spacing-sm) var(--spacing-md);
}

.detail-section {
    margin-bottom: var(--spacing-md);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-title {
    width: 100%;
    text-align: center;
    padding-top: var(--spacing-md);
    position: relative;
    /* margin-bottom: var(--spacing-lg); */
}

.detail-title img {
    display: block;
    margin: 0 auto;
    position: relative;
}

.detail-title h2,
.detail-title p {
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
}

.detail-title .text {
    font-weight: bold;
    font-size: 24px;
    color: var(--color-text-dark);
    top: 55%;
    transform: translateY(-50%);
}

.detail-title .info {
    font-size: 12px;
    color: var(--color-text-gray);
    bottom: 12%;
    text-transform: uppercase;
}

.detail-content {
    padding: 0 47px 0 36px;
    font-size: 21px;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

/*.detail-content h3 {*/
/*    font-size: 22px;*/
/*    font-weight: bold;*/
/*    margin-top: 20px;*/
/*    margin-bottom: 10px;*/
/*    color: var(--color-text-dark);*/
/*}*/

.detail-content h3:first-child {
    margin-top: 0;
}

.detail-content .note {
    font-size: 18px;
    color: var(--color-text-gray);
    font-style: italic;
}

/* ==================== 页脚 ==================== */
.footer {
    width: 100%;
    /* margin-top: 50px; */
    padding: 40px 0 30px;
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)); */
    /* backdrop-filter: blur(10px); */
    /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    text-align: center;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-footer-text);
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: justify;
}

.footer-certificates {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.footer-certificates img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all var(--transition-fast);
    filter: grayscale(20%);
}

.footer-certificates img:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: grayscale(0%);
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-footer-copyright);
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

/* ==================== 客服浮动图标 ==================== */
.customer-service {
    position: fixed;
    right: 50px;
    bottom: 200px;
    z-index: 1000;
    display: block;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all var(--transition-medium);
    animation: float 3s ease-in-out infinite;
}

.customer-service img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: all var(--transition-fast);
}

.customer-service:hover {
    transform: scale(1.1);
}

.customer-service:hover img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.customer-service:active {
    transform: scale(1.05);
}

/* 浮动动画 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==================== 响应式设计 ==================== */

/* 中等屏幕 (≤992px) */
@media screen and (max-width: 992px) {
    .nav-content {
        padding: 0 60px;
    }

    .nav-left,
    .nav-right {
        gap: 40px;
    }

    .query {
        margin-top: -88px;
    }

    .query-panel {
        max-width: 100%;
        padding: 25px 25px 22px;
    }

    .btn {
        width: 200px;
        font-size: 20px;
    }

    .search-input {
        font-size: 18px;
        padding: 0 30px;
    }

    .search-btn {
        width: 110px;
    }
}

/* 平板设备 (≤768px) */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* 顶部导航响应式 - 隐藏 */
    .top-nav {
        display: none;
    }

    .query {
        margin-top: -195px;
    }

    .query-panel {
        padding: 22px 15px 18px;
        min-height: auto;
        margin: 0 15px;
    }

    .btn-group {
        gap: 6px;
        margin-bottom: 15px;
    }

    .btn {
        flex: 1;
        width: auto;
        min-width: 0;
        font-size: 15px;
        height: 38px;
        line-height: 38px;
        padding: 0 8px;
        border-radius: 19px;
    }

    .search-bar {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        padding: 0 15px;
        height: 44px;
    }

    .search-btn {
        width: 90px;
        height: 44px;
        font-size: 16px;
        border-radius: 22px;
    }

    .notice-wrapper {
        height: 28px;
        margin: 0 15px;
    }

    .notice img {
        height: 28px;
    }

    .notice-text-wrapper {
        height: 28px;
        margin-top: 4px;
    }

    .notice-text {
        font-size: 14px;
        line-height: 28px;
        padding-left: calc(100% - 80px);
    }

    .detail {
        margin: 25px auto 0;
        padding: 0 15px var(--spacing-sm);
    }

    .detail-content {
        padding: 0 var(--spacing-sm);
        font-size: 18px;
    }

    .detail-title .text {
        font-size: 20px;
    }

    .header-image img {
        width: 40%;
    }

    .banner-image .banner-pc {
        display: none;
    }

    .banner-image .banner-h5 {
        display: block;
    }

    .footer {
        margin-top: 30px;
        padding: 30px 0 20px;
    }

    .footer-info {
        font-size: 13px;
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .footer-certificates {
        gap: 20px;
    }

    .footer-certificates img {
        height: 42px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .customer-service {
        right: 10px;
        top: 300px;
        width: 70px;
        height: 70px;
    }
}

/* 手机设备 (≤480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }

    body {
        background-position: center -350px;
    }

    .container {
        padding: 0 var(--spacing-xs);
    }

    /* 顶部导航响应式 - 隐藏 */
    .top-nav {
        display: none;
    }

    .query {
        margin-top: -115px;
    }

    .query-panel {
        padding: 18px 12px 15px;
        border-radius: 15px;
        min-height: auto;
        margin: 0 var(--spacing-xs);
    }

    .btn-group {
        gap: 5px;
        margin-bottom: 12px;
    }

    .btn {
        flex: 1;
        width: auto;
        min-width: 0;
        font-size: smaller;
        height: 28px;
        line-height: 28px;
        padding: 0 5px;
        border-radius: 18px;
    }

    .search-bar {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        height: 28px;
        padding: 0 12px;
    }

    .search-btn {
        width: 75px;
        height: 28px;
        font-size: 14px;
        border-radius: 20px;
    }

    .notice-wrapper {
        height: 26px;
        margin: 0 var(--spacing-xs);
    }

    .notice img {
        height: 26px;
    }

    .notice-text-wrapper {
        height: 26px;
        margin-top: 4px;
    }

    .notice-text {
        font-size: 14px;
        line-height: 26px;
        padding-left: calc(100% - 60px);
        animation: scroll-left 10s linear infinite;
        /* 暂时注释掉滚动效果 */
    }

    .detail {
        margin: 25px auto 0;
        padding: 0 var(--spacing-xs) var(--spacing-sm);
    }

    .detail-content {
        padding: 0 15px;
        font-size: 16px;
    }

    .detail-content h3 {
        font-size: 18px;
    }

    .detail-title .text {
        font-size: 18px;
    }

    .header-image img {
        width: 50%;
    }

    .footer {
        margin-top: 20px;
        padding: 25px 0 15px;
    }

    .footer-info {
        font-size: 12px;
        padding: 0 var(--spacing-xs);
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .footer-certificates {
        gap: 15px;
        padding: 15px 0;
    }

    .footer-certificates img {
        height: 35px;
    }

    .footer-copyright {
        font-size: 11px;
        padding-top: 15px;
    }

    .customer-service {
        right: 10px;
        top: 300px;
        width: 60px;
        height: 60px;
    }
}

/* 超小设备 (≤320px) */
@media screen and (max-width: 320px) {
    .query-panel {
        padding: 15px 10px 12px;
    }

    .btn-group {
        gap: 4px;
        margin-bottom: 10px;
    }

    .btn {
        font-size: 12px;
        height: 34px;
        line-height: 34px;
        padding: 0 3px;
        border-radius: 17px;
    }

    .search-bar {
        gap: 5px;
    }

    .search-input {
        font-size: 12px;
        height: 28px;
        padding: 0 10px;
    }

    .search-btn {
        width: 65px;
        height: 28px;
        font-size: 13px;
        border-radius: 19px;
    }

    .detail-content {
        font-size: 14px;
    }
}

/* ==================== 通用辅助类 ==================== */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================== 自定义弹框 ==================== */
.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.custom-alert-overlay.show {
    display: flex;
}

.custom-alert-box {
    background-image: url('../img/alert.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 400px;
    height: 458px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    animation: scaleIn 0.3s ease;
    cursor: pointer;
}

.custom-alert-content {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 52px 52px;
}

.custom-alert-message {
    font-size: 16px;
    color: var(--color-text-dark);
    text-align: center;
    line-height: 2;
    word-wrap: break-word;
    max-width: 100%;
    margin: 0;
    white-space: pre-line;
}

/* 弹窗中的高亮文字样式 */
.custom-alert-message .member-name,
.custom-alert-message .amount-value,
.custom-alert-message .upgrade-value,
.custom-alert-message .next-level {
    font-weight: bold;
    color: #a55a28;
}

.custom-alert-message .current-level {
    font-weight: bold;
    font-size: 20px;
    color: #903c09;
}

/* 按钮已移除，保留此注释以便将来恢复 */

/* 弹框动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .custom-alert-box {
        width: 300px;
        height: 358px;
    }

    .custom-alert-content {
        padding: 80px 40px 40px;
    }

    .custom-alert-message {
        font-size: 14px;
    }

    .custom-alert-message .current-level {
        font-size: 18px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        background: none;
    }

    .query,
    .search-bar,
    .customer-service {
        display: none;
    }
}