/* 导航栏容器 */
.navbar {
    display: flex;
    background-color: #303030;
    padding: 0;
    width: 100%;
}

/* 导航项样式 */
.nav-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;
}

/* 选中状态 */
.nav-item.active {
    background-color: #27ae60;
}

.nav-item.active span {
    color: #fff;
}

/* 容器 */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* 案例头部 */
.case-header {
    margin-bottom: 60px;
}

.case-title-wrapper {
    text-align: center;
}

.case-category {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.case-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 30px 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

.case-info {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z"/></svg>') no-repeat center;
    background-size: contain;
}

.info-icon.view {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 案例展示区 */
.case-showcase {
    width: 100%;
}

.case-content {
    max-width: 1500px;
    margin: 0 auto;
}

/* 大图展示 */
.case-hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.case-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.case-hero-image:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* 案例描述 */
.case-description {
    margin-bottom: 50px;
}

.case-section {
    background: #252525;
    padding: 40px;
    border-radius: 0;
}

.section-label {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.section-content {
    font-size: 16px;
    line-height: 1.9;
    color: #ccc;
}

.section-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 0;
}

.section-content h2,
.section-content h3,
.section-content h4 {
    color: #fff;
    margin: 30px 0 15px 0;
}

.section-content h2 {
    font-size: 24px;
}

.section-content h3 {
    font-size: 20px;
}

.section-content h4 {
    font-size: 18px;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content a {
    color: #27ae60;
    text-decoration: none;
}

.section-content a:hover {
    color: #2ecc71;
}

/* 案例标签 */
.case-tags {
    background: #252525;
    padding: 35px 40px;
    border-radius: 0;
    margin-bottom: 50px;
}

.tags-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #333, #252525);
    color: #888;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 0;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border-color: #27ae60;
    transform: translateY(-2px);
}

/* 分隔线 */
.case-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
}

.divider-text {
    color: #666;
    font-size: 14px;
    letter-spacing: 3px;
}

/* 导航卡片 */
.case-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.4s ease;
}

.nav-card:hover {
    background: #2a2a2a;
    border-color: #27ae60;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.2);
}

.next-card {
    justify-content: flex-end;
    text-align: right;
}

.nav-card .nav-icon {
    font-size: 28px;
    color: #27ae60;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
    min-width: 0;
}

.nav-label {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 返回按钮 */
.case-actions {
    text-align: center;
    margin-bottom: 40px;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.return-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-icon {
    font-size: 18px;
}

/* 案例详情页面样式 - imagedetail */
.imagedetail {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 40px;
}

.imagedetail article {
    background: #252525;
    border-radius: 0;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.imagedetail h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px 0;
    line-height: 1.3;
    text-align: center;
}

.imagedetail .top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}

.imagedetail .top b {
    color: #888;
    font-size: 15px;
    font-weight: 500;
}

.imagedetail .top i {
    color: #27ae60;
    font-size: 15px;
    font-weight: 600;
}

.imagedetail .content {
    margin-top: 30px;
}

.imagedetail .content aside {
    font-size: 17px;
    line-height: 1.9;
    color: #ccc;
}

.imagedetail .content aside img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.imagedetail .content aside h2,
.imagedetail .content aside h3,
.imagedetail .content aside h4 {
    color: #fff;
    margin: 40px 0 20px 0;
}

.imagedetail .content aside h2 {
    font-size: 28px;
    font-weight: 700;
}

.imagedetail .content aside h3 {
    font-size: 24px;
    font-weight: 600;
}

.imagedetail .content aside h4 {
    font-size: 20px;
    font-weight: 600;
}

.imagedetail .content aside p {
    margin-bottom: 25px;
}

.imagedetail .content aside ul,
.imagedetail .content aside ol {
    margin: 25px 0;
    padding-left: 30px;
}

.imagedetail .content aside li {
    margin-bottom: 15px;
}

.imagedetail .content aside a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s ease;
}

.imagedetail .content aside a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.imagedetail dir {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.imagedetail dl {
    flex: 1;
    background: #2a2a2a;
    padding: 25px;
    border-radius: 0;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.imagedetail dl:hover {
    background: #303030;
    border-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
}

.imagedetail dl dt {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.imagedetail dl dd {
    margin: 0;
}

.imagedetail dl dd a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.imagedetail dl dd a:hover {
    color: #27ae60;
}

.imagedetail dl dd i {
    color: #666;
    font-size: 14px;
    font-style: normal;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 50px 30px;
    }

    .imagedetail {
        padding: 50px 30px;
    }

    .imagedetail article {
        padding: 40px;
    }

    .imagedetail h1 {
        font-size: 36px;
    }

    .case-title {
        font-size: 40px;
    }

    .case-hero-image {
        height: 500px;
    }

    .case-section,
    .case-tags {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .imagedetail {
        padding: 40px 20px;
    }

    .imagedetail article {
        padding: 30px 25px;
    }

    .imagedetail h1 {
        font-size: 30px;
    }

    .imagedetail .top {
        flex-direction: column;
        gap: 12px;
    }

    .imagedetail dir {
        flex-direction: column;
    }

    .imagedetail .content aside {
        font-size: 16px;
    }

    .imagedetail .content aside h2 {
        font-size: 24px;
    }

    .imagedetail .content aside h3 {
        font-size: 20px;
    }

    .case-header {
        margin-bottom: 40px;
    }

    .case-title {
        font-size: 32px;
    }

    .case-info {
        flex-direction: column;
        gap: 15px;
    }

    .case-hero-image {
        height: 400px;
        border-radius: 0;
    }

    .case-section,
    .case-tags {
        padding: 25px 20px;
    }

    .section-label {
        font-size: 18px;
    }

    .case-navigation {
        flex-direction: column;
    }

    .next-card {
        justify-content: flex-start;
        text-align: left;
    }

    .tags-list {
        gap: 10px;
    }

    .tag-item {
        padding: 6px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .imagedetail {
        padding: 30px 15px;
    }

    .imagedetail article {
        padding: 25px 20px;
    }

    .imagedetail h1 {
        font-size: 26px;
    }

    .imagedetail .content aside {
        font-size: 15px;
    }

    .imagedetail .content aside h2 {
        font-size: 22px;
    }

    .imagedetail .content aside h3 {
        font-size: 18px;
    }

    .case-title {
        font-size: 26px;
    }

    .case-hero-image {
        height: 300px;
    }

    .case-section,
    .case-tags {
        padding: 20px 15px;
    }

    .nav-card {
        padding: 20px;
    }

    .return-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-item {
        font-size: 16px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px;
        padding: 10px 0;
    }
}