/* ============================================================
   子页面公共样式
   ============================================================ */

/* ============================================================
   页面加载动画
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    top: 80px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    position: relative;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--border);
    border-radius: 50%;
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loaderSpin 1.2s linear infinite;
}

.loader-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid transparent;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite reverse;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 移除默认蓝色焦点轮廓 */
*:focus {
    outline: none;
}
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
    width: 100%;
    margin: 0 auto;
    grid-column: 1 / -1;
}

.products-empty img {
    max-width: 200px;
    margin-bottom: 24px;
}

.products-empty h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.products-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================================
   通用筛选区域样式
   scene.php / column.php / gallery.php 共用
   ============================================================ */
.filter-tab {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-decoration: none;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: #ffffff;
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

/* 兼容旧类名 */
.scene-filter,
.column-filters,
.filter-section {
    padding: 24px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 100;
}

.scene-filter-tabs,
.filter-tabs,
.filter-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.scene-filter-tabs .filter-tab,
.filter-tabs .filter-tab,
.filter-tabs-wrapper .filter-tab {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-decoration: none;
}

.scene-filter-tabs .filter-tab:hover,
.filter-tabs .filter-tab:hover,
.filter-tabs-wrapper .filter-tab:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.scene-filter-tabs .filter-tab.active,
.filter-tabs .filter-tab.active,
.filter-tabs-wrapper .filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

/* ============================================================
   通用组件样式
   ============================================================ */

/* 品牌卡片 */
.brands-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.brands-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.brand-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s ease;
}

.brand-card:nth-child(even) {
    direction: rtl;
}

.brand-card:nth-child(even) > * {
    direction: ltr;
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.brand-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.brand-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: all 0.6s ease;
}

.brand-card:hover .brand-card-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.brand-card-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.brand-card-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    line-height: 1;
}

.brand-card-content {
    padding: 20px 0;
}

.brand-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.brand-card-title span {
    color: var(--primary);
    font-weight: 400;
    font-style: italic;
}

.brand-card-desc {
    font-size: 1rem;
    color: var(--text-warm);
    line-height: 1.7;
    margin-bottom: 20px;
}

.brand-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 14px;
    background: rgba(0, 147, 128, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.brand-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-card-link:hover {
    gap: 16px;
}

.brand-card-link svg {
    transition: transform 0.3s ease;
}

.brand-card-link:hover svg {
    transform: translateX(4px);
}

/* 产品分类 */
.categories-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 147, 128, 0.15);
}

.category-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 128, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.category-card:hover .category-card-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.category-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.category-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.category-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 全屋方案 */
.solution-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.solution-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 12vw;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    white-space: nowrap;
    pointer-events: none;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-content .section-title {
    margin-bottom: 24px;
}

.solution-content .section-desc {
    margin-bottom: 30px;
}

.solution-list {
    list-style: none;
    margin-bottom: 40px;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-warm);
    font-size: 0.95rem;
}

.solution-list li i {
    color: var(--primary);
    font-size: 0.8rem;
}

.solution-image {
    position: relative;
}

.solution-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(60%);
    transition: all 0.6s ease;
}

.solution-image:hover img {
    filter: grayscale(0%);
}

.solution-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--primary);
    opacity: 0.2;
    z-index: -1;
}

/* 特色卡片 */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.feature-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 128, 0.1);
    border-radius: 12px;
    font-size: 1.8rem;
    color: var(--primary);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a1f 0%, #0d1117 50%, #1a1a1f 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 147, 128, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 147, 128, 0.3), transparent);
}

.cta-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}

.cta-contact {
    margin-top: 30px;
}

.cta-contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.cta-phone {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.cta-phone:hover {
    color: var(--gold);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   关于我们页面样式
   ============================================================ */

.about-intro {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-intro-content h2 em {
    color: var(--primary);
    font-style: italic;
}

.about-intro-content p {
    font-size: 1.05rem;
    color: var(--text-warm);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-intro-image {
    position: relative;
}

.about-intro-image img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.6s ease;
}

.about-intro-image:hover img {
    filter: grayscale(0%) brightness(1);
}

.about-intro-image::after {
    content: '';
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 1px solid var(--primary);
    opacity: 0.3;
    pointer-events: none;
}

.about-brand {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.brand-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.brand-value-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.brand-value-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 147, 128, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.4rem;
}

.brand-value-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.brand-value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-timeline {
    padding: 100px 0;
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-year {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-tech {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 147, 128, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.6rem;
}

.tech-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   About 页面相关 - 已移至 about.php 内联样式
   ============================================================ */

/* ============================================================
   响应式通用样式
   ============================================================ */

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Hero响应式样式已移至 base.css */
    
    .brand-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-card:nth-child(even) {
        direction: ltr;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 70px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .cta-buttons a {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}
