/* ============================================================
 *  煜园设计 - 首页专用样式
 *  从 index.html 内联提取，版本 v1
 * ============================================================ */

/* 字体加载优化：防止FOIT，使用FOUT策略 */
@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans SC Fallback';
    src: local('PingFang SC'), local('Microsoft YaHei'), local('SimHei'), local('sans-serif');
    font-weight: 400 700;
    font-display: swap;
}

/* GEO优化：核心服务入口样式 */
.core-services-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
}
.core-services-title {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 10px;
}
.core-services-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}
.core-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.core-service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.core-service-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}
.core-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.core-service-icon i {
    font-size: 28px;
    color: #1a1a1a;
}
.core-service-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.core-service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
@media (max-width: 900px) {
    .core-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .core-services-grid {
        grid-template-columns: 1fr;
    }
    .core-service-card {
        padding: 30px 20px;
    }
}

/* 导航下拉菜单样式 */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    display: block;
    margin: 0;
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .nav-dropdown {
        position: relative;
    }
    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-dropdown > a i {
        transition: transform 0.3s ease;
    }
    .nav-dropdown.active > a i {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border: none;
        border-left: 2px solid var(--accent-gold);
        border-radius: 0;
        margin-left: 20px;
        padding: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        padding: 8px 0;
    }
    .dropdown-menu a {
        padding: 12px 20px;
    }
}

/* 博客预览样式 */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.blog-preview-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.blog-preview-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-preview-card-link:hover .blog-preview-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.blog-preview-image {
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    position: relative;
}
.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}
.blog-preview-card-link:hover .blog-preview-image img {
    transform: scale(1.05);
}
.blog-preview-content {
    padding: 20px;
}
.blog-preview-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.blog-preview-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s;
}
.blog-preview-card-link:hover .blog-preview-title {
    color: var(--accent-gold);
}
.blog-preview-summary {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-preview-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}
.blog-preview-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.section-alt {
    background: var(--bg-primary);
}

/* 首页评价模块样式 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
}
.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}
.testimonial-meta {
    flex: 1;
}
.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.testimonial-project {
    color: var(--text-muted);
    font-size: 13px;
}
.testimonial-rating {
    color: var(--accent-gold);
    font-size: 14px;
}
.testimonial-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 16px;
}
.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.testimonial-location {
    color: var(--text-muted);
    font-size: 13px;
}
.testimonial-verified {
    color: #07C160;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.testimonials-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

/* 首页FAQ模块样式 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item-home {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
}
.faq-item-home:hover {
    border-color: rgba(212, 175, 55, 0.3);
}
.faq-question-home {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}
.faq-question-home:hover {
    background: rgba(212, 175, 55, 0.05);
}
.faq-question-text-home {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}
.faq-category-tag-home {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    font-size: 12px;
    border-radius: 4px;
    margin-right: 16px;
}
.faq-toggle-home {
    color: var(--text-muted);
    transition: transform 0.3s;
}
.faq-item-home.active .faq-toggle-home {
    transform: rotate(180deg);
}
.faq-answer-home {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item-home.active .faq-answer-home {
    max-height: 300px;
}
.faq-answer-content-home {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}
.faq-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 20px;
    }
    .faq-question-home {
        padding: 16px 20px;
    }
    .faq-category-tag-home {
        display: none;
    }
}