body {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        background-color: #f8f9fa;
    }

    /* 顶部导航栏 */
    .main-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0;
    }

    .main-nav ul {
        display: flex;
        list-style: none;
        gap: 20px;
    }

    .main-nav a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 5px 10px;
        border-radius: 4px;
    }

    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .search-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-input {
        padding: 8px 15px;
        border: none;
        border-radius: 20px;
        width: 200px;
        font-size: 0.9rem;
        outline: none;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        width: 250px;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .search-btn {
        background-color: white;
        color: #667eea;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* 清除搜索按钮 */
    .clear-search-btn {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .clear-search-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    /* 搜索结果显示 */
    .search-results {
        position: absolute;
        top: 100%;
        right: 20px;
        margin-top: 8px;
        background-color: white;
        color: #2c3e50;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        white-space: nowrap;
    }

    .result-count {
        color: #667eea;
        font-weight: 600;
    }

    /* 主体内容 */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* 欢迎区域 */
    .welcome-section {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        padding: 40px 0;
        text-align: center;
        border-radius: 12px;
        margin-bottom: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .welcome-container h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        color: #2c3e50;
    }

    .welcome-container p {
        font-size: 1.1rem;
        color: #7f8c8d;
        margin-bottom: 30px;
    }

    .quick-actions {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .quick-btn {
        background-color: #667eea;
        color: white;
        border: none;
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 25px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

    .quick-btn:hover {
        background-color: #5a67d8;
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    /* 分类区域 */
    .category-section {
        margin-bottom: 40px;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .section-header h3 {
        font-size: 1.5rem;
        color: #2c3e50;
        font-weight: 600;
    }

    .more-link {
        color: #667eea;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .more-link:hover {
        color: #5a67d8;
        text-decoration: underline;
    }

    /* 卡片网格 */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .nav-card {
        background-color: white;
        border-radius: 12px;
        padding: 25px;
        text-align: center;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        border: 1px solid #e9ecef;
    }

    .nav-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #667eea;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .nav-card h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #2c3e50;
        font-weight: 600;
    }

    .nav-card p {
        font-size: 0.9rem;
        color: #7f8c8d;
        margin: 0;
    }

    /* 链接容器 */
    .links-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }

    .links-column h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #2c3e50;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 2px solid #667eea;
    }

    .link-list {
        list-style: none;
    }

    .link-list li {
        margin-bottom: 10px;
    }

    .link-list a {
        color: #3498db;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: block;
        padding: 5px 0;
    }

    .link-list a:hover {
        color: #2980b9;
        transform: translateX(5px);
    }

    /* 页脚 */
    .main-footer {
        background-color: #2c3e50;
        color: white;
        padding: 30px 0;
        margin-top: 60px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-info p {
        margin: 5px 0;
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .footer-links {
        display: flex;
        gap: 20px;
    }

    .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        opacity: 0.9;
        transition: all 0.3s ease;
    }

    .footer-links a:hover {
        opacity: 1;
        text-decoration: underline;
    }

    /* 模态框 */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .modal-content {
        background-color: white;
        border-radius: 12px;
        padding: 30px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        position: relative;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #7f8c8d;
        transition: all 0.3s ease;
    }

    .close-btn:hover {
        color: #2c3e50;
        transform: rotate(90deg);
    }

    .modal-content h3 {
        margin-bottom: 25px;
        color: #2c3e50;
        font-size: 1.3rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #2c3e50;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        transition: all 0.3s ease;
        outline: none;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .submit-btn {
        background-color: #667eea;
        color: white;
        border: none;
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
    }

    .submit-btn:hover {
        background-color: #5a67d8;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    /* 响应式设计 */
    @media (max-width: 992px) {
        .header-container {
            flex-wrap: wrap;
            gap: 15px;
        }

        .main-nav ul {
            gap: 15px;
        }

        .search-input {
            width: 180px;
        }
        
        .search-results {
            right: 10px;
            font-size: 0.85rem;
            padding: 6px 12px;
        }

        .card-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
            text-align: center;
        }

        .main-nav ul {
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .search-input {
            width: 250px;
        }

        .welcome-container h2 {
            font-size: 1.8rem;
        }

        .quick-actions {
            flex-direction: column;
            align-items: center;
        }

        .card-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .links-container {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
        }

        .footer-container {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }

        .footer-links {
            justify-content: center;
        }

        .modal-content {
            padding: 25px;
            margin: 20px;
        }
    }

    @media (max-width: 576px) {
        .main-content {
            padding: 15px;
        }

        .welcome-section {
            padding: 30px 0;
        }

        .welcome-container h2 {
            font-size: 1.6rem;
        }

        .card-grid {
            grid-template-columns: 1fr;
        }

        .links-container {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    /* 自定义链接项样式 */
    .custom-link-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 5px 0;
        transition: all 0.3s ease;
    }
    
    .custom-link-item:hover {
        background-color: rgba(102, 126, 234, 0.05);
        border-radius: 4px;
        padding: 5px 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .custom-link-item a {
        flex: 1;
        color: #3498db;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: block;
    }
    
    .custom-link-item a:hover {
        color: #2980b9;
        transform: none;
    }
    
    /* 删除按钮样式 */
    .delete-link-btn {
        background-color: transparent;
        border: none;
        color: #7f8c8d;
        font-size: 0.9rem;
        cursor: pointer;
        padding: 5px 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        margin-left: 5px;
    }
    
    .custom-link-item:hover .delete-link-btn {
        opacity: 1;
    }
    
    .delete-link-btn:hover {
        background-color: #f8d7da;
        color: #dc3545;
        transform: scale(1.1);
    }
    
    .delete-link-btn:active {
        transform: scale(0.9);
    }
}