/* ===== 基础变量与字体定义 ===== */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('/diy/ziti/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 颜色变量 */
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #1f2937;
    --card-background: rgba(255, 255, 255, 0.9);
    
    /* 渐变背景 */
    --background-light: linear-gradient(-45deg, #e6f2ff, #fff0f5, #f0f7ff, #fff5e6);
    --background-dark: linear-gradient(-45deg, #1a202c, #2d3748, #4a5568, #2d3748);
    
    /* 动画 */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 暗黑模式变量覆盖 */
.dark-mode {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #e2e8f0;
    --card-background: rgba(26, 32, 44, 0.9);
}

/* ===== 基础样式重置 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== 页面主体样式 ===== */
body {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-light);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    font-size: 16px;
    transition: var(--transition);
}

body.dark-mode {
    background: var(--background-dark);
}

/* 背景渐变动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 布局容器 ===== */
.wrapper {
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.main {
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.main:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== 标题样式 ===== */
h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ===== 链接列表样式 ===== */
ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    padding-top: 1.5rem;
}

.dark-mode li {
    background-color: rgba(26, 32, 44, 0.8);
}

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

li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

li a:hover {
    color: var(--secondary-color);
}

li a i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

li.disabled a {
    pointer-events: none;
}

.url-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ===== 状态徽章样式 ===== */
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
    color: white;
}

.status-normal {
    background-color: #4CAF50;
}

.status-error {
    background-color: #f44336;
}

.status-checking {
    background-color: #ffeb3b;
    color: black;
}

/* ===== 延迟显示样式 ===== */
.ms-display {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.7em;
    padding: 2px 5px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: white;
    transition: background-color 0.3s ease;
}

.ms-checking {
    background-color: #ffeb3b;
    color: black;
}

.ms-normal {
    background-color: #4CAF50;
}

.ms-error {
    background-color: #f44336;
}

/* ===== 通知区域样式 ===== */
.notice {
    background-color: rgba(230, 242, 255, 0.8);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.dark-mode .notice {
    background-color: rgba(44, 55, 72, 0.8);
}

.notice:hover {
    background-color: rgba(230, 242, 255, 1);
}

.dark-mode .notice:hover {
    background-color: rgba(44, 55, 72, 1);
}

/* ===== 统计容器样式 ===== */
#stats-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

#stats-container:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#last-checked-time {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

.icon-clock, .icon-check, .icon-times {
    margin-right: 5px;
}

.icon-check {
    color: #4CAF50;
}

.icon-times {
    color: #f44336;
}

/* ===== 收藏按钮样式 ===== */
.bookmark-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bookmark-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bookmark-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.bookmark-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 1; }
    20% { transform: scale(25, 25); opacity: 1; }
    100% { opacity: 0; transform: scale(40, 40); }
}

/* ===== 页脚样式 ===== */
.footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-color);
    font-weight: 300;
    opacity: 0.8;
    transition: var(--transition);
}

.footer:hover {
    opacity: 1;
}

/* ===== 模式切换按钮 ===== */
.mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.mode-toggle:hover {
    color: var(--primary-color);
}

/* ===== 背景动画元素 ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-animation span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: move 25s infinite linear;
}

.dark-mode .bg-animation span {
    background: rgba(255, 255, 255, 0.1);
}

.bg-animation span:nth-child(1) { top: 20%; left: 20%; animation-duration: 15s; }
.bg-animation span:nth-child(2) { top: 60%; left: 80%; animation-duration: 17s; width: 40px; height: 40px; }
.bg-animation span:nth-child(3) { top: 40%; left: 40%; animation-duration: 19s; }
.bg-animation span:nth-child(4) { top: 80%; left: 10%; animation-duration: 21s; }

@keyframes move {
    0% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; border-radius: 0; }
    100% { transform: translateX(-1000px) translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* ===== 温馨提示卡片样式 (新增部分) ===== */
.notice-card {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 1.8rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.notice-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.notice-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.notice-card h2 i {
    margin-right: 10px;
    font-size: 1.3em;
}

.notice-lead {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.95;
}

.notice-list {
    list-style-type: none;
}

.notice-list li {
    margin-bottom: 0.85rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.7;
    background: none !important; /* 覆盖原有li样式 */
    padding: 0.5rem 0 0.5rem 1.8rem !important;
    border-radius: 0 !important;
    cursor: default !important;
}

.notice-list li:hover {
    transform: none !important;
    box-shadow: none !important;
}

.notice-list li:before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.4em;
    position: absolute;
    left: 0.2rem;
    top: 0.1rem;
}

.notice-list li strong {
    color: var(--primary-color);
}

.notice-list kbd {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.notice-list code {
    background-color: rgba(0, 0, 0, 0.05);
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.dark-mode .notice-list code {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-dot.demo {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    vertical-align: middle;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .wrapper {
        padding: 1rem;
    }
    
    .main {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .bookmark-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    li {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        padding-top: 1.25rem;
    }
    
    /* === 手机端关键修复：强制横排 === */
    .url-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    /* 网站名称 */
    .site-name {
        display: inline-block !important;
        font-size: 0.9rem !important;
        margin-right: 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 链接 */
    .url-content a {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.85rem !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
        text-decoration: none !important;
    }
    
    /* 链接图标 */
    .url-content a i {
        margin-right: 4px !important;
        font-size: 0.8em !important;
    }
    
    /* 状态标签容器 */
    .status-badges {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin-left: 0 !important;
    }
    
    /* 单个状态标签 */
    .status-badge {
        display: inline-block !important;
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }
    
    .ms-display {
        font-size: 0.6em;
        padding: 1px 3px;
    }
    
    .notice {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    #stats-container {
        padding: 10px;
        margin-top: 15px;
    }
    
    #last-checked-time {
        font-size: 0.9em;
    }
    
    .stat-value {
        font-size: 1.2em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .footer {
        margin-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    .mode-toggle {
        font-size: 1.2rem;
    }
    
    /* 温馨提示卡片响应式 */
    .notice-card {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .notice-card h2 {
        font-size: 1.3rem;
    }
    
    .notice-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem !important;
    }
}
/* ===== 新增优化样式 ===== */

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    margin-top: -0.5rem;
}

/* 链接区域 */
.url-section {
    margin-bottom: 2rem;
}

.url-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    margin-left: 0.25rem;
}

/* 辅助功能：隐藏元素但保持可访问性 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 页脚链接 */
.footer-links {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* 加载性能优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 小屏幕手机进一步优化 */
@media (max-width: 480px) {
    .url-content {
        gap: 5px !important;
    }
    
    .site-name {
        font-size: 0.85rem !important;
        margin-right: 5px !important;
    }
    
    .url-content a {
        font-size: 0.75rem !important;
    }
    
    .status-badge {
        font-size: 0.6rem !important;
        padding: 1px 4px !important;
    }
}
/* 打印样式 */
@media print {
    .bg-animation,
    .mode-toggle,
    .bookmark-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main {
        box-shadow: none !important;
        background: white !important;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        font-weight: normal;
    }
}

/* 减少动画（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== 白天主题优化 ===== */

/* 增强白天主题对比度 */
:root {
    /* 增强的白天主题颜色 */
    --primary-color: #2563eb; /* 更深的蓝色 */
    --secondary-color: #3b82f6;
    --text-color: #1e293b; /* 更深的文字颜色 */
    --card-background: rgba(255, 255, 255, 0.95); /* 更透明的背景 */
    
    /* 新增白天主题专属颜色 */
    --accent-color: #f59e0b; /* 强调色 - 琥珀色 */
    --success-color: #10b981; /* 成功色 - 翠绿色 */
    --warning-color: #f59e0b; /* 警告色 - 琥珀色 */
    --danger-color: #ef4444; /* 危险色 - 红色 */
    
    /* 阴影增强 */
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 渐变增强 */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-warm: linear-gradient(135deg, #fef3c7, #fde68a);
    
    /* 边框增强 */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* 白天主题主容器增强 */
body:not(.dark-mode) .main {
    background-color: var(--card-background);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(59, 130, 246, 0.1);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 20%);
}

/* 白天主题标题增强 */
body:not(.dark-mode) h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 15px;
}

body:not(.dark-mode) h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 白天主题链接卡片增强 */
body:not(.dark-mode) li {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.dark-mode) li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
    background: linear-gradient(to right, #ffffff, #f0f9ff);
}

body:not(.dark-mode) li a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 白天主题收藏按钮增强 */
body:not(.dark-mode) .bookmark-btn {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .bookmark-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

/* 白天主题温馨提示卡片增强 */
body:not(.dark-mode) .notice-card {
    background: linear-gradient(to bottom right, #ffffff, #fefce8);
    border: 1px solid #fde68a;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-medium);
}

body:not(.dark-mode) .notice-card h2 {
    color: var(--accent-color);
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 教程样式优化 - 白天版 */
body:not(.dark-mode) .tutorial-item {
    background: linear-gradient(to right, #f0f9ff, #fefce8);
    border-radius: var(--border-radius-md);
    padding: 1rem !important;
    margin: 1rem 0 !important;
    border: 1px dashed var(--accent-color);
}

body:not(.dark-mode) .tutorial-steps li {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0.5rem !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
}

body:not(.dark-mode) .tutorial-steps li:hover {
    transform: none !important;
}

body:not(.dark-mode) .code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 0.75rem 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    border-left: 3px solid var(--accent-color);
}

body:not(.dark-mode) .code-block.highlight {
    background: #0f172a;
    border-left: 3px solid var(--success-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .format-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

body:not(.dark-mode) .format-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

body:not(.dark-mode) .tutorial-example {
    background: linear-gradient(to right, #dcfce7, #f0fdf4);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #bbf7d0;
}

body:not(.dark-mode) .example-tip {
    font-size: 0.85rem;
    color: #059669;
    font-style: italic;
    margin-top: 0.5rem;
}

/* 白天主题状态指示器增强 */
body:not(.dark-mode) .ms-normal {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    font-weight: 600;
}

body:not(.dark-mode) .ms-error {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    font-weight: 600;
}

body:not(.dark-mode) .ms-checking {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    font-weight: 600;
}

/* 白天主题统计容器增强 */
body:not(.dark-mode) #stats-container {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-light);
}

body:not(.dark-mode) #last-checked-time {
    color: var(--primary-color);
    font-weight: 700;
}

/* 白天主题页脚增强 */
body:not(.dark-mode) .footer {
    color: #64748b;
    font-weight: 400;
}

body:not(.dark-mode) .footer p:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* ===== 响应式优化 ===== */

/* 平板设备 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    body:not(.dark-mode) .wrapper {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    body:not(.dark-mode) .main {
        padding: 2rem;
    }
    
    body:not(.dark-mode) .notice-card {
        padding: 1.5rem;
    }
    
    .tutorial-content {
        font-size: 0.95rem;
    }
    
    .code-block {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* 手机设备 (< 768px) */
@media (max-width: 767px) {
    body:not(.dark-mode) .wrapper {
        padding: 1rem;
    }
    
    body:not(.dark-mode) .main {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    body:not(.dark-mode) h1 {
        font-size: 1.5rem;
        padding-bottom: 12px;
    }
    
    body:not(.dark-mode) h1::after {
        width: 60px;
    }
    
    body:not(.dark-mode) .bookmark-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* 移动端卡片优化 */
    body:not(.dark-mode) li {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    /* 移动端教程优化 */
    body:not(.dark-mode) .tutorial-item {
        padding: 0.875rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .tutorial-steps {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    body:not(.dark-mode) .code-block {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    .format-tags {
        justify-content: center;
    }
    
    body:not(.dark-mode) .format-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
    
    body:not(.dark-mode) .tutorial-example {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    /* 移动端状态徽章优化 */
    body:not(.dark-mode) .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-left: 0.25rem;
    }
    
    body:not(.dark-mode) .ms-display {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
}

/* 大屏设备 (> 1200px) */
@media (min-width: 1200px) {
    body:not(.dark-mode) .wrapper {
        max-width: 700px;
    }
    
    body:not(.dark-mode) .main {
        padding: 3rem;
    }
    
    body:not(.dark-mode) .notice-card {
        padding: 2rem;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    body:not(.dark-mode) .wrapper {
        padding: 1rem;
    }
    
    body:not(.dark-mode) .main {
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    body:not(.dark-mode) .notice-card {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .tutorial-content {
        font-size: 0.9rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    body:not(.dark-mode) {
        --primary-color: #0044cc;
        --text-color: #000000;
        --card-background: #ffffff;
    }
    
    body:not(.dark-mode) li {
        border: 2px solid #000000;
    }
    
    body:not(.dark-mode) .bookmark-btn {
        border: 2px solid #000000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    body:not(.dark-mode) li,
    body:not(.dark-mode) .bookmark-btn,
    body:not(.dark-mode) .notice-card {
        transition: none;
        transform: none;
    }
    
    body:not(.dark-mode) li:hover {
        transform: none;
    }
    
    body:not(.dark-mode) .bookmark-btn:hover {
        transform: none;
    }
}

/* ===== 状态徽章容器 ===== */
.status-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== 扩展的状态标签样式 ===== */
.status-normal {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-weight: 600;
}

.status-checking {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: black;
    font-weight: 600;
}

.status-error {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    font-weight: 600;
}

/* 固定标签样式 */
.status-new {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    font-weight: 600;
}

.status-recommend {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    font-weight: 600;
}

.status-hot {
    background: linear-gradient(135deg, #FF5722, #E64A19);
    color: white;
    font-weight: 600;
}

.status-verified {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: white;
    font-weight: 600;
}

/* 暗黑模式适配 */
.dark-mode .status-normal {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
}

.dark-mode .status-checking {
    background: linear-gradient(135deg, #FFB300, #FF8F00);
}

.dark-mode .status-error {
    background: linear-gradient(135deg, #D32F2F, #C62828);
}

.dark-mode .status-new {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}



/* ===== 强制手机端横排布局 ===== */
@media screen and (max-width: 768px) {
    /* 强制链接容器横排 */
    #url-list li .url-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* 网站名称 */
    #url-list li .url-content .site-name {
        display: inline-block !important;
        font-size: 0.9rem !important;
        margin-right: 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 链接 */
    #url-list li .url-content a {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.85rem !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* 状态标签容器 */
    #url-list li .url-content .status-badges {
        display: flex !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    /* 单个状态标签 */
    #url-list li .url-content .status-badge {
        display: inline-block !important;
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 延迟显示 */
    #url-list li .ms-display {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }
}

/* 小屏幕手机进一步优化 */
@media screen and (max-width: 480px) {
    #url-list li .url-content {
        gap: 6px !important;
    }
    
    #url-list li .url-content .site-name {
        font-size: 0.85rem !important;
        margin-right: 6px !important;
    }
    
    #url-list li .url-content a {
        font-size: 0.8rem !important;
    }
    
    #url-list li .url-content .status-badge {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }
}