/* ============================================
   经典案例页样式表 - anli.css
   独立样式，不影响其他页面
   ============================================ */

/* === 全局重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 板块1：页面标题 === */
.page-header {
    background: linear-gradient(135deg, rgba(26,42,74,0.85) 0%, rgba(15,26,48,0.88) 50%, rgba(26,42,74,0.85) 100%), url('../images/albanner.jpg') center/cover no-repeat;
    position: relative;
    padding-top: 100px; /* 为固定导航栏留出空间 */
    min-height: 350px;
    padding-bottom: 80px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f5a623;
}

/* === 板块2：筛选导航 === */
.filter-section {
    background: #f8f9fc;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 28px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.filter-btn.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

/* === 板块3：案例列表 === */
.cases-section {
    padding: 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #f5a623;
}

.case-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(245,166,35,0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.case-content {
    padding: 24px;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-content h3 a {
    color: inherit;
    transition: color 0.3s;
}

.case-content h3 a:hover {
    color: #f5a623;
}

/* 新的案例项样式 */
.case-item {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #555;
}

.case-label {
    color: #1a2a4a;
    font-weight: 700;
    margin-right: 4px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: 12px;
    color: #999;
}

.case-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #f5a623;
    transition: gap 0.3s;
}

.case-link:hover {
    color: #e8941a;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn,
.page-num {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-num:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.page-num.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #999;
    font-size: 14px;
}

/* === 板块4：数据统计 === */
.stats-section {
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a30 100%);
    padding: 80px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #f5a623;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

/* === 板块5：CTA召唤 === */
.cta-section {
    background: #f8f9fc;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #f5a623, #e8941a);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,166,35,0.35);
}

/* 注：导航栏、页脚样式已在common.css中统一管理
   以下仅保留桌面端下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 两列布局 */
.dropdown-menu.two-columns {
    display: flex;
    gap: 0;
}

.dropdown-column {
    flex: 1;
    padding: 16px 20px;
    background: #fff;
    border-radius: 0;
}

.dropdown-column:first-child {
    border-right: 1px solid #eee;
    border-radius: 8px 0 0 8px;
}

.dropdown-column:last-child {
    border-radius: 0 8px 8px 0;
}

.column-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5a623;
}

.column-list {
    list-style: none;
}

.column-list li {
    margin-bottom: 0;
}

.column-list a {
    display: block;
    padding: 8px 12px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.2s;
    border-radius: 4px;
}

.column-list a:hover {
    background: #f8f9fc;
    color: #f5a623;
}

/* 单列下拉菜单（默认） */
.dropdown-menu:not(.two-columns) a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s;
}

.dropdown-menu:not(.two-columns) a:hover {
    background: #f8f9fc;
    color: #f5a623;
}

/* 二级子菜单 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
}

.dropdown-submenu > a {
    padding-right: 35px !important;
}

.dropdown-submenu .dropdown-submenu {
    top: 0;
    left: 100%;
    margin-left: 4px;
}

.dropdown-submenu:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu .dropdown-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

/* 注：页脚样式已在common.css中统一管理，不再重复定义

/* === 响应式设计 === */
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .cases-section {
        padding: 40px 0;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-content h3 {
        font-size: 18px;
    }
    
    .case-item {
        font-size: 13px;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-content .btn-primary {
        padding: 14px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn,
    .page-num {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* === 案例详情页 === */
.case-detail-section {
    padding: 60px 0;
    background: #fff;
}

.case-detail {
    max-width: 900px;
    margin: 0 auto;
}

/* 案例概览 */
.case-overview {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.overview-item {
    text-align: center;
}

.overview-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.overview-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
}

/* 案例内容区块 */
.case-section {
    margin-bottom: 50px;
}

.case-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a2a4a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f5a623;
}

.case-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a4a;
    margin: 30px 0 16px;
}

.case-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.case-content p {
    margin-bottom: 20px;
}

.case-content ul,
.case-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.case-content li {
    margin-bottom: 10px;
    padding-left: 8px;
}

.case-content strong {
    font-weight: 700;
    color: #1a2a4a;
}

/* 成果高亮 */
.result-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a30 100%);
    border-radius: 12px;
    color: #fff;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: 48px;
    font-weight: 800;
    color: #f5a623;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* 客户评价 */
.case-testimonial-section {
    background: #f8f9fc;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #f5a623;
}

.testimonial-content blockquote {
    font-size: 18px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #f5a623;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: #999;
}

/* 应用产品 */
.case-products-section {
    padding: 40px;
    background: #f8f9fc;
    border-radius: 12px;
    margin-top: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
    text-align: center;
}

.product-item:hover {
    border-color: #f5a623;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.product-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2a4a;
    line-height: 1.4;
}

/* 相关案例推荐 */
.related-cases {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-cases h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 30px;
    text-align: center;
}

.related-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-case-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.related-case-card:hover {
    border-color: #f5a623;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.related-case-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-case-card:hover .related-case-image img {
    transform: scale(1.05);
}

.related-case-content {
    padding: 20px;
}

.related-case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f5a623;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-case-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-case-result {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 响应式 - 案例详情页 */
@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .result-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .highlight-number {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .case-detail-section {
        padding: 40px 0;
    }
    
    .page-header {
        padding-top: 100px;
        min-height: 280px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .case-overview {
        padding: 20px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .overview-value {
        font-size: 14px;
    }
    
    .case-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .case-section h3 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .case-content {
        font-size: 14px;
    }
    
    .result-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .highlight-number {
        font-size: 42px;
    }
    
    .case-testimonial-section {
        padding: 24px;
    }
    
    .testimonial-content blockquote {
        font-size: 16px;
    }
    
    .case-products-section {
        padding: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-item {
        padding: 20px 12px;
    }
    
    .product-icon {
        font-size: 32px;
    }
    
    .related-cases h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .related-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .overview-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .overview-label {
        margin-bottom: 0;
    }
    
    .case-section h2 {
        font-size: 22px;
    }
    
    .case-section h3 {
        font-size: 18px;
    }
    
    .highlight-number {
        font-size: 36px;
    }
    
    .product-item {
        padding: 16px 10px;
    }
    
    .product-icon {
        font-size: 28px;
    }
    
    .product-name {
        font-size: 13px;
    }
}

/* === 新闻详情页样式（与xinwen.php一致） === */
.news-detail-section {
    padding: 100px 0 60px;
    background: #fff;
}

.news-detail-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-article {
    background: #fff;
}

.news-detail-article h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a2a4a;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: center;
}

.news-detail-meta {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.detail-category {
    font-size: 14px;
    color: #f5a623;
    background: rgba(245,166,35,0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.detail-date {
    font-size: 14px;
    color: #999;
}

.news-detail-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-challenge,
.news-detail-result {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-challenge {
    background: #fff8e6;
    border-left: 4px solid #f5a623;
}

.news-detail-result {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.news-detail-challenge h3,
.news-detail-result h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 10px;
}

.news-detail-challenge p,
.news-detail-result p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}

.news-detail-content p {
    margin-bottom: 16px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.news-detail-content p[style*="text-align: center"] {
    text-align: center !important;
}

.news-detail-content p:not([style*="text-align: left"]):not([style*="text-align: right"]) img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.news-detail-content figure {
    margin: 20px 0;
    text-align: center;
}

.news-detail-content figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.news-detail-content figcaption {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.news-detail-back {
    margin-top: 40px;
    text-align: center;
}

.news-detail-back .btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #f5a623, #e8941a);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.news-detail-back .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,166,35,0.35);
}

/* 响应式 - 新闻详情页 */
@media (max-width: 992px) {
    .news-detail-article h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-detail-section {
        padding: 80px 0 40px;
    }
    
    .news-detail-article h1 {
        font-size: 24px;
    }
    
    .news-detail-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-detail-article h1 {
        font-size: 20px;
    }
    
    .news-detail-content {
        font-size: 14px;
    }
}
