* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

body {
    background-image: url('../background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #333;
    min-height: 100vh;
    position: relative;
}

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

/* 新增搜索栏样式 */
.search-container {
    max-width: 800px;
    margin: 20px auto 30px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 7px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #2980b9;
}

.search-results {
    margin-top: 20px;
    display: none;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content-box {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.api-list {
    margin-bottom: 30px;
}

.api-item {
    display: block;
    text-decoration: none;
    color: #000;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.api-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.api-item.disabled {
    background-color: rgba(240, 240, 240, 0.7);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.api-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #54A6DF;
    font-size: 1.1em;
}

.api-desc {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.api-meta {
    color: #777;
    font-size: 0.85em;
}

.api-item:last-child {
    border-bottom: none;
}

.section-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.friend-link:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    margin-top: 10px;
    opacity: 0.7;
}

.copyright a {
    color: #4da6ff; /* 浅蓝色 */
    text-decoration: none; /* 默认无下划线 */
    transition: all 0.2s ease;
    font-weight: 500; /* 中等粗细 */
}

.copyright a:hover {
    color: #4da6ff; /* 保持浅蓝色不变 */
    text-decoration: underline; /* 悬停时添加下划线 */
}

.copyright a:active {
    color: #4da6ff; /* 点击时颜色保持不变 */
    text-decoration: underline; /* 保持下划线 */
}

a {
    text-decoration:none
}

/* 右上角侧边栏样式 */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #2c3e50;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

.sidebar-toggle span::before {
    top: -8px;
}

.sidebar-toggle span::after {
    top: 8px;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    color: #2c3e50;
    font-size: 1.5em;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close-sidebar:hover {
    color: #e74c3c;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.sidebar-footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗样式 - 修改部分 */
.xingyu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.xingyu-modal.active {
    opacity: 1;
    visibility: visible;
}

.xingyu-modal-content {
    position: relative;
    max-width: 600px;
    margin: 100px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
}

.xingyu-modal.active .xingyu-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.xingyu-modal-header {
    padding: 15px 20px;
    background: rgba(52,152,219,0.1);
    border-bottom: 1px solid rgba(52,152,219,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xingyu-modal-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.xingyu-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #7f8c8d;
}

.xingyu-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.xingyu-modal-footer {
    padding: 15px 20px;
    background: rgba(52,152,219,0.05);
    border-top: 1px solid rgba(52,152,219,0.1);
    text-align: right;
}

.xingyu-modal-button {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xingyu-modal-button-primary {
    background: #3498db;
    color: white;
}

.xingyu-modal-button-primary:hover {
    background: #2980b9;
}

.xingyu-modal-button-secondary {
    background: transparent;
    color: #7f8c8d;
    margin-right: 10px;
}

.xingyu-modal-button-secondary:hover {
    color: #2c3e50;
    background: rgba(0,0,0,0.05);
}
/* 弹窗内链接样式 - 修改版 */
.xingyu-modal-body a {
    color: #4da6ff; /* 浅蓝色 */
    text-decoration: none; /* 默认无下划线 */
    transition: all 0.2s ease;
    font-weight: 500; /* 中等粗细 */
}

.xingyu-modal-body a:hover {
    color: #4da6ff; /* 保持浅蓝色不变 */
    text-decoration: underline; /* 悬停时添加下划线 */
}

.xingyu-modal-body a:active {
    color: #4da6ff; /* 点击时颜色保持不变 */
    text-decoration: underline; /* 保持下划线 */
}

.xingyu-modal-body a:focus {
    outline: 2px solid rgba(52, 152, 219, 0.5); /* 聚焦时的轮廓效果 */
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 250px;
    }
    
    .sidebar-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .xingyu-modal-content {
        margin: 50px 15px;
        width: auto;
    }
}