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

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --primary-color: #4a90e2;
    --success-color: #5cb85c;
    --error-color: #d9534f;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --info-bg: #e8f4f8;
    --info-border: #b3d9e8;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --info-bg: #2a3a4a;
    --info-border: #3a4a5a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.theme-btn {
    background: var(--card-bg);
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.bookmark-tip {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.link-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ping-badge {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
}

.link-text {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    min-width: 120px;
}

.link-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-link {
    font-size: 16px;
}

.link-url a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: inline-block;
    vertical-align: middle;
}

.link-url a:hover {
    opacity: 0.7;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.status-normal {
    background: var(--success-color);
}

.status-error {
    background: var(--error-color);
}

.info-box {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.info-icon {
    font-size: 18px;
}

.check-time {
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clock-icon {
    font-size: 18px;
}

.statistics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
}

.stat-success {
    border-color: var(--success-color);
}

.stat-error {
    border-color: var(--error-color);
}

.stat-icon {
    font-size: 32px;
    font-weight: bold;
}

.stat-success .stat-icon {
    color: var(--success-color);
}

.stat-error .stat-icon {
    color: var(--error-color);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 30px;
    padding: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 25px;
    }

    .title {
        font-size: 28px;
    }

    .link-item {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .link-text {
        min-width: auto;
    }

    .link-url {
        width: 100%;
        order: 3;
    }

    .status-badge {
        margin-left: auto;
    }

    .statistics {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item {
    animation: fadeIn 0.4s ease forwards;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }

/* 加载和错误提示样式 */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--error-color);
    font-size: 16px;
    background: rgba(217, 83, 79, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-icon {
    font-size: 24px;
}

