/**
 * 现代化样式增强 - 修复版
 * 提升网站美观度和用户体验，不影响原有布局
 */

/* ========== 全局优化 ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 平滑过渡效果 ========== */
a, button, input, .btn, .titlelink {
    transition: color 0.2s ease-in-out, background-color 0.2s ease;
}

/* ========== 卡片阴影效果（仅添加阴影，不改变布局） ========== */
.mod_1, .mod_2, .mod_ad {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.mod_1:hover, .mod_2:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ========== 表格美化（保持原有布局） ========== */
.tabla_index_haoma_list th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
}

.tabla_index_haoma_list tr:hover td {
    background-color: #f8f9ff;
}

/* ========== 按钮美化 ========== */
.titlelink img {
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.titlelink img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* ========== 号码显示优化 ========== */
.hao a {
    color: #667eea;
    transition: color 0.2s ease;
}

.hao a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* ========== 价格显示优化 ========== */
font[color="#FF0000"] {
    color: #ff4757 !important;
    font-weight: 700;
}

/* ========== 友情链接美化 ========== */
.friendLink {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.friendLink .hd {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.friendLink .text a {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.friendLink .text a:hover {
    background: #667eea;
    color: #ffffff;
}

/* ========== 图片懒加载 ========== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

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

.content {
    animation: fadeIn 0.5s ease-out;
}
