/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.wrap {
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner样式 */
.pufa-banner {
    position: relative;
    height: 400px;
    background-color: #4a6b8a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.pufa-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-text .main-title {
    font-size: 48px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 8px;
    margin: 0;
}

/* 案例页面主体 */
.case-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 128px;
    height: 3px;
    background: #c8965f;
}

.en-title {
    font-size: 20px;
    color: #c9a66b;
    letter-spacing: 2px;
}

.search-box {
    display: flex;
    gap: 0;
    align-items: stretch;
    position: relative;
}

.search-input {
    width: 380px;
    height: 44px;
    padding: 0 50px 0 20px;
    border: 1px solid #d5d5d5;
    border-right: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: #c9a66b;
}

.clear-btn {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #999;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    z-index: 1;
}

.clear-btn:hover {
    color: #666;
}

.clear-icon {
    flex-shrink: 0;
}

.search-btn {
    width: 120px;
    height: 44px;
    background-color: #c9a66b;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #b8955a;
}

.search-icon {
    flex-shrink: 0;
}

/* 内容区域 */
.case-content-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* 左侧边栏 */
.case-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.category-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    padding: 14px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f5f5f5;
    text-align: center;
    border: none;
}

.category-item:hover {
    background-color: #e8e8e8;
    color: #333;
}

.category-item.active {
    background-color: #1e3a5f;
    color: #fff;
}

/* 右侧主内容 */
.case-main-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.case-loading,
.case-empty {
    text-align: center;
    padding: 80px 20px;
    font-size: 16px;
    color: #999;
    background-color: #fff;
    border-radius: 4px;
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 案例项 */
.case-item {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e2e1e1;
}

.case-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.case-title {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.case-title a {
    color: #1e3a5f;
}

.case-title a:hover {
    color: #c9a66b;
}

.view-detail-btn {
    padding: 8px 28px;
    background-color: #fff;
    color: #1e3a5f;
    font-size: 14px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.3s;
}

.view-detail-btn:hover {
    background-color: #c9a66b;
    color: #fff;
    border-color: #c9a66b;
}

.case-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-right: 200px;
}

.case-description * {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.case-description p,
.case-description div,
.case-description span {
    display: inline !important;
}

.case-meta {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item .icon {
    color: #999;
    flex-shrink: 0;
}

/* 分页 */
.qa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 30px 32px;
    background: #ffffff;
    border-radius: 16px;
}

.qa-pagination button {
    font-family: inherit;
}

.page-link {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d5dae5;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #0f2a59;
    color: #0f2a59;
}

.page-link.active {
    background: #0f2a59;
    border-color: #0f2a59;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 42, 89, 0.2);
}

.page-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #d5dae5;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.page-circle::before {
    content: "";
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.page-circle.prev::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M7.5 3l-3 3 3 3' stroke='%230F2A59' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.page-circle.next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 3l3 3-3 3' stroke='%230F2A59' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.page-circle:hover {
    border-color: #0f2a59;
    box-shadow: 0 8px 20px rgba(15, 42, 89, 0.2);
}

.page-circle.disabled,
.page-circle:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.page-ellipsis {
    color: #9aa2b3;
    font-size: 16px;
    letter-spacing: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 页脚 */
.page-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-left {
    flex-shrink: 0;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-center {
    flex: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 13px;
    color: #999;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c9a66b;
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
}

.footer-right {
    flex-shrink: 0;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.contact-item .icon {
    fill: #c9a66b;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #c9a66b;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}