:root {
    --sidebar-width: 200px;
    --sidebar-width-large: 220px;
    --sidebar-width-mobile: 70px;
    --content-padding: 40px;
    --content-padding-large: 60px;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 隐藏按钮上的积分文字（保留功能） */
.point-cost { display: none !important; }

body {
    display: flex;
    background: #ffffff;
}

.main-content {
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    overflow-y: auto;
}

.home-page {
    align-items: stretch;
    width: 100%;
    max-width: none;
}

.notice-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    /* background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); */
    border-radius: 12px;
    margin-bottom: 20px;
    /* border: 1px solid #fed7aa; */
    box-sizing: border-box;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-icon {
    width: 24px;
    height: 24px;
    color: #f75444;
    flex-shrink: 0;
}

.notice-icon svg {
    width: 100%;
    height: 100%;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-text {
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}

.notice-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 84, 68, 0.1);
    border: none;
    border-radius: 50%;
    color: #f75444;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.notice-close:hover {
    background: rgba(247, 84, 68, 0.2);
    transform: rotate(90deg);
}

.notice-close svg {
    width: 14px;
    height: 14px;
}

.banner-section {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;

    box-sizing: border-box;
}

.banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

.banner-subtitle {
    font-size: 13px;
    line-height: 20px;
    color: #6b7280;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-title {

    line-height: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: -4px;
}

.experience-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.experience-btn svg {
    width: 14px;
    height: 14px;
}

.banner-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.banner-main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.banner-main-image img {
    width: 180px;
    height: auto;
    object-fit: cover;
}

.feature-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.feature-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 140px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tools-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.tool-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tools-grid a,
.feature-cards a,
.banner-main-image a {
    text-decoration: none;
    color: inherit;
}

.tool-card .card-image {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.tool-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-card .card-info {
    padding: 14px 14px 16px;
}

.tool-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    text-align: center;
}

.tool-card .card-desc {
    font-size: 12px;
    color: #8a8f99;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-tools {
    width: 100%;
    box-sizing: border-box;
}

.more-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.more-card {
    background: #eff2f7;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.more-card:hover {
    background: #e4e7ed;
}

.more-card .card-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f75444 0%, #ff7875 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .main-content {
        margin-left: var(--sidebar-width-large);
        width: calc(100% - var(--sidebar-width-large));
        padding: 80px var(--content-padding-large);
    }

    .main-title {
        font-size: 32px;
    }

    .tools-grid {
        gap: 20px;
    }
}

@media (min-width: 2560px) {
    .main-content {
        margin-left: calc(var(--sidebar-width) * 1.3);
        width: calc(100% - var(--sidebar-width) * 1.3);
        padding: 100px 80px;
    }
}

@media (min-width: 1200px) {
    .main-content {
        padding: 48px 60px;
    }
    
    .banner-section {
        padding: 0px 0px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .more-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        padding: 60px 80px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: var(--sidebar-width-mobile);
        padding: 20px;
        width: calc(100% - var(--sidebar-width-mobile));
    }

    .banner-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 16px;
    }

    .banner-left {
        padding-left: 0;
    }

    .banner-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .more-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .more-card {
        padding: 12px 16px;
        font-size: 13px;
    }
}

.site-footer {
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    padding: 20px;
    margin-top: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    clear: both;
    position: relative;
    align-self: stretch;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.8;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 4px;
}
.footer-links a:hover {
    color: #f75444;
}
.footer-link-sep {
    color: #ddd;
    margin: 0 2px;
    font-size: 12px;
}
.footer-copyright {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}
.footer-copyright a {
    color: #999;
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.2s;
}
.footer-copyright a:hover {
    color: #f75444;
}
