body {
    font-size: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ===== 导航外层包裹（sticky + 搜索下拉定位参考） ===== */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 640px;
}

/* ===== 顶部导航栏 ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2c2c2c;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo img {
    height: 58px;
    border-radius: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-btn {
    display: inline-block;
    padding: 6px 18px;
    font-size: 16px;
    color: #ccc;
    border-radius: 20px;
    border: 1.5px solid #555;
    background: transparent;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.nav-btn.active {
    color: #fff;
    background: #4e6ef2;
    border-color: #4e6ef2;
}
.nav-btn.active:hover {
    color: #fff;
    background: #315efb;
}

/* ===== 主体容器 ===== */
.main-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 15px 24px;
    padding: 8px 20px 30px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ===== 搜索区域 ===== */
.search-area {
    position: relative;
}

.search-form {
    position: relative;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #c4c7ce;
    border-radius: 10px 10px 10px 10px;
    overflow: hidden;
    transition: border-color 0.3s;
    background: #fff;
}
.search-input-wrap:focus-within {
    border-color: #4e6ef2;
}

#search-text,
#orderNumInput {
    flex: 1;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
}

.search-btn {
    width: 108px;
    height: 48px;
    background: #4e6ef2;
    color: #fff;
    font-size: 17px;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.search-btn:hover {
    background: #315efb;
}

/* ===== 搜索建议下拉 ===== */
#word {
    position: absolute;
    list-style: none;
    top: 56px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    z-index: 20000;
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-align: left;
}
#word li {
    overflow: hidden;
    height: 36px;
    padding: 0 16px;
    line-height: 36px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}
#word li:hover {
    background-color: #f5f5f5;
}

/* ===== 轮播图 ===== */
.carousel-wrap {
    position: relative;
    margin: 0 0 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    user-select: none;
    -webkit-user-select: none;
}
.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
}
.carousel-slide {
    flex: 0 0 100%;
    display: block;
}
.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* 左右箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
.carousel-wrap:hover .carousel-arrow {
    opacity: 1;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* 圆点指示器 */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.25s;
}
.dot.active {
    width: 22px;
    border-radius: 4px;
    background: #4e6ef2;
}

/* ===== 内容/榜单区域 ===== */
.content-area {
    margin-top: 40px;
    text-align: left;
}

.content-area .title {
    font-size: 16px;
    color: #888;
    margin-bottom: 12px;
    padding-left: 4px;
}
.content-area .title span {
    font-weight: 500;
}

.mylist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== 搜索结果列表项 ===== */
.contenfl {
    padding: 6px 0;
    margin: 2px 0;
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.15s;
}
.contenfl:hover {
    background: #f5f5f5;
}

.aHref {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
}

.listDa {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.listDa > .title {
    color: #222;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contenfl img {
    margin-right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
}

.numRank {
    width: 36px;
    text-align: center;
    color: #eb4b5e;
    font-size: 18px;
    font-weight: bold;
    font-family: Helvetica, PingFangSC-Regular, "PingFang SC", "Microsoft YaHei", sans-serif;
    flex-shrink: 0;
}

/* ===== 隔行背景色 ===== */
.mylist .contenfl:nth-child(even) {
    background: #f5f5f5;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding: 12px 0;
}
.page-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    color: #4e6ef2;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover:not([disabled]) {
    background: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
}
.page-btn.active {
    background: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
}
.page-btn[disabled] {
    color: #ccc;
    cursor: not-allowed;
}
.page-info {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
}

/* ===== 底部 ===== */
.footer-text {
    margin-top: auto;
    padding: 30px 0 20px;
    color: #999;
    text-align: center;
    font-size: 13px;
}
.footer-text a {
    color: #999;
}
.footer-text a:hover {
    color: #315efb;
}

/* ===== 导航搜索图标 ===== */
.nav-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    border-radius: 20px;
    border: 1.5px solid #555;
    color: #ccc;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.nav-search-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 搜索下拉 ===== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    background: #fff;
    padding: 12px 20px 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
}

/* ===== 支付页 ===== */
.pay-page {
    background: #f5f5f5;
}

/* ===== 乐谱展示页 ===== */
.show-page {
    justify-content: center;
}
.show-title {
    font-size: 22px;
    color: #222;
    text-align: center;
    margin: 20px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    padding: 15px;
    background: #fff;
}
.show-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.show-tip {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.8;
}
.show-tip .highlight {
    font-size: 16px;
    font-weight: bold;
    color: #e6511b;
}

.show-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 24px;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}
.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}
.alipay-btn {
    background: #1677FF;
    padding: 10px 40px;
    font-size: 17px;
}
.alipay-btn:hover {
    background: #0e5ed9;
}
.wechat-btn {
    background: #1AAD19;
}
.wechat-btn:hover {
    background: #179116;
}
.free-btn {
    background: #e8850f;
}
.free-btn:hover {
    background: #d0780c;
}

/* ===== 支付页 ===== */
.pay-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
    background: #fff;
    margin-bottom: 16px;
}
.pay-card .header {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 16px;
}
.pay-amount {
    text-align: center;
    margin-bottom: 16px;
}
.pay-amount .label {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}
.pay-amount .money {
    font-size: 32px;
    font-weight: bold;
    color: #4e6ef2;
}
.pay-qrcode {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.pay-warning {
    text-align: center;
    font-size: 14px;
    color: #e6511b;
    margin-bottom: 16px;
}
.pay-countdown {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}
.pay-order-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.pay-order-info .order-num {
    font-weight: 500;
    color: #333;
}
.pay-check-btn {
    padding: 8px 20px;
    font-size: 14px;
    color: #fff;
    background: #4e6ef2;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.pay-check-btn:hover {
    background: #315efb;
}
.pay-tip {
    text-align: center;
    font-size: 14px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 10px;
}

#response {
    margin-top: 10px;
    color: #999;
    font-size: 14px;
}

/* ===== 移动端适配 ===== */
@media screen and (max-width: 767px) {
    .main-wrapper {
        max-width: 100%;
        margin: 0 10px 16px;
        padding: 8px 14px 24px;
    }
    .top-nav {
        padding: 4px 16px;
    }
    .nav-left {
        gap: 10px;
    }
    .nav-logo img {
        height: 44px;
    }
    .nav-links {
        gap: 6px;
    }
    .nav-btn {
        padding: 6px 14px;
        font-size: 16px;
    }
    .carousel-arrow {
        display: none;
    }
    .carousel-slide img {
        aspect-ratio: 16 / 9;
    }
    .search-input-wrap {
        border-radius: 8px;
    }
    #search-text,
#orderNumInput {
        height: 44px;
        font-size: 15px;
    }
    .search-btn {
        width: 80px;
        height: 44px;
        font-size: 15px;
    }
    .listDa > .title {
        font-size: 16px;
    }
    .show-title {
        font-size: 18px;
    }
    .show-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .download-btn {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }
    .alipay-btn {
        padding: 8px 24px;
        font-size: 15px;
    }
    .nav-search-icon {
        width: 44px;
        height: 32px;
        border-radius: 16px;
    }
    .nav-search-icon svg {
        width: 18px;
        height: 18px;
    }
    .search-dropdown {
        padding: 10px 16px 12px;
    }
    .pay-card {
        padding: 20px 16px;
    }
    .pay-qrcode {
        width: 170px;
        height: 170px;
    }
    .pay-amount .money {
        font-size: 28px;
    }
    .pay-order-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
