/* Main Styles for Inspiration Navigation Site */

/* 悬浮分类菜单 */
.category-menu-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: all 0.3s ease;
    border: none;
}

.category-menu-toggle:hover {
    background-color: #ff3d3d;
    transform: translateY(-50%) scale(1.05);
}

.category-menu-toggle i {
    font-size: 20px;
}

.category-menu {
    position: fixed;
    right: -300px; /* 初始隐藏在右侧 */
    top: 0;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.category-menu.open {
    right: 0;
}

.category-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.category-menu-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.category-menu-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.category-menu-close:hover {
    color: var(--primary-color);
}

.category-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu-list li {
    padding: 0;
    margin: 0;
}

.category-menu-list a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-menu-list a:hover,
.category-menu-list a.active {
    background-color: var(--hover-color);
    border-left-color: var(--primary-color);
}

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

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

.category-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .category-menu {
        width: 260px;
    }
    
    .category-menu-toggle {
        width: 45px;
        height: 45px;
        right: 15px;
    }
}
:root {
    --primary-color: #ff5252;
    --secondary-color: #ffde59;
    --light-color: #f8f9fa;
    --dark-color: #000000;
    --border-color: #000000;
    --text-color: #000000;
    --card-bg: #ffffff;
    --hover-color: #ffe8e8;
    --hot-color: #ff3d00;
    --new-color: #00c853;
    --accent-color: #4a00e0;
    --accent-secondary: #00e5ff;
}

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

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f0f0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 82, 82, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 80% 60%, rgba(74, 0, 224, 0.05) 0%, transparent 20%);
    z-index: -1;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

a {
    color: var(--primary-color);
    text-decoration: none;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    width: 95%;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

header .search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-top: 10px;
}

header .sort-rules {
    width: 100%;
    margin-top: 10px;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

header .sort-rules .rule {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: black;
    font-size: 24px;
    transform: rotate(-5deg);
    border: 3px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.9);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.header-content h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    transform: rotate(-2deg);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.header-content h1 a {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-content h1 a:hover {
    color: var(--accent-color);
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.nav-menu {
    display: flex;
    gap: 15px;
    margin: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 0;
    font-weight: 700;
    transition: all 0.2s;
    border: 2px solid #000;
    background-color: var(--accent-color);
    box-shadow: 4px 4px 0 #000;
    margin: 0 5px;
    transform: rotate(-1deg);
}

.nav-menu a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--accent-secondary);
    color: black;
}

.nav-menu a i {
    margin-right: 5px;
}

.banner {
    background-color: var(--secondary-color);
    padding: 30px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 30px;
    background-image: none;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 0;
    transform: rotate(45deg);
    z-index: 1;
}

.banner h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.5);
}

.banner span {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 10px;
    background-color: white;
    padding: 2px 10px;
    border: 2px solid #000;
    transform: rotate(-2deg);
    display: inline-block;
    margin-top: 10px;
}

/* Search Container */
.search-container {
    max-width: 300px;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    flex: 1;
    padding: 12px 20px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 16px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.9);
    width: 100%;
    background-color: white;
    font-family: 'Space Grotesk', sans-serif;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent-color);
    border: 2px solid #000;
    color: white;
    padding: 7px 15px;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
}

.search-container button:hover {
    background-color: #3b78e7;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
    background-color: white;
    border-radius: 0;
    padding: 25px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
}

.category-section:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    transform: rotate(45deg);
    z-index: 1;
}

.category-section:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-secondary);
    border-radius: 0;
    z-index: 1;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding: 10px 15px;
    border-bottom: none;
    color: white;
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    border: 3px solid #000;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    font-weight: 800;
    transform: rotate(-2deg);
    position: relative;
    z-index: 2;
    margin-top: -40px;
    margin-left: -10px;
}

.category-title i {
    margin-right: 10px;
    color: white;
    font-size: 1.2em;
}

.site-count {
    font-size: 0.9rem;
    color: black;
    margin-left: 10px;
    font-weight: bold;
    background-color: var(--secondary-color);
    padding: 2px 8px;
    border: 2px solid #000;
}

/* Site Grid */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.site-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 0;
    padding: 15px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
    transition: all 0.2s ease;
    color: var(--text-color);
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
}

.site-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
    background-color: var(--hover-color);
    text-decoration: none;
}

.site-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.9);
    transform: rotate(-3deg);
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    font-size: 24px;
}

.site-info {
    flex: 1;
}

.site-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #000;
    background-color: white;
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
    border: 3px solid #000;
}

.empty-state i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h2 {
    margin-bottom: 15px;
}

/* Search Results */
.search-results {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.site-category {
    display: inline-block;
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 5px 0;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 70px;
    border-top: none;
    color: #000;
    background-color: var(--secondary-color);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-info {
    color: #999;
    font-size: 0.9rem;
    margin-top: 10px;
}

.main-footer p {
    margin-bottom: 10px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px) rotate(-3deg);
    z-index: 1000;
}

/* 赏字按钮 */
.reward-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: rotate(3deg);
    z-index: 1000;
    /* 确保赏字按钮始终显示 */
    opacity: 1;
    visibility: visible;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(-3deg);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px) rotate(0deg);
}

.back-to-top:active {
    transform: translateY(2px) rotate(-5deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.reward-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) rotate(0deg);
}

.reward-btn:active {
    transform: translateY(2px) rotate(5deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .site-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .site-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu {
        margin: 15px 0;
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-area {
        margin-bottom: 15px;
    }
    
    .nav-menu {
        margin: 15px 0;
        justify-content: center;
        width: 100%;
    }
    
    .search-container {
        margin: 15px 0 0 0;
        width: 100%;
    }
    
    .search-container form {
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .logo-area {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        order: 2;
        margin: 10px 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-top: -30px;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .banner span {
        font-size: 1rem;
        display: block;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .reward-btn {
        bottom: 75px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .site-card {
        padding: 10px;
    }
    
    .site-icon {
        width: 40px;
        height: 40px;
    }
    
    .site-name {
        font-size: 1.1rem;
    }
    
    .main-header, .banner, .category-section, .main-footer {
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
    }
}

/* Custom styles to match the reference image */
.site-card {
    height: 100px;
    overflow: hidden;
}

.site-icon {
    border-radius: 8px;
}

.site-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tag styling */
.site-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 0;
    font-weight: bold;
    color: white;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
    transform: rotate(3deg);
}

.site-tag.hot {
    background-color: var(--hot-color);
}

.site-tag.new {
    background-color: var(--new-color);
}
