/* stylemo.css - Optimized Version */

body {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 内页搜索样式 */
.search-container {
    margin: 1.0rem 0;
    padding: 0 1rem;
    border-radius: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 0.4rem 1.0rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.search-box input:placeholder {
    color: #aaa;
}

.search-box button {
    padding: 0 1.0rem;
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.search-box button:active {
    transform: translateY(0);
}

/* 内页搜索样式结束 */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.category-section {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    
    transition: var(--transition);
    position: relative;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.section-title {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.text-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Link container and hover effects */
.nav-link-container {
    position: relative;
    display: inline-block;
    margin: 0 3px 3px 0;
    line-height: 1.3;
}
.nav-link-container2 {
    position: relative;
    margin: 0 3px 3px 0;
    line-height: 1.3;
}
.nav-link {
    display: inline-block;
    padding: 2px 5px;
    font-size: 14px;
    transition: all 0.1s;
    white-space: nowrap;

    color: #555;
    position: relative;
    z-index: 10;
}

.link-buttons {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 14px;
    line-height: 1.3;
}

.link-button {
    display: inline-block;
    padding: 2px 1px;
    margin: 0;
    background-color: #fff;
    border-radius: 2px;
    color: #333;
    text-decoration: none;
    font-size: inherit;
    transition: all 0.1s;
}

.link-button:hover {
    color: white;
    background: #3498db;
    border-color: #2980b9;
    text-decoration: none;
}

.nav-link-container:hover .nav-link {
    visibility: hidden;
}

.nav-link-container:hover .link-buttons {
    display: inline-block;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-section {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}


/* 分割细线 */
.fancy-divider {
    margin: 0.5rem 0; /* 上下间距 */
}

/* Animation delays */
.category-section:nth-child(1) { animation-delay: 0.1s; }
.category-section:nth-child(2) { animation-delay: 0.2s; }
.category-section:nth-child(3) { animation-delay: 0.3s; }
.category-section:nth-child(4) { animation-delay: 0.4s; }
.category-section:nth-child(5) { animation-delay: 0.5s; }
.category-section:nth-child(6) { animation-delay: 0.6s; }
.category-section:nth-child(7) { animation-delay: 0.7s; }
.category-section:nth-child(8) { animation-delay: 0.8s; }
.category-section:nth-child(9) { animation-delay: 0.9s; }
.category-section:nth-child(10) { animation-delay: 1s; }
.category-section:nth-child(11) { animation-delay: 1.1s; }
.category-section:nth-child(12) { animation-delay: 1.2s; }


/* Font Awesome base styles */
.fas {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Font Awesome icon colors */
.fa-spa,
.fa-cube,
.fa-home,
.fa-building,
.fa-paint-brush,
.fa-vector-square,
.fa-couch,
.fa-border-style,
.fa-camera,
.fa-globe-americas,
.fa-city,
.fa-car-alt,
.fa-rocket,
.fa-image,
.fa-desktop,
.fa-mountain,
.fa-user-friends,
.fa-utensils,
.fa-paw,
.fa-leaf,
.fa-running,
.fa-lightbulb,
.fa-mobile-alt,
.fa-portrait,
.fa-robot,
.fa-mobile,
.fa-palette,
.fa-file-image,
.fa-signature,
.fa-paint-brush,
.fa-boxes,
.fa-pen-nib,
.fa-fw,
.fa-brain,
.fa-search,
.fa-palette,
.fa-lightbulb,
.fa-couch,
.fa-shopping-cart,
.fa-plane,
.fa-utensils,
.fa-phone,
.fa-robot,
.fa-newspaper,
.fa-users{
    color: #4CAF50;
    font-size: 16px;
}