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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.page-container {
    max-width: 800px;
    width: 100%;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-section img {
    max-width: 220px;
    height: auto;
}

/* Info Section */
.info-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-size: 14px;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

/* Speed Test Section */
.speed-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #333;
    border-top: 2px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.speed-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: #2a2a2a;
    border-radius: 8px;
    border: 2px solid #333;
}

.speed-test-item.fastest {
    border-color: #4caf50;
    background: #1a2a1a;
}

.speed-test-item.slow {
    border-color: #ff9800;
    background: #2a2010;
}

.speed-test-item.error {
    border-color: #f44336;
    background: #2a1010;
}

.domain-link-test {
    font-weight: 600;
    color: #4a9eff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-link-test:hover {
    color: #70b5ff;
    text-decoration: underline;
}

.domain-icon-test {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.speed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.fastest {
    background: #4caf50;
    color: white;
}

.badge.slow {
    background: #ff9800;
    color: white;
}

.badge.error {
    background: #f44336;
    color: white;
}

#recommendation {
    background: #4a9eff;
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Carousel */
.carousel-container {
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.carousel-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 16px;
    opacity: 0.95;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* Domains Container */
.domains-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Domain Section */
.domain-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header .icon {
    font-size: 28px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.domain-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 2px solid #333;
    text-decoration: none;
    color: #4a9eff;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.domain-item:hover {
    background: #333;
    border-color: #4a9eff;
    transform: translateX(5px);
}

.domain-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.domain-name {
    font-family: 'Courier New', monospace;
    flex: 1;
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.domain-item:hover .arrow {
    transform: translateX(5px);
}

/* Notice */
.notice-container {
    margin-bottom: 25px;
}

.notice-box {
    background: #2a2010;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid #443;
}

.notice-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffb74d;
    font-weight: 600;
}

.notice-content p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 6px;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

/* Contact Buttons */
.contact-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn.telegram {
    background: #2a2a2a;
    color: #0088cc;
    border-color: #0088cc;
}

.contact-btn.telegram:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.contact-btn.line {
    background: #2a2a2a;
    color: #00c300;
    border-color: #00c300;
}

.contact-btn.line:hover {
    background: #00c300;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 195, 0, 0.3);
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-text {
    font-size: 15px;
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .logo-section img {
        max-width: 180px;
    }

    .carousel-track {
        height: 250px;
    }

    .carousel-content h2 {
        font-size: 24px;
    }

    .carousel-content p {
        font-size: 14px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .domain-section {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .domain-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .notice-box {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-section img {
        max-width: 150px;
    }

    .carousel-track {
        height: 220px;
    }

    .carousel-content h2 {
        font-size: 20px;
    }

    .carousel-content p {
        font-size: 13px;
    }

    .domain-item:hover {
        transform: translateX(3px);
    }
}
