* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f6f7f9;
}

header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.disclaimer-head {
    text-align: center;
    color: #666;
    margin: 0.8rem 0;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    padding: 1rem 0;
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}

.category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #6e8efb, #a777e3);
    border-radius: 2px;
}

.tool-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 0.5rem 0;
}

.tool-link {
    display: block;
    text-decoration: none;
    color: #2d3436;
    padding: 0.8rem 1.2rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tool-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-link:hover::before {
    opacity: 1;
}

.disclaimer-under {
    text-align: center;
    color: #666;
    margin: 2rem 0 0;
    font-size: 0.9rem;
    padding: 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

footer p {
    color: #666;
}

.record-info {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.record-info img {
    vertical-align: middle;
    margin-right: 0.3rem;
    height: 14px;
}

.record-info a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
}

.record-info a:hover {
    color: #333;
}

/* 弹窗样式优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-btn {
    margin: 1rem 0.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#confirmBtn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

#cancelBtn {
    background: #f1f2f6;
    color: #666;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .tool-links {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .tool-link {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}