:root {
    --primary-blue: #1e88e5;    /* 主要蓝色 */
    --dark-blue: #1565c0;       /* 深蓝色 */
    --light-blue: #64b5f6;      /* 浅蓝色 */
    --hover-blue: #42a5f5;      /* 悬停蓝色 */
    --bg-blue: #f5f9ff;         /* 背景浅蓝 */
    --text-primary: #2c3e50;    /* 主要文字颜色 */
    --text-secondary: #546e7a;  /* 次要文字颜色 */
    --border-color: #e3f2fd;    /* 边框颜色 */
    /* 蓝色主题（默认） */
    --theme-blue-primary: #1e88e5;
    /* 绿色主题 */
    --theme-green-primary: #2e7d32;
    /* 红色主题 */
    --theme-red-primary: #d32f2f;
    /* 橙色主题 */
    --theme-orange-primary: #f57c00;
    /* 灰色主题 */
    --theme-gray-primary: #546e7a;
    /* 紫色主题 */
    --theme-purple-primary: #7b1fa2;
}

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

body {
    background-color: var(--bg-blue);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative;
}

/* 搜索框容器样式 */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
    gap: 10px;  /* 添加间距 */
}

/* 搜索输入框样式 */
.search-box input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(30, 136, 229, 0.1);
    min-width: 0;  /* 允许输入框缩小 */
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

/* 搜索按钮样式 */
.search-box button {
    padding: 12px 25px;
    font-size: 16px;
    color: white;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(30, 136, 229, 0.1);
    white-space: nowrap;  /* 防止按钮文字换行 */
    flex-shrink: 0;  /* 防止按钮缩小 */
}

.search-box button:hover {
    background-color: var(--hover-blue);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
    transform: translateY(-1px);
}

.search-box button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(30, 136, 229, 0.1);
}

/* 搜索框占位符文本样式 */
.search-box input::placeholder {
    color: var(--text-secondary);
}

/* 搜索框聚焦时的占位符文本样式 */
.search-box input:focus::placeholder {
    opacity: 0.6;
}

/* 表头容器样式 */
.table-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
}

/* 表头内容布局 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 分类按钮容器 */
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

/* 统计信息样式 */
.stats-cell {
    text-align: right;
    white-space: nowrap;
    min-width: 180px;
    margin-left: 10px;  /* 减小左边距 */
    padding-left: 10px;  /* 减小内边距 */
}

.search-stats {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    text-align: right;
}

/* 修改categories样式并添加新样式 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

/* 分类按钮样式 */
.category-btn {
    padding: 6px 12px;
    background-color: var(--bg-blue);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.category-btn:hover {
    background-color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.15);
    transform: translateY(-1px);
}

.category-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.2);
}

/* 修改移动端响应式布局 */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;  /* 改为纵向排列 */
        align-items: stretch;
        padding: 6px 10px;
        gap: 6px;
    }

    .categories {
        width: 100%;  /* 占满宽度 */
        gap: 4px;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        display: flex;  /* 确保水平排列 */
        flex-wrap: nowrap;  /* 防止换行 */
    }

    /* 隐藏滚动条但保持功能 */
    .categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 4px 8px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 3px;
        margin: 0;
        flex-shrink: 0;
    }

    .search-stats {
        font-size: 12px;
        margin-right: 5px;
    }

    /* 当没有统计信息时隐藏空间 */
    .search-stats:empty {
        display: none;
    }

    /* 调整分类按钮和统计信息的布局 */
    .category-buttons {
        margin-bottom: 25px;  /* 为统计信息预留空间 */
    }
    
    /* 移动端统计信息定位 */
    .mobile-search-stats {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 5px;
        font-size: 12px;
        color: var(--text-secondary);
        background: white;
        padding: 2px 5px;
        border-radius: 4px;
        z-index: 100;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 搜索后显示统计信息 */
    .mobile-search-stats:not(:empty) {
        display: block;
    }

    /* 搜索框容器 */
    .search-box {
        position: relative;
        margin-bottom: 25px;
    }
    
    /* 隐藏原始位置的统计信息 */
    .stats-cell {
        display: none;
    }
}

/* 优化移动端表格样式 */
@media (max-width: 768px) {
    thead th {
        padding: 10px 12px;
        font-size: 13px;
    }

    td {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 表格容器样式 */
.phone-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* 表格基础样式 */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#phoneTable {
    width: 100%;
    border-collapse: collapse;
}

/* 表格单元格基础样式 */
#phoneTable th,
#phoneTable td {
    padding: 12px 20px;  /* 增加水平内边距 */
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* 表头样式 */
thead th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    font-size: 15px;
    text-align: center;  /* 表头居中对齐 */
}

/* 设置列宽比例 */
#phoneTable th:nth-child(1),
#phoneTable td:nth-child(1) {
    width: 20%;  /* 名称列 */
}

#phoneTable th:nth-child(2),
#phoneTable td:nth-child(2) {
    width: 40%;  /* 电话列 */
}

#phoneTable th:nth-child(3),
#phoneTable td:nth-child(3) {
    width: 40%;  /* 位置列 */
}

/* 表格单元格样式 */
td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;  /* 单元格左对齐 */
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}

/* 表格行基础样式 */
#phoneTable tr {
    position: relative;
    transition: all 0.3s ease;
}

/* 表格行悬停效果 */
#phoneTable tbody tr:not(.category-header) {
    cursor: pointer;
}

#phoneTable tbody tr:not(.category-header):hover {
    background-color: var(--bg-blue) !important;
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--primary-blue);  /* 左侧蓝色边框 */
}

/* 分类标题行特殊处理 */
#phoneTable tr.category-header {
    background-color: var(--bg-blue);
}

#phoneTable tr.category-header:hover {
    background-color: #e8f4ff;
    transform: none;
    box-shadow: none;
}

/* 移除可能冲突的样式 */
#phoneTable tr:nth-child(even) {
    background-color: transparent;
}

/* 表格内容为空时的样式 */
.no-results {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    background: var(--bg-blue);
}

/* 表格列宽设置 */
table th:nth-child(1),
table td:nth-child(1) {
    width: 20%;  /* 名称列宽度 */
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 40%;  /* 电话列宽度 */
    text-align: center;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 40%;  /* 位置列宽度 */
    text-align: center;
}

/* 单独设置位置列的单元格颜色 */
table td:nth-child(3) {
    color: var(--text-secondary);  /* 只有内容是灰色 */
}

/* 表格响应式布局 */
@media (max-width: 768px) {
    thead th, tbody td {
        padding: 10px;  /* 移动端减小内边距 */
    }
    
    td:nth-child(3) {
        max-width: none;  /* 移除最大宽度限制 */
        white-space: normal;  /* 允许换行 */
    }

    /* 移动端列宽比例 */
    #phoneTable th:nth-child(1),
    #phoneTable td:nth-child(1) {
        width: 40%;
    }

    #phoneTable th:nth-child(2),
    #phoneTable td:nth-child(2) {
        width: 30%;
    }

    #phoneTable th:nth-child(3),
    #phoneTable td:nth-child(3) {
        width: 30%;
    }
}

/* 导航条样式 */
.nav-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding: 0 15px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 15px;  /* 从 10px 增加到 15px */
    align-items: center;
}

/* 导航链接基础样式 */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 32px;  /* 固定高度 */
    display: flex;  /* 使用flex布局 */
    align-items: center;  /* 垂直居中 */
}

.nav-link:hover {
    background-color: var(--dark-blue);
    color: white;
}

.nav-link.active {
    background-color: var(--dark-blue);
    color: white;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-links {
        gap: 10px;
    }
}

/* 下拉菜单样式调整 */
.nav-dropdown {
    position: relative;
    display: flex;  /* 使用flex布局 */
    align-items: center;  /* 垂直居中 */
    height: 32px;  /* 与其他导航项保持一致 */
}

.nav-dropdown .nav-link {
    padding-right: 24px;  /* 为箭头留出空间 */
    position: relative;
    height: 100%;  /* 继承父元素高度 */
}

.nav-dropdown .arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    transform: translateY(-10px);
    background-color: var(--primary-blue);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 101;
    padding: 8px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 6px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: var(--dark-blue);
    color: white;
    transform: translateX(4px);
}

/* 添加小箭头指示器 */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
}

/* 添加分隔线 */
.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2px;
}

/* 添加悬停时的光晕效果 */
.nav-dropdown:hover .nav-link {
    background-color: var(--dark-blue);
    color: white;
}

/* 通知面板样式 */
.notification-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;  /* 改为底部对齐 */
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform-origin: bottom right;  /* 改为底部右侧 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.notification-panel.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.notification-header {
    padding: 8px;  /* 减小内边距 */
    display: flex;
    justify-content: flex-end;  /* 右对齐 */
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.notification-content {
    padding: 0 15px 15px;  /* 调整内边距 */
}

.notification-content img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

.notification-content img:last-child {
    margin-bottom: 0;
}

/* 通知图标样式 */
.notification-icon {
    position: fixed;
    right: 20px;
    bottom: 20px;  /* 改为底部对齐 */
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 999;
    display: none;
    transition: transform 0.2s ease;
}

.notification-icon:hover {
    transform: scale(1.05);
}

.notification-icon img {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .notification-panel {
        display: block;  /* 改为block，由JS控制显示隐藏 */
        opacity: 0;
        pointer-events: none;
        transform: scale(0.95);
        right: 15px;
        bottom: 15px;
        width: 280px;  /* 稍微调小宽度 */
    }

    .notification-panel.show {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
    
    .notification-icon {
        display: flex;
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    
    .notification-icon img {
        width: 20px;
        height: 20px;
    }
}

/* 侧边栏基础样式 */
.side-menu {
    position: fixed;
    left: 0;
    top: 70px;  /* 导航条下方 */
    z-index: 98;
}

.side-toggle {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.side-toggle:hover {
    background: var(--dark-blue);
    width: 45px;
}

.menu-icon {
    font-size: 20px;
}

.side-panel {
    position: fixed;
    left: -280px;  /* 确保完全隐藏 */
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 97;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    transform: translateX(-100%);  /* 添加transform确保完全隐藏 */
}

.side-menu.active .side-panel {
    left: 0;
    transform: translateX(0);  /* 显示时重置transform */
}

.side-header {
    padding: 12px 20px;  /* 减小上下内边距，原来是20px */
    background: var(--primary-blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 12px 0 0;
    font-size: 14px;  /* 减小字号 */
}

.close-side {
    background: none;
    border: none;
    color: white;
    font-size: 20px;  /* 减小关闭按钮字号，原来是24px */
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.close-side:hover {
    opacity: 1;
}

.side-content {
    padding: 15px;
    background: white;
    height: calc(100% - 48px);  /* 减小header高度，原来是64px */
    overflow-y: auto;
}

.side-link {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.side-link:hover {
    background: var(--bg-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.side-icon {
    margin-right: 12px;
    font-size: 18px;
}

/* 修改移动端侧边栏样式 */
@media screen and (max-width: 768px) {
    .side-menu {
        top: 65px;  /* 增加顶部距离，避开导航栏 */
        height: calc(100vh - 65px);  /* 相应调整高度 */
    }

    .side-panel {
        top: 65px;  /* 与side-menu对齐 */
        height: calc(100vh - 65px);
        width: 85%;
        max-width: 280px;
        border-radius: 0;
        left: 0;
        transform: translateX(-100%);
        overflow-y: auto;
        background: white;
    }

    .side-toggle {
        position: fixed;
        top: 75px;  /* 导航栏下方10px */
        left: 10px;  /* 距离左边10px */
        width: 36px;  /* 稍微减小尺寸 */
        height: 36px;
        border-radius: 50%;
        z-index: 99;
        background: var(--primary-blue);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .menu-icon {
        font-size: 18px;  /* 稍微减小图标大小 */
    }

    /* 遮罩层 */
    .side-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 96;
    }

    /* 调整名言图标的位置，避免重叠 */
    .quote-icon {
        left: 10px;
        bottom: 10px;
        width: 36px;
        height: 36px;
    }

    .quote-icon img {
        width: 20px;
        height: 20px;
    }

    /* 调整名言面板的位置 */
    .quote-panel {
        left: 10px;
        bottom: 56px;  /* 图标高度 + 间距 */
    }
}

/* 超小屏幕额外优化 */
@media screen and (max-width: 360px) {
    .side-toggle {
        width: 32px;
        height: 32px;
        top: 72px;
        left: 8px;
    }

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

    .quote-icon {
        width: 32px;
        height: 32px;
    }

    .quote-icon img {
        width: 18px;
        height: 18px;
    }
}

/* 文字容器样式 */
.text-container {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 30px;  /* 减小高度，原来是40px */
}

/* 标题包装器 */
.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 80px;
}

/* 打字机文字样式 */
.typed-text {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 32px;  /* PC端字号增大到32px */
}

/* 光标样式 */
.cursor {
    display: none;
}

/* 渐变线容器 */
.gradient-line-container {
    width: 400px;
    height: 3px;
    display: flex;
    justify-content: center;
    margin-top: 0;  /* 移除顶部边距，原来是5px */
    position: absolute;
    bottom: 20px;  /* 调整底部距离，原来是10px */
}

/* 渐变线样式 */
.gradient-line {
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-blue) 50%,
        transparent 100%
    );
    transition: width 0.3s ease;
    min-width: 20px;
}

/* 搜索关键词高亮样式 */
.highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* 分类标题行样式 */
.category-header {
    background-color: var(--bg-blue);
    font-weight: bold;
}

.category-header td {
    padding: 8px 15px;
}

/* 调整表格行的间距 */
#phoneTable tr:not(.category-header) td {
    border-bottom: 1px solid var(--border-color);
}

#phoneTable tr:not(.category-header):hover {
    background-color: var(--hover-blue);
}

/* 侧边栏分类样式 */
.side-category {
    margin-bottom: 8px;  /* 再减小分类间距，原来是10px */
    padding-bottom: 6px;  /* 再减小底部内边距，原来是8px */
    border-bottom: 1px solid var(--border-color);
}

.side-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.side-category-title {
    color: var(--text-primary);
    font-size: 15px;  /* 增大标题字号，原来是13px */
    font-weight: 500;
    padding: 0 15px 4px;  /* 减小底部内边距，原来是6px */
    margin: 0;
    position: relative;
}

.side-category-title::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 2px;  /* 调整装饰线位置，原来是3px */
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-link {
    display: flex;
    align-items: center;
    padding: 4px 15px;  /* 减小上下内边距，原来是6px */
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.side-link:hover {
    background: var(--bg-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.side-icon {
    margin-right: 12px;
    font-size: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .side-category {
        margin-bottom: 6px;  /* 移动端更小的间距，原来是8px */
        padding-bottom: 4px;  /* 原来是6px */
    }

    .side-category-title {
        padding: 0 12px 3px;  /* 减小移动端标题内边距 */
        font-size: 14px;  /* 移动端也保持较大字号 */
    }

    .side-link {
        padding: 3px 12px;  /* 减小移动端链接内边距，原来是4px */
        font-size: 12px;
    }

    .side-icon {
        margin-right: 10px;
        font-size: 15px;
    }
}

/* 在文件末尾添加移动端适配样式 */
@media screen and (max-width: 768px) {
    /* 导航栏移动端样式 */
    .nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-container {
        padding: 0 10px;
        min-width: max-content;
    }

    .nav-links {
        flex-wrap: nowrap;
        padding: 8px 0;
        gap: 5px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* 搜索框移动端样式 */
    .search-box {
        padding: 0 15px;
        gap: 8px;  /* 减小移动端间距 */
    }

    .search-box input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-box button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 分类按钮移动端样式 */
    .table-header {
        flex-direction: column;
        padding: 10px;
    }

    .categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
    }

    /* 表格移动端样式 */
    .table-container {
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    #phoneTable {
        min-width: auto;
        font-size: 14px;
    }

    #phoneTable th,
    #phoneTable td {
        padding: 10px;
        font-size: 13px;
    }

    /* 分类标题行 */
    .category-header td {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* 侧边栏移动端样式 */
    .side-panel {
        width: 85%;
        max-width: 280px;
    }

    .side-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        bottom: 20px;
        left: 20px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* 超小屏幕额外优化 */
@media screen and (max-width: 360px) {
    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }

    .category-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    #phoneTable th,
    #phoneTable td {
        padding: 8px;
        font-size: 13px;
    }

    .table-container {
        margin: 0 5px;
        width: calc(100% - 10px);
    }

    #phoneTable {
        font-size: 13px;
    }
}

/* 移动端列宽比例 */
@media screen and (max-width: 768px) {
    #phoneTable th:nth-child(1),
    #phoneTable td:nth-child(1) {
        width: 25%;  /* 移动端名称列宽度调整 */
    }

    #phoneTable th:nth-child(2),
    #phoneTable td:nth-child(2) {
        width: 35%;  /* 移动端电话列宽度调整 */
    }

    #phoneTable th:nth-child(3),
    #phoneTable td:nth-child(3) {
        width: 40%;  /* 移动端位置列宽度调整 */
    }
}

/* 移动端标题样式调整 */
@media screen and (max-width: 768px) {
    .title-wrapper {
        min-height: 60px;
        gap: 3px;
    }

    .typed-text {
        font-size: 24px;  /* 移动端保持24px不变 */
    }

    /* 调整渐变线 */
    .gradient-line-container {
        width: 280px;
        bottom: 15px;
    }
}

/* 超小屏幕进一步优化 */
@media screen and (max-width: 360px) {
    .typed-text {
        font-size: 22px;  /* 超小屏幕保持22px不变 */
    }

    .gradient-line-container {
        width: 240px;
    }
}

/* 移动端表格容器样式调整 */
@media screen and (max-width: 768px) {
    .phone-list {
        margin-bottom: 80px;  /* 增加底部边距，避免被图标遮挡 */
    }

    .table-container {
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}

/* 超小屏幕进一步优化 */
@media screen and (max-width: 360px) {
    .phone-list {
        margin-bottom: 70px;  /* 稍微调整超小屏幕的底部边距 */
    }
}

/* 搜索状态样式 */
#phoneTable tbody {
    transition: opacity 0.3s ease;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    background-color: var(--bg-blue);
    font-size: 14px;
}

/* 搜索框动画效果 */
.search-box input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .search-stats {
        font-size: 12px;
        margin: 8px 0;
    }

    .no-results {
        padding: 20px;
        font-size: 13px;
    }
}

/* 统计信息行样式 */
.stats-row {
    background-color: var(--bg-blue);
    border-bottom: none;
}

.stats-row td {
    padding: 8px 15px;
    border-bottom: none;
}

.stats-cell {
    text-align: right;
}

.search-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

@media screen and (max-width: 768px) {
    .search-stats {
        font-size: 12px;
    }
}

/* 系统信息样式 */
.side-category:last-child {
    margin-top: auto;  /* 将最后一个分类推到底部 */
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.side-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* IP地址显示样式 */
.side-link:not(a) {
    color: var(--text-secondary);
    cursor: default;
}

.side-link:not(a):hover {
    background: none;
    transform: none;
}

/* 后台管理链接样式 */
.side-link[href="/admin/"] {
    color: var(--primary-blue);
}

.side-link[href="/admin/"]:hover {
    background: var(--bg-blue);
    color: var(--dark-blue);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .side-category:last-child {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* 名言弹出层样式 */
.quote-panel {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    opacity: 0;  /* 添加初始透明度 */
    visibility: hidden;  /* 添加初始可见性 */
}

.quote-panel.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.quote-header {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
}

.quote-header .close-btn {
    padding: 5px 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.quote-header .close-btn:hover {
    opacity: 1;
}

.quote-content {
    padding: 20px;  /* 增加内边距 */
    padding-right: 35px;  /* 为关闭按钮留出空间 */
    text-indent: 1.8em;  /* 调整为更准确的2个中文字符宽度 */
}

.quote-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.quote-author {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    font-style: italic;
    padding-right: 0em;  /* 作者名字右侧缩进 */
}

.quote-icon {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.quote-icon:hover {
    transform: scale(1.1);
}

.quote-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .quote-panel {
        left: 20px;  /* 改回固定位置 */
        bottom: 70px;  /* 距离图标一定距离 */
        transform: translateX(-120%);  /* 初始位置在屏幕左侧 */
        width: 85%;
        max-width: 300px;
        opacity: 0;
        visibility: hidden;
    }
    
    .quote-panel.show {
        transform: translateX(0);  /* 显示时滑入 */
        opacity: 1;
        visibility: visible;
    }
    
    /* 移除遮罩层相关样式 */
    .quote-panel::before {
        display: none;  /* 完全移除遮罩层 */
    }
    
    .quote-text {
        font-size: 13px;
    }
    
    .quote-author {
        font-size: 11px;
    }
}

/* 名言样式 */
.quote {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 15px 0;
    text-indent: 1.8em;  /* 调整为更准确的2个中文字符宽度 */
    padding: 0 20px;
}

/* 前台分页导航样式 */
.pagination {
    position: fixed;
    left: calc(50% + 600px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-left: 10px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.pagination .page-link:hover {
    background-color: var(--bg-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.pagination .page-link.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination .page-dots {
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
}

/* 前台分页导航移动端适配 */
@media screen and (max-width: 1200px) {
    .pagination {
        position: fixed;
        right: 20px;
        left: auto;  /* 取消左侧定位 */
        margin-left: 0;  /* 取消左侧间距 */
    }
}

@media screen and (max-width: 768px) {
    .pagination {
        right: 10px;
        padding: 8px;
        gap: 6px;
    }

    .pagination .page-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .pagination .page-dots {
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }
}

/* 后台分页导航样式 */
.admin-pagination {
    position: fixed;
    right: auto;  /* 移除右侧固定位置 */
    left: calc(50% + 600px);  /* 表格宽度的一半 + 一点间距 */
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-left: 20px;  /* 与表格保持一定间距 */
}

/* 每页显示条数选择器 */
.admin-pagination .page-size-selector {
    margin: 10px 0;  /* 上下边距相等 */
    padding: 10px 0;  /* 上下内边距相等 */
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.admin-pagination .page-size-selector select {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: white;
}

/* 分页信息 */
.admin-pagination .pagination-info {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 导航按钮容器 */
.admin-pagination .nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

/* 导航按钮样式 - 使用更具体的选择器 */
.admin-pagination .nav-buttons a.page-link {
    width: 100%;
    min-width: 60px;
    padding: 8px 12px;
    border-radius: 8px;  /* 增加圆角值，使按钮更圆润 */
    text-align: center;
    display: block;
    background-color: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.admin-pagination .nav-buttons a.page-link:hover {
    background-color: #f5f5f5;
}

/* 页码容器 */
.admin-pagination .page-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;  /* 确保容器占满宽度 */
}

/* 页码按钮样式 */
.admin-pagination .page-numbers .page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border: 1px solid var(--border-color);
    margin: 0 auto;
}

.admin-pagination .page-numbers .page-dots {
    border: none;
    background: none;
}

.admin-pagination .page-numbers .page-link:hover {
    background-color: #f5f5f5;
}

.admin-pagination .page-numbers .page-link.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .admin-pagination {
        right: 10px;
        padding: 8px;
        gap: 6px;
    }
    
    .admin-pagination .nav-buttons {
        gap: 6px;
    }
    
    .admin-pagination .nav-buttons a.page-link {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .admin-pagination .page-numbers {
        gap: 6px;
    }
    
    .admin-pagination .page-numbers .page-link,
    .admin-pagination .page-numbers .page-dots {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 设置图标样式 */
.settings-icon {
    position: fixed;
    right: 20px;
    top: 10px;  /* 从 15px 改为 10px */
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(45deg);
}

.settings-icon svg {
    width: 18px;  /* 缩小图标 */
    height: 18px;  /* 缩小图标 */
    color: var(--text-primary);
}

/* 设置面板样式 */
.settings-panel {
    position: fixed;
    right: 20px;
    top: 50px;  /* 从 55px 改为 50px */
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-panel.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.settings-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.settings-close {
    cursor: pointer;
    padding: 5px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 主题选择器样式优化 */
.theme-options {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.theme-option {
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    display: block;
}

/* 主题选项悬停效果 */
.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 主题选项激活状态 */
.theme-option.active {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* "默认"文字样式 */
.theme-option.active::after {
    content: "默认";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-option.active:hover::after {
    opacity: 1;
}

/* 主题颜色定义 */
.theme-option[data-theme="blue"] { background: var(--theme-blue-primary); }
.theme-option[data-theme="green"] { background: var(--theme-green-primary); }
.theme-option[data-theme="red"] { background: var(--theme-red-primary); }
.theme-option[data-theme="orange"] { background: var(--theme-orange-primary); }
.theme-option[data-theme="gray"] { background: var(--theme-gray-primary); }
.theme-option[data-theme="purple"] { background: var(--theme-purple-primary); }

/* 自定义颜色选择器样式优化 */
.custom-theme {
    position: relative;
    overflow: visible;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff) !important;
}

.custom-theme input[type="color"] {
    position: absolute;
    top: calc(100% + 5px);
    left: -20px;
    width: 80px;
    height: 35px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    display: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.custom-theme.picking input[type="color"] {
    display: block;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    /* 搜索框容器 */
    .search-box {
        position: relative;
        margin-bottom: 25px;
    }
    
    /* 隐藏PC端统计信息 */
    .stats-cell {
        display: none !important;
    }
    
    /* 移动端统计信息样式 */
    .mobile-search-stats {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 5px;
        font-size: 12px;
        color: var(--text-secondary);
        background: white;
        padding: 2px 5px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    /* 搜索后显示统计信息 */
    .mobile-search-stats:not(:empty) {
        display: block;
    }
}