/*
Theme Name: Fengshui Theme
Theme URI: https://example.com
Author: yubing
Description: A minimal WordPress theme for static pages.
Version: 1.0
*/

/* ===============================
   基础样式初始化（Reset / Normalize）
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

a {
    color: #e6d4b8;
    text-decoration: none;
}

a:hover {
    color: #f8e8c8;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ===============================
   布局样式
   =============================== */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

header,
footer,
main,
aside,
section {
    display: block;
}

/* ===============================
   全局容器
   =============================== */
.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;

}

/* ===============================
   主内容 + 侧边栏
   =============================== */
.main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

#content {
    flex: 1 1 65%;
}

.sidebar {
    flex: 0 0 30%;
}

/* ===============================
   小工具样式
   =============================== */
.widget-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #222;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c1608 0%, #5d2c0c 100%);
    color: #e6d4b8;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    color: #d4a017;
    margin-right: 10px;
    font-size: 28px;
}

/* 导航栏 */
.nav-desktop {
    display: flex;
    gap: 20px;
}

.nav-desktop a {
    color: #e6d4b8;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-desktop a:hover {
    background-color: rgba(212, 160, 23, 0.2);
    color: #f8e8c8;
}

/* 移动端导航按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #e6d4b8;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端导航菜单 */
.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: #2c1608;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: #e6d4b8;
    text-decoration: none;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(230, 212, 184, 0.2);
    transition: background-color 0.3s;
}

.nav-mobile a:hover {
    background-color: rgba(212, 160, 23, 0.2);
}


/* 页脚 */
footer {
    background-color: #2c1608;
    color: #e6d4b8;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
}

.footer-content {
    font-size: 14px;
    color: #e6d4b8;
}

.footer-content a {
    text-decoration: none;
    margin: 0 8px;
}

.footer-content a:hover {
    color: #ff5e5e;
}

.copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 212, 184, 0.2);
    font-size: 14px;
    color: #aaa;
    line-height: 24px;
}

/* 主要内容区 */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(93, 64, 55, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "☷";
    position: absolute;
    font-size: 300px;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 42px;
    color: #4e342e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    color: #6d4c41;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-primary {
    background-color: #5d4037;
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-animation: btnAnim 1.5s linear infinite;
    -moz-animation: btnAnim 1.5s linear infinite;
    animation: btnAnim 1.5s linear infinite;
}

/* 测算服务区 */
.services {
    margin-bottom: 60px;
}

.home-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.home-page-header .services-title,
.s_tit {
    text-align: center;
    font-size: 32px;
    color: #5d4037;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e8e1d1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #8B4513;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4e342e;
}

.service-card p {
    color: #6d4c41;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-service {
    background-color: transparent;
    color: #8B4513;
    border: 2px solid #a1887f;
    padding: 8px 20px;
    font-size: 14px;
}

.btn:hover {
    color: #8B4513;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 简洁服务卡片 */
.simple-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.simple-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

/* 卡片头部 */
.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f0e8, #e8d8c1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #b5834f;
    flex-shrink: 0;
}

.card-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 核心卖点 */
.key-points {
    margin-bottom: 20px;
}

.point-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.point-item:last-child {
    margin-bottom: 0;
}

.point-icon {
    color: #d4a76a;
    margin-right: 10px;
    font-size: 14px;
    margin-top: 2px;
}

.point-text {
    font-size: 14px;
    color: #555;
    flex: 1;
}

/* 价格区域 */
.price-area {
    background: #f9f7f2;
    border-radius: 12px;
    padding: 15px;
    margin-top: auto;
    text-align: center;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 28px;
    font-weight: 800;
    color: #ff6b6b;
}

.price-unit {
    font-size: 14px;
    color: #999;
}

.saving {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 行动按钮 */
.action-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4a76a, #b5834f);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #b5834f, #9a6d3d);
    transform: translateY(-2px);
    color: #fff;
}

/* 简洁统计 */
.simple-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c1810;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* 专业横幅 */
.professional-banner {
    background: linear-gradient(135deg, #2c1810, #4a3526);
    color: white;
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-icon {
    font-size: 40px;
    color: #d4a76a;
    margin-bottom: 15px;
}

.banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-text {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.banner-btn {
    background: #d4a76a;
    color: #2c1810;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #e8d8c1;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .articles-section,
    .sidebar {
        width: 100%;
    }

    .good-luck-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        /* flex-direction: column; */
        gap: 15px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-desktop {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        padding: 9px 10px;
        background-color: transparent;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 4px;
        background: #fff;
    }
    .mobile-menu-btn .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
    }
    .mobile-menu-btn .icon-bar+.icon-bar {
        margin-top: 4px;
    }
    .yfj-icon-bar {
        background: #333333;
    }
    .good-luck-cards {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .meta-left {
        flex-wrap: wrap;
    }

    .simple-services {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 26px;
    }

    .simple-guarantees {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .simple-card {
        padding: 20px;
    }

    .current-price {
        font-size: 24px;
    }
}

/* 特色样式 */
.featured {
    background-color: #fdf6e9;
    border-left: 4px solid #d4a017;
}

.hot-article::before {
    content: "🔥";
    margin-right: 5px;
}

.new-article::before {
    content: "✨";
    margin-right: 5px;
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    /* 默认隐藏 */
    width: 50px;
    height: 50px;
    background-color: #ff5e5e;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.3s, opacity 0.3s;
}

#back-to-top:hover {
    background-color: #ff3b3b;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .article-date {
        margin-left: 0;
        margin-top: 5px;
        font-size: 20px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .article-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .steps:before {
        width: 70%;
        left: 15%;
    }
}

/* 全屏遮罩 */
.global-loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loading 内容 */
.loading-box {
    text-align: center;
    padding: 20px 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn .25s ease;
}

/* 旋转动画 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3f7cff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

.loading-text {
    color: #444;
    font-size: 15px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@-webkit-keyframes btnAnim {
    0% {
        -webkit-transform: scale(.85);
        transform: scale(.85)
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(.85);
        transform: scale(.85)
    }
}

@-moz-keyframes btnAnim {
    0% {
        -moz-transform: scale(.85);
        transform: scale(.85)
    }

    50% {
        -moz-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -moz-transform: scale(.85);
        transform: scale(.85)
    }
}

@keyframes btnAnim {
    0% {
        -webkit-transform: scale(.85);
        -moz-transform: scale(.85);
        -o-transform: scale(.85);
        transform: scale(.85)
    }

    50% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(.85);
        -moz-transform: scale(.85);
        -o-transform: scale(.85);
        transform: scale(.85)
    }
}

/* 弹窗背景遮罩 */
#payTitle {
    color: #333;
}

.pay-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
}

.pay-modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    position: relative;
}

.pay-close {
    position: absolute;
    right: 10px;
    top: 6px;
    cursor: pointer;
    font-size: 24px;
}

.pay-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.pay-footer {
    color: #039df2;
}

.pay-amount {
    font-size: 22px;
    font-weight: bold;
    color: #ff5722;
    margin-bottom: 10px;
}

.pay-tip {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.qrcode-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    position: relative;
}

#pay-qrcode {
    width: 200px;
    height: 200px;
    display: none;
}

.pay-loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #999;
}

#showPrivacyModal {
    cursor: pointer;
}