/* 基础样式 */
/* Telegram群组: https://t.me/htpnu */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #2c3e50;
    --bg-color: #ecf0f1;
    --card-bg: #ffffff;
    --progress-bg: #dfe6e9;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.countdown {
    font-size: 5rem;
    font-weight: bold;
    margin: 30px 0;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: var(--progress-bg);
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--primary-color);
}

.browser-guide {
    display: none;
    background-color: var(--warning-color);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    text-align: left;
    position: relative;
}

.browser-guide i {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.domain-info {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
}

.domain-testing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.domain-item {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: var(--transition);
    width: 120px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.domain-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.domain-item.fastest {
    background-color: var(--success-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: white;
}

.domain-item .ping {
    font-size: 0.9rem;
    opacity: 0.8;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    align-self: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.theme-btn.default { background: linear-gradient(135deg, #3498db, #2980b9); }
.theme-btn.dark { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.theme-btn.warm { background: linear-gradient(135deg, #e67e22, #d35400); }