/* Reset and Base Styles */

/* 临时图标替代方案 - 使用 Unicode 字符 */
.fas, .far, .fab {
    font-style: normal;
    font-weight: normal;
}

/* 常用图标替代 */
.fa-search:before { content: "🔍"; }
.fa-star:before { content: "⭐"; }
.fa-external-link-alt:before { content: "↗️"; }
.fa-envelope:before { content: "✉️"; }
.fa-globe:before { content: "🌐"; }
.fa-arrow-up:before { content: "↑"; }
.fa-network-wired:before { content: "🔗"; }
.fa-users:before { content: "👥"; }
.fa-bullhorn:before { content: "📢"; }
.fa-paint-brush:before { content: "🎨"; }
.fa-chart-line:before { content: "📈"; }
.fa-blog:before { content: "📝"; }
.fa-server:before { content: "🖥️"; }
.fa-robot:before { content: "🤖"; }
.fa-weixin:before { content: "💬"; }
.fa-edit:before { content: "✏️"; }
.fa-trash:before { content: "🗑️"; }
.fa-plus:before { content: "+"; }
.fa-cog:before { content: "⚙️"; }
.fa-home:before { content: "🏠"; }
.fa-sign-out-alt:before { content: "🚪"; }
.fa-tachometer-alt:before { content: "📊"; }
.fa-folder:before { content: "📁"; }
.fa-tools:before { content: "🔧"; }
.fa-eye:before { content: "👁️"; }
.fa-clock:before { content: "🕐"; }
.fa-download:before { content: "⬇️"; }
.fa-upload:before { content: "⬆️"; }
.fa-undo:before { content: "↶"; }
.fa-check-circle:before { content: "✅"; }
.fa-shield-alt:before { content: "🛡️"; }
.fa-sign-in-alt:before { content: "🔑"; }
.fa-arrow-left:before { content: "←"; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    gap: 10px;
}

/* AffSuperman Logo Design */
.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    overflow: hidden;
}

.logo-text {
    color: white;
    font-weight: 900;
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.logo-cape {
    position: absolute;
    top: -2px;
    right: -8px;
    width: 20px;
    height: 15px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 80%);
    animation: flutter 2s ease-in-out infinite;
}

@keyframes flutter {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(5deg) translateX(2px); }
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo .logo-text {
    font-size: 14px;
}

.footer-logo .logo-cape {
    width: 16px;
    height: 12px;
    right: -6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 语言切换 */
.language-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    margin-left: 1rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.language-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    text-shadow: none;
    font-weight: 700;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* Removed admin link styles */

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: white;
    margin-top: -50px;
    border-radius: 50px 50px 0 0;
    position: relative;
    z-index: 3;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-box i {
    position: absolute;
    left: 20px;
    color: #64748b;
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 20px 15px 50px;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.search-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* Categories Section - Removed for cleaner interface */

/* Tools Section */
.tools-section {
    padding: 80px 0;
    background: #f8fafc;
}

.category-blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-block {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.category-block-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.category-block-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-right: 1rem;
}

.category-block-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.category-block-info p {
    color: #64748b;
    font-size: 0.9rem;
}

.category-block-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Featured tool styles */
.tool-card.featured {
    border: 2px solid #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.tool-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.25);
}

.featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
    animation: pulse-star 2s infinite;
}

@keyframes pulse-star {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tool-card.featured .tool-link {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-card.featured .tool-link:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-logo-container {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.tool-logo-fallback {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-icon {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.default-icon:hover {
    transform: scale(1.05);
}

.tool-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.tool-category {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.tool-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #1d4ed8;
}

.tool-link i {
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    gap: 10px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .language-switch {
        margin: 1rem 0 0 0;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .language-btn {
        color: #1e293b;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(59, 130, 246, 0.2);
        text-shadow: none;
    }

    .language-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(59, 130, 246, 0.4);
        color: #1e293b;
        transform: translateY(-1px);
    }

    .language-btn.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        font-weight: 700;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .category-blocks {
        gap: 2rem;
    }

    .category-block {
        padding: 1.5rem;
    }

    .category-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-block-count {
        margin-left: 0;
        align-self: flex-start;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-box {
        flex-direction: column;
        padding: 10px;
        border-radius: 20px;
    }

    .search-box input {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 15px;
        background: white;
        border: 1px solid #e2e8f0;
    }

    .search-btn {
        width: 100%;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
