/* Hero Section - Non-index pages only */
body:not(.home) .hero {
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    padding-top: 80px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 22, 28, 0.8) 0%, rgba(249, 168, 37, 0.8) 100%);
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-breadcrumbs {
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease;
}

.hero-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-breadcrumbs a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.hero-breadcrumbs span {
    font-weight: 500;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 38px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn-lg {
        padding: 12px 32px;
        font-size: 14px;
    }
    
    .hero-breadcrumbs {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* Statistics */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

/* Cases Section */
.cases-section {
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.case-image img.error {
    display: none;
}

.case-image img.loading {
    opacity: 0;
}

.case-image img.loaded {
    opacity: 1;
}

/* 占位符样式 */
.case-image .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image .placeholder-text::before {
    content: '📸';
}

.placeholder-image {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.case-content {
    padding: 24px;
}

.case-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 12px;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.case-content > p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.spec-item {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Process Section */
.process-section {
    background: var(--bg-light);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.process-number {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.process-content {
    flex: 1;
}

.process-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.process-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Capacity Section */
.capacity-section {
    background: #fff;
}

.capacity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.capacity-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.capacity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.capacity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.capacity-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.capacity-list {
    text-align: left;
}

.capacity-list li {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.capacity-list li:last-child {
    border-bottom: none;
}

.capacity-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capacity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 240px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .capacity-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .case-specs {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-white);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 110px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rating {
    display: none;
}

.avatar-placeholder {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.author-info {
    width: 260px;
    flex-shrink: 0;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.author-title {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.rating {
    display: flex;
    gap: 4px;
}

.star {
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 暗色模式适配 - cases页面特有 */
[data-theme="dark"] .stats-section {
    background: #1a1a1a;
}

[data-theme="dark"] .stat-item {
    background: #1e1e1e;
}

[data-theme="dark"] .process-section {
    background: #1a1a1a;
}

[data-theme="dark"] .process-item {
    background: #1e1e1e;
}

[data-theme="dark"] .process-item:hover {
    background: #252525;
}

[data-theme="dark"] .capacity-section {
    background: #121212;
}

[data-theme="dark"] .capacity-card {
    background: #1e1e1e;
}

[data-theme="dark"] .capacity-card:hover {
    background: #252525;
}
