/**
 * 页面特定样式
 * MTO Moving Theme
 * 
 * @package MTOMoving
 * @since 1.0.0
 */

/* ========================================
   全屏Hero区（首页）
   ======================================== */
.fullscreen-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-6);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: var(--leading-tight);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--white);
    margin-bottom: var(--space-8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
}

.hero-features span {
    color: var(--white);
    font-weight: var(--font-medium);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   页面Hero（内页）
   ======================================== */
.page-hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-16);
}

/* 内页Hero区 - 带背景图版本 */
.page-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero高度变体 */
.page-hero-section.hero-small {
    min-height: 300px;
    height: 40vh;
}

.page-hero-section.hero-medium {
    min-height: 400px;
    height: 50vh;
    max-height: 500px;
}

.page-hero-section.hero-large {
    min-height: 500px;
    height: 60vh;
    max-height: 600px;
}

/* Hero容器和内容居中 */
.page-hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.page-hero-section .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero内容样式覆盖 */
.page-hero-section .hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-4);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: var(--leading-tight);
}

.page-hero-section .hero-subtitle {
    font-size: var(--text-xl);
    color: var(--white);
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: var(--font-medium);
}

/* Hero区域的文章元信息 */
.page-hero-section .hero-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero-section .hero-post-meta .posted-on,
.page-hero-section .hero-post-meta .cat-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.page-hero-section .hero-post-meta .posted-on::before {
    content: "📅";
    font-size: var(--text-base);
}

.page-hero-section .hero-post-meta .cat-links::before {
    content: "📁";
    font-size: var(--text-base);
}

.page-hero-section .hero-post-meta a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color var(--transition-base);
}

.page-hero-section .hero-post-meta a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Hero特性标签 */
.page-hero-section .hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.page-hero-section .hero-feature-item {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero动作按钮 */
.page-hero-section .hero-actions {
    margin-top: var(--space-8);
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* Hero面包屑 */
.page-hero-section .hero-breadcrumb {
    margin-bottom: var(--space-4);
}

.page-hero-section .hero-breadcrumb .breadcrumb {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.page-hero-section .hero-breadcrumb .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero-section .hero-breadcrumb .breadcrumb a:hover {
    color: var(--white);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.page-subtitle {
    font-size: var(--text-xl);
    color: var(--primary-100);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   服务页面
   ======================================== */
.services-page {
    padding-bottom: var(--space-16);
}

/* 服务分类区块 */
.services-category-section {
    padding: var(--space-20) 0;
}

.services-category-section:nth-child(even) {
    background-color: var(--gray-50);
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.category-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.category-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.services-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

/* 服务卡片 */
.service-card {
    background-color: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    transition: all var(--transition-all);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
}

.service-card .service-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.service-card .service-description {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
    text-align: left;
}

.service-card .service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--gray-700);
}

.service-card .service-features svg {
    color: var(--success-500);
    flex-shrink: 0;
}

/* 为什么选择我们区块 */
.why-choose-section {
    background-color: var(--gray-50);
    padding: var(--space-20) 0;
}

.why-choose-section .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* ========================================
   评价页面
   ======================================== */
.reviews-page {
    padding-bottom: var(--space-16);
}

.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

/* ========================================
   FAQ页面
   ======================================== */
.faq-page {
    padding-bottom: var(--space-16);
}

/* ========================================
   联系页面
   ======================================== */
.contact-page {
    padding-bottom: var(--space-16);
}

/* 联系页面 - 左右两栏布局 */
.contact-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    margin-top: var(--space-12);
    align-items: start;
}

/* 左侧：联系信息列表 */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* 联系信息卡片 - 采用主题标准卡片样式 */
.contact-info-row {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    overflow: hidden;
    transition: all var(--transition-all);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
}

.contact-info-row:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* 图标 - 采用主题标准圆形图标样式 */
.contact-row-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.contact-row-icon svg {
    width: 36px;
    height: 36px;
}

.contact-row-content {
    flex: 1;
    min-width: 0;
}

.contact-row-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.contact-row-text {
    font-size: var(--text-base);
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
}

.contact-row-desc {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.contact-link {
    color: var(--primary-700);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-link:hover {
    color: var(--accent-600);
}

/* 右侧：微信二维码卡片 */
.contact-right {
    position: sticky;
    top: var(--space-8);
}

/* 微信卡片 - 采用主题标准卡片样式 */
.contact-wechat-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    overflow: hidden;
    transition: all var(--transition-all);
}

.contact-wechat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.contact-wechat-header {
    padding: var(--space-8) var(--space-6) var(--space-6);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
}

/* 微信图标 - 采用主题标准圆形图标样式 */
.contact-wechat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    box-shadow: 0 10px 20px rgba(7, 193, 96, 0.3);
}

.contact-wechat-icon svg {
    width: 42px;
    height: 42px;
}

.contact-wechat-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.contact-wechat-subtitle {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin: 0;
}

.contact-wechat-qr {
    padding: var(--space-8);
    text-align: center;
}

.contact-wechat-qr img {
    display: inline-block;
    width: 240px;
    height: 240px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gray-100);
}

.contact-wechat-footer {
    padding: var(--space-6);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.contact-wechat-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    text-align: left;
    margin: 0;
}

.wechat-hint-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-600);
}

/* ========================================
   关于页面
   ======================================== */
.about-page {
    padding-bottom: var(--space-16);
}

.about-content-section {
    padding: var(--space-16) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
    align-items: center;
}

.about-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

.about-text p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* 证书展示 */
.certificates-section {
    padding: var(--space-16) 0;
    background-color: var(--gray-50);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.certificate-item img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   博客页面
   ======================================== */

/* 归档页和搜索页 - 移除顶部padding，因为有hero */
.archive-page,
.search-page {
    padding: 0;
    background-color: var(--gray-50);
}

.archive-page .section,
.search-page .section {
    padding: var(--space-16) 0;
}

.posts-list {
    margin-bottom: var(--space-12);
}

/* 单篇文章页 - 移除顶部padding，因为有hero */
.single-post {
    padding: 0;
    background-color: var(--white);
}

/* 文章元信息头部 */
.entry-meta-header {
    background-color: var(--gray-50);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--gray-200);
}

.entry-meta-header .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.entry-meta-header .entry-meta > * {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.entry-meta-header .entry-meta a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta-header .entry-meta a:hover {
    color: var(--primary-800);
}

/* 文章特色图片 */
.entry-featured-image {
    background-color: var(--gray-100);
    padding: var(--space-8) 0;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 文章内容区域 */
.entry-content {
    padding: var(--space-12) 0;
}

.entry-content .container {
    max-width: 800px;
}

.entry-content p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    color: var(--gray-700);
}

.entry-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
}

.entry-content h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.entry-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.entry-content img {
    width: 100%;
    height: auto;
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
}

.entry-content ul,
.entry-content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.entry-content li {
    margin-bottom: var(--space-3);
    line-height: var(--leading-relaxed);
}

.entry-content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    border-left: 4px solid var(--primary-500);
    background-color: var(--gray-50);
    font-style: italic;
    color: var(--gray-700);
}

.entry-content code {
    padding: 0.25rem 0.5rem;
    background-color: var(--gray-100);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    margin: var(--space-6) 0;
    padding: var(--space-6);
    background-color: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    color: var(--white);
    padding: 0;
}

/* 文章页脚 */
.entry-footer {
    background-color: var(--gray-50);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--gray-200);
}

.entry-footer .container {
    max-width: 800px;
}

/* 文章导航 */
.post-navigation {
    background-color: var(--gray-50);
    padding: var(--space-8) 0;
    margin-top: var(--space-12);
}

.post-navigation .nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    gap: var(--space-8);
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: var(--white);
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nav-previous a {
    text-align: left;
}

.nav-next a {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    line-height: 1.4;
}

/* 分页导航 */
.pagination-wrapper {
    margin-top: var(--space-12);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-base);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.pagination .page-numbers:hover {
    background-color: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
}

.pagination .page-numbers.current {
    background-color: var(--primary-800);
    border-color: var(--primary-800);
    color: var(--white);
    font-weight: var(--font-semibold);
}

.pagination .page-numbers .icon {
    width: 20px;
    height: 20px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: var(--font-semibold);
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    padding: var(--space-3) var(--space-2);
}

.pagination .page-numbers.dots:hover {
    background: none;
    border: none;
    color: var(--gray-700);
}

/* ========================================
   404页面
   ======================================== */
.error-404 {
    text-align: center;
    padding: var(--space-24) 0;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: var(--font-bold);
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: var(--space-6);
}

.error-404 h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.error-404 p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
}

/* ========================================
   无文章提示
   ======================================== */
.no-posts-found {
    text-align: center;
    padding: var(--space-20) var(--space-8);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.no-posts-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--gray-300);
}

.no-posts-icon svg {
    width: 100%;
    height: 100%;
}

.no-posts-found h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.no-posts-found p {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

