* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0506;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #fff;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #fff;
}

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

ul {
    list-style: none;
}

.wrapper {
    max-width: 375px;
    margin: 0 auto;
    overflow: hidden;
    background: url('../image/bg.png') no-repeat top center;
    background-size: 100% auto;
    min-height: 100vh;
}

/* 顶部Logo */
.header {
    text-align: center;
    padding: 25px 15px 10px;
}

.header .logo img {
    max-height: 50px;
    margin: 0 auto;
}

/* 轮播Banner区域 */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-section img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.swiper-container {
    width: 100%;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    background: #d4a04a;
    width: 20px;
    border-radius: 4px;
}

/* 最新网址线路 */
.line-section {
    position: relative;
    margin: 20px 15px 30px;
    background: #1D1B1B;
   
    border-radius: 16px;
    padding: 20px 16px;
    overflow: hidden;
}

.line-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: url('../image/decor.png') no-repeat top right;
    background-size: 100% auto;
    pointer-events: none;
}

.line-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 500;
    color: #DFDFDF;
}

.line-title .link-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* 线路列表 */
.linebox ul li {
    margin-bottom: 10px;
}

.linebox ul li:last-child {
    margin-bottom: 0;
}

.linebox ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    background: #131211;
    border: 0.5px solid transparent;
    border-radius: 9999px;
    padding: 4px 4px 4px 16px;
    transition: all 0.3s ease;
    background-clip: padding-box;
    position: relative;
}

.linebox ul li a::before {
    content: '';
    position: absolute;
    inset: -0.5px;
    border-radius: 9999px;
    padding: 0.5px;
    background: #ED534A;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.linebox ul li a:hover {
    background: #1a1716;
}

.line-l {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.linetime {
    color: #B53A3A;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    white-space: nowra
}

.linetext {
    font-size: 14px;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linebtn {
    width: 74px;
    height: 30px;
    background: linear-gradient(to bottom, #6D0F07, #ED534A);
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #B53A3A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 375px) {
    .linetime {
        font-size: 12px;
        min-width: 40px;
        padding: 3px 8px;
    }

    .linetext {
        font-size: 12px;
    }

    .linebtn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .line-title {
        font-size: 16px;
    }

    .header .logo img {
        max-height: 40px;
    }
}
