:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --background-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --large-width: 1600px;
    --medium-width: 1400px;
    --small-width: 1200px;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a71d6 0%, #6a4190 100%);
}

::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-main {
    min-height: calc(100vh - 200px);
}

.banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.banner-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.banner-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 100px;
    animation-delay: 2s;
}

.banner-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: var(--medium-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-text {
    flex: 1;
    color: #fff;
}

.banner-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.banner-logo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-headings {
    max-width: 500px;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.0;
    margin-bottom: 16px;
}

.banner-subtitle {
    font-size: 18px;
    color: #FFD700;
    line-height: 1.2;
}

.banner-illustration {
    flex: 1;
    max-width: 500px;
}

.illustration-desk {
    position: relative;
    width: 100%;
    height: 280px;
}

.illustration-monitor {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.illustration-screen {
    width: 240px;
    height: 150px;
    background: #1e293b;
    border-radius: 12px;
    position: relative;
    padding: 10px;
}

.illustration-screen-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 10px;
}

.illustration-screen-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 8px;
}

.illustration-screen-line-1 { width: 80%; }
.illustration-screen-line-2 { width: 60%; }
.illustration-screen-line-3 { width: 90%; }

.illustration-screen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.illustration-grid-item {
    height: 25px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

.illustration-stand {
    width: 20px;
    height: 30px;
    background: linear-gradient(90deg, #94a3b8, #cbd5e1, #94a3b8);
    margin: 0 auto;
}

.illustration-base {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #64748b, #94a3b8, #64748b);
    border-radius: 4px;
    margin: 0 auto;
}

.illustration-books {
    position: absolute;
    bottom: 40px;
    left: 20px;
    display: flex;
    gap: -5px;
}

.illustration-book {
    width: 20px;
    height: 60px;
    border-radius: 2px;
    position: relative;
    margin-left: -8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.illustration-book-1 {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    z-index: 3;
    height: 55px;
}

.illustration-book-2 {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    z-index: 2;
    height: 65px;
}

.illustration-book-3 {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    z-index: 1;
    height: 60px;
}

.illustration-pen {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 4px;
    height: 50px;
    background: #374151;
    border-radius: 2px;
    transform: rotate(-30deg);
}

.illustration-pen::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 10px solid #374151;
}

.illustration-pen::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 10px;
    background: #f59e0b;
    border-radius: 2px;
}

.illustration-cup {
    position: absolute;
    bottom: 35px;
    right: 100px;
    width: 35px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 10px 10px;
}

.illustration-cup-handle {
    position: absolute;
    right: -12px;
    top: 5px;
    width: 15px;
    height: 15px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.banner-wave svg {
    width: 100%;
    height: 100%;
}

.tools-section {
    max-width: var(--large-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.category-tab.active:hover {
    color: #FFFFFF;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.category-tab.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.tool-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    padding: 16px;
    margin-right: 16px;
    background: var(--card-bg, #f1f5f9);
}

.tool-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--card-color, #667eea);
}

.tool-card-body {
    position: relative;
    z-index: 1;
}

.tool-card-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.tool-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-card-tag {
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.tool-card-tag-hot {
    background: #fff1f2;
    color: #ef4444;
}

.tool-card-tag-new {
    background: #d1fae5;
    color: #059669;
}

.tool-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tool-card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-card-arrow {
    opacity: 1;
}

.tool-card-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--card-color, #667eea);
}

.tool-card-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--card-bg, #f1f5f9);
    opacity: 0.5;
    z-index: 0;
}

.app-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 30px 20px;
}

.footer-content {
    max-width: var(--medium-width);
    margin: 0 auto;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.footer-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #94a3b8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
    word-break: break-all;
    text-align: center;
}

.footer-icp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
    word-break: break-all;
    text-align: center;
}

.sticker-home {
    background: var(--card-color);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.sticker-header {
    width: 100%;
    max-width: var(--medium-width);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticker-info {
    flex: 1;
    gap: 16px;
}

.sticker-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--card-bg, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sticker-icon svg {
    width: 28px;
    height: 28px;
    color: var(--card-color, #667eea);
}

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

.sticker-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sticker-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-back {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
    }

    .banner-brand {
        justify-content: center;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-illustration {
        display: none;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}