:root {
    --sidebar-width: 180px;
    --sidebar-width-large: 200px;
    --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;
}

body {
    display: flex;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.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: #f5f7fa;
    overflow-x: hidden;
    position: relative;
}

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

.banner-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 0;
    box-sizing: border-box;
}

.banner-left {
    flex: 1;
    padding-left: 20px;
}

.banner-tag {
    font-size: 14px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.85);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-title-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.banner-title {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.experience-btn {
    width: fit-content;
    flex-shrink: 0;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.experience-bg {
    position: absolute;
    width: calc(100% + 16px);
    height: 16px;
    z-index: 1;
    left: -8px;
    top: 7px;
    transform: rotate(-3.6deg) skewX(-12deg);
    border-radius: 3px;
    background: rgb(172, 163, 248);
}

.experience-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.experience-content span {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    position: relative;
}

.experience-content span::after {
    content: '';
    position: absolute;
    height: 1px;
    background: #000;
    bottom: -2px;
    left: 0;
    right: 0;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

.arrow-icon svg {
    width: 10px;
    height: 10px;
}

.banner-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}

.banner-images {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-img, .model-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-img img, .model-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.arrow-between {
    font-size: 20px;
    color: #666;
}

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

.feature-card {
    display: flex;
    padding: 20px;
    border-radius: 16px;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.left-card {
    background: linear-gradient(135deg, #e8f4ff 0%, #d6e8ff 100%);
}

.right-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.feature-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.feature-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.feature-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.feature-arrow-btn:hover {
    transform: scale(1.1);
}

.feature-arrow-btn svg {
    width: 16px;
    height: 16px;
}

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

.feature-images {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 8px;
}

.feature-img img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-arrow {
    font-size: 18px;
    color: #999;
}

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

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

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

.tool-card .card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

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

.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;
    }
}

/* 登录弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin: auto;
    max-height: calc(100vh - 60px);
    overflow-y: visible;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #6b7280;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #ffffff;
    color: #f75444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-content .tab-content {
    display: none !important;
    padding-top: 16px;
    min-height: 200px;
}

.modal-content .tab-content.active,
.modal-overlay.active .modal-content #loginTab.active,
.modal-overlay.active .modal-content #registerTab.active {
    display: block !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #f75444;
    box-shadow: 0 0 0 3px rgba(247, 84, 68, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.forgot-link {
    color: #f75444;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f75444 0%, #ff7875 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 84, 68, 0.3);
}

.submit-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 84, 68, 0.4);
}

.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-login span {
    display: block;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.social-btn.wechat {
    color: #07c160;
}

.social-btn.weibo {
    color: #e6162d;
}

.social-btn.qq {
    color: #12b7f5;
}

@media (min-width: 1200px) {
    .main-content {
        padding: 48px 60px;
    }
    
    .banner-section {
        padding: 32px 40px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 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(auto-fill, minmax(240px, 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;
    }

    .feature-card {
        flex-direction: column;
        gap: 16px;
    }

    .feature-card-right {
        justify-content: flex-start;
    }

    .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;
    }

    .modal-content {
        max-width: 95%;
        padding: 24px;
    }
}
