/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    color: #fff;
    font-size: 16px;
    font-family: -apple-system, "Helvetica Neue", Roboto, sans-serif;
    background: linear-gradient(180deg, #1a1b2f 0%, #131420 100%);
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(../img/bg.png) top center/cover no-repeat;
    padding: 20px;
    margin-bottom: 20px;
}

.logo-container {
    position: relative;
    z-index: 2;
    padding-top: 30px;
}

.logo {
    height: 80px;
    width: auto;
    display: block;
}

.banner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    margin: 0 auto;
}

.visual {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Speed Test Section */
.speed-test {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

#lineCtrl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.progress-content {
    background: rgba(20, 21, 33, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: 240px;
    justify-content: space-between;
}

.progress-content:hover {
    transform: translateY(-5px);
}

.progress-content .head {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.progress-content .head .tag {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.progress-content .head .name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Tag Colors */
.speed-green .head .tag { 
    background: url(../img/tag-green.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}
.speed-blue .head .tag { 
    background: url(../img/tag-blue.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}
.speed-purple .head .tag { 
    background: url(../img/tag-blue-purple.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}
.speed-orange .head .tag { 
    background: url(../img/tag-orange.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}
.speed-red .head .tag { 
    background: url(../img/tag-red.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}
.speed-blue-purple .head .tag { 
    background: url(../img/tag-purple.png) center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(142, 68, 173, 0.3);
}

.progress-content .circleArea {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 15px 0;
}

.circleArea::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--progress-color) var(--progress), transparent var(--progress));
    mask: radial-gradient(transparent 55%, #000 56%);
    -webkit-mask: radial-gradient(transparent 55%, #000 56%);
    filter: drop-shadow(0 0 10px var(--glow-color));
    animation: glowPulse 2s infinite;
}

.circleArea::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(20, 21, 33, 0.9);
    transform: scale(0.85);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.circleArea .val {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    z-index: 1;
    text-shadow: 0 0 15px var(--glow-color);
}

.circleArea .ms {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--glow-color);
    z-index: 1;
    text-shadow: 0 0 10px var(--glow-color);
}

/* Progress Colors and Values */
.speed-green { 
    --progress-color: rgb(0, 210, 122), rgb(0, 185, 108), rgb(92, 232, 169) 83%;
    --progress: 280deg;
    --glow-color: rgba(0, 210, 122, 0.6);
}
.speed-blue { 
    --progress-color: rgb(0, 117, 255), rgb(0, 194, 255) 82%;
    --progress: 280deg;
    --glow-color: rgba(0, 117, 255, 0.6);
}
.speed-purple { 
    --progress-color: rgb(80, 64, 255), rgb(155, 160, 255) 81%;
    --progress: 285deg;
    --glow-color: rgba(80, 64, 255, 0.6);
}
.speed-orange { 
    --progress-color: rgb(255, 77, 0), rgb(255, 183, 0) 77.25%;
    --progress: 300deg;
    --glow-color: rgba(255, 77, 0, 0.6);
}
.speed-red { 
    --progress-color: rgb(179, 0, 0), rgb(255, 49, 104) 62.5%;
    --progress: 310deg;
    --glow-color: rgba(179, 0, 0, 0.6);
}
.speed-blue-purple { 
    --progress-color: rgb(153, 0, 255), rgb(253, 134, 255) 80.875%;
    --progress: 320deg;
    --glow-color: rgba(153, 0, 255, 0.6);
}

.progress-content .play {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 10px 0;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Button Colors */
.speed-green .play { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.speed-blue .play { background: linear-gradient(135deg, #3498db, #2980b9); }
.speed-purple .play { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.speed-orange .play { background: linear-gradient(135deg, #e67e22, #d35400); }
.speed-red .play { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.speed-blue-purple .play { background: linear-gradient(135deg, #8e44ad, #6c3483); }

.progress-content .play:hover {
    filter: brightness(1.1) contrast(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hot Icon */
.progress-content .play img.hot {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Features Section */
.features {
    width: 100%;
    padding: 20px 0;
    background: url(../img/bg-footer.png) center bottom/cover no-repeat;
    position: relative;
    margin-top: auto;
    min-height: 160px;
    display: flex;
    align-items: center;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 21, 33, 0.9), rgba(20, 21, 33, 0.7));
    z-index: 1;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, var(--icon-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--icon-color);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.feature-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Feature Icon Colors */
.feature-item:nth-child(1) .feature-icon { 
    --icon-color: rgba(46, 204, 113, 0.8);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}
.feature-item:nth-child(2) .feature-icon { 
    --icon-color: rgba(230, 126, 34, 0.8);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
}
.feature-item:nth-child(3) .feature-icon { 
    --icon-color: rgba(52, 152, 219, 0.8);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}
.feature-item:nth-child(4) .feature-icon { 
    --icon-color: rgba(155, 89, 182, 0.8);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
}

/* Footer Styles */
.footer {
    position: relative;
    width: 100%;
    min-height: 368px;
    margin-top: auto;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/bg-footer.png) center/cover no-repeat;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.footer ul {
    display: flex;
    justify-content: center;
    gap: 110px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer ul li img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer ul li p {
    color: #fff;
    font-size: 20px;
    text-transform: capitalize;
}

/* Footer Icon Shadows */
.footer ul li:nth-child(1) img { filter: drop-shadow(0 0 15px rgba(63, 252, 167, 0.8)); }
.footer ul li:nth-child(2) img { filter: drop-shadow(0 0 15px rgba(255, 181, 0, 0.8)); }
.footer ul li:nth-child(3) img { filter: drop-shadow(0 0 15px rgba(0, 187, 255, 0.8)); }
.footer ul li:nth-child(4) img { filter: drop-shadow(0 0 15px rgba(145, 0, 255, 0.8)); }

/* Service Button */
.service-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.online-kf {
    display: block;
    transition: transform 0.3s ease;
}

.online-kf:hover {
    transform: scale(1.1);
}

.online-kf img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .progress-content {
        flex: 0 0 calc(33.333% - 10px);
    }
    #lineCtrl {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    header {
        height: 300px;
        padding: 15px;
    }

    .logo-container {
        padding-top: 20px;
    }

    .logo {
        height: 60px;
    }

    .banner-container {
        height: 220px;
    }

    .speed-test {
        padding: 0 15px;
    }

    #lineCtrl {
        gap: 8px;
        padding: 15px 0;
    }

    .progress-content {
        padding: 15px 12px;
        min-height: 200px;
    }

    .progress-content .head .tag {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .progress-content .head .name {
        font-size: 15px;
    }

    .progress-content .circleArea {
        width: 100px;
        height: 100px;
        margin: 12px 0;
    }

    .circleArea .val {
        font-size: 32px;
    }

    .circleArea .ms {
        font-size: 13px;
    }

    .progress-content .play {
        padding: 8px 0;
        font-size: 14px;
    }

    .progress-content .play img.hot {
        width: 18px;
        height: 18px;
    }

    .features {
        padding: 20px 0;
        min-height: 150px;
    }

    .features-grid {
        gap: 30px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .feature-icon img {
        width: 40px;
        height: 40px;
    }

    .feature-title {
        font-size: 15px;
    }

    .service-button {
        right: 15px;
        bottom: 15px;
    }

    .online-kf img {
        width: 60px;
        height: 60px;
    }

    .progress-content .hot {
        width: 20px;
        height: 20px;
        right: 12px;
        bottom: 18%;
    }
}

@media (max-width: 480px) {
    header {
        height: 250px;
        padding: 10px;
    }

    .logo-container {
        padding-top: 15px;
    }

    .logo {
        height: 50px;
    }

    .banner-container {
        height: 180px;
    }

    .speed-test {
        padding: 0 10px;
    }

    #lineCtrl {
        gap: 6px;
        padding: 10px 0;
    }

    .progress-content {
        padding: 12px 10px;
        min-height: 180px;
    }

    .progress-content .head {
        margin-bottom: 15px;
    }

    .progress-content .head .tag {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .progress-content .head .name {
        font-size: 14px;
    }

    .progress-content .circleArea {
        width: 90px;
        height: 90px;
        margin: 10px 0;
    }

    .circleArea .val {
        font-size: 28px;
    }

    .circleArea .ms {
        font-size: 12px;
    }

    .progress-content .play {
        padding: 7px 0;
        font-size: 13px;
    }

    .features {
        padding: 15px 0;
    }

    .features-grid {
        gap: 25px;
        padding: 0 15px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }

    .feature-title {
        font-size: 13px;
        margin-top: 8px;
    }

    .service-button {
        right: 15px;
        bottom: 15px;
    }

    .online-kf img {
        width: 60px;
        height: 60px;
    }

    .progress-content .hot {
        width: 18px;
        height: 18px;
        right: 10px;
        bottom: 16%;
    }
}

/* 添加光晕动画 */
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 10px var(--glow-color));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--glow-color)) brightness(1.2);
    }
    100% {
        filter: drop-shadow(0 0 10px var(--glow-color));
    }
}

/* 热门图标样式 */
.progress-content .hot {
    position: absolute;
    right: 15px;
    bottom: 17%;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(255, 100, 0, 0.3));
    z-index: 2;
}