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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #e8e8e8;
    overflow-x: hidden;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #4a90e2, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(74, 144, 226, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(74, 144, 226, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent);
    background-repeat: repeat;
    background-size: 250px 150px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-150px); }
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin: 40px 0 60px;
}

.tech-border {
    display: inline-block;
    padding: 30px 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(74, 144, 226, 0.5);
    border-radius: 20px;
    box-shadow:
        0 0 20px rgba(74, 144, 226, 0.3),
        inset 0 0 20px rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(74, 144, 226, 0.1),
        transparent
    );
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-border h1 {
    position: relative;
    font-size: 2.5em;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    position: relative;
    color: #b8b8b8;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.search-section {
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.5);
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 10px 20px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #b8b8b8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.tag:hover {
    border-color: rgba(74, 144, 226, 0.6);
    background: rgba(74, 144, 226, 0.1);
    color: #fff;
}

.tag.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

/* 免责声明样式 */
.disclaimer-section {
    margin: 30px 0;
    padding: 20px;
}

.disclaimer-content {
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.disclaimer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 152, 0, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.disclaimer-icon {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
}

.disclaimer-title {
    color: #ff9800;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    position: relative;
}

.disclaimer-text {
    color: #b8b8b8;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}

.disclaimer-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.disclaimer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
}

.disclaimer-item:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

.disclaimer-bullet {
    font-size: 1.2em;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.api-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 144, 226, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.api-card:hover::before {
    left: 100%;
}

.api-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.api-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-online {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.status-beta {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #fff;
}

.status-maintenance {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.api-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.api-category {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.api-description {
    font-size: 0.9em;
    color: #b8b8b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    border: 2px solid rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.3);
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #fff;
}

.modal-api-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-api-icon {
    font-size: 3em;
}

.modal-api-info h2 {
    font-size: 2em;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-api-endpoints {
    margin: 20px 0;
}

.endpoint-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    margin-bottom: 10px;
}

.method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    margin-right: 10px;
}

.method-get {
    background: #4caf50;
    color: white;
}

.method-post {
    background: #2196f3;
    color: white;
}

.method-put {
    background: #ff9800;
    color: white;
}

.method-delete {
    background: #f44336;
    color: white;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    color: #4a90e2;
    font-size: 0.9em;
}

.modal-api-description {
    color: #b8b8b8;
    line-height: 1.8;
    margin-top: 20px;
}

/* 页脚样式 */
.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.15);
    transition: all 0.3s ease;
    min-width: fit-content;
}

.footer-item:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.footer-label {
    color: #888;
    font-size: 0.8em;
    white-space: nowrap;
}

.footer-link {
    color: #4a90e2;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #357abd;
    text-decoration: underline;
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}

@media (max-width: 768px) {
    .tech-border h1 {
        font-size: 1.8em;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

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

    .modal-api-endpoints {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-item {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px;
    }

    .footer-label,
    .footer-link {
        font-size: 0.85em;
    }
}