/*
Theme Name:   XX.Tech Theme
Theme URI:    https://yourwebsite.com/
Author:       Your Name
Author URI:   https://yourwebsite.com/
Description:  专为东莞XX网络打造的新一代智能营销网站主题。
Version:      1.0.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         custom-theme, one-page, modern
Text Domain:  xxtech
*/

:root {
    --light-bg: #FFFFFF;
    --section-bg: #F9FAFB;
    --primary-gradient: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%);
    --accent-color: #10B981; /* Emerald Green */
    --text-dark: #1F2937;
    --text-gray: #6B7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', sans-serif; background-color: var(--light-bg); color: var(--text-gray); line-height: 1.8; }
h1, h2, h3, h4 { font-family: 'Lexend', sans-serif; color: var(--text-dark); }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
section { padding: 100px 0; overflow: hidden; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 20px; }
.section-subtitle { text-align: center; font-size: 1.2rem; margin-top: -15px; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn { display: inline-block; background: var(--primary-gradient); color: #FFFFFF; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(37, 117, 252, 0.2); }

.navbar { padding: 1.5rem 2rem; position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); text-decoration: none; }
.navbar ul { display: flex; list-style: none; }
.navbar ul li a { padding: 0 20px; text-decoration: none; color: var(--text-gray); transition: color 0.3s ease; font-weight: 700; }
.navbar ul li a:hover { color: var(--text-dark); }

#hero { padding: 200px 0 150px; text-align: center; }
#hero h1 { font-size: 3.8rem; line-height: 1.3; margin-bottom: 25px; }
#hero .highlight { background: var(--primary-gradient); -webkit-background-clip: text; color: transparent; }
#hero p { font-size: 1.3rem; max-width: 650px; margin: 0 auto 40px; }

.animated-section { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animated-section.is-visible { opacity: 1; transform: translateY(0); }

/* 痛点解决 */
#pain-points { background: var(--section-bg); }
.points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.point-card { background: var(--light-bg); padding: 30px; border-radius: 16px; border: 1px solid #E5E7EB; }
.point-card .header { display: flex; align-items: center; margin-bottom: 15px; }
.point-card .icon { font-size: 1.5rem; color: #EF4444; margin-right: 15px; }
.point-card h3 { font-size: 1.3rem; margin: 0; }
.point-card .solution { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #E5E7EB; display: flex; align-items: center; }
.point-card .solution .icon { color: var(--accent-color); }
.point-card .solution p { margin: 0; font-weight: 700; color: var(--text-dark); }

/* 对比图 */
#comparison { background: var(--light-bg); }
.comparison-table { border: 1px solid #E5E7EB; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 25px rgba(0,0,0,0.05); }
.comparison-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid #E5E7EB; text-align: center; }
.comparison-row:last-child { border-bottom: none; }
.comparison-cell { padding: 20px; }
.comparison-cell.feature { font-weight: 700; color: var(--text-dark); text-align: left; }
.comparison-row.header { background: var(--section-bg); }
.comparison-row.header h3 { font-size: 1.5rem; }
.comparison-row .fa-check-circle { color: var(--accent-color); }
.comparison-row .fa-times-circle { color: #EF4444; }

/* 优势展示 */
#advantages { background: var(--section-bg); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage-card { background: var(--light-bg); padding: 40px 30px; border-radius: 16px; text-align: center; border: 1px solid #E5E7EB; }
.advantage-card .icon-bg { width: 80px; height: 80px; margin: 0 auto 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-gradient); }
.advantage-card .icon-bg i { font-size: 2.5rem; color: #fff; }
.advantage-card h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* 服务流程 */
#process { background: var(--light-bg); }
.process-container { display: flex; justify-content: center; }
.process-timeline { list-style: none; position: relative; padding: 0; }
.process-timeline::before { content: ''; position: absolute; top: 0; left: 20px; width: 4px; height: 100%; background: #E5E7EB; border-radius: 2px; }
.process-step { position: relative; padding: 0 0 50px 60px; }
.process-step:last-child { padding-bottom: 0; }
.process-step .step-number { position: absolute; top: -5px; left: 0; width: 44px; height: 44px; background: var(--primary-gradient); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-family: 'Lexend', sans-serif; }
.process-step h3 { font-size: 1.5rem; margin-bottom: 5px; }

/* 套餐 */
#packages { background: var(--section-bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pricing-card { background: var(--light-bg); border: 1px solid #E5E7EB; border-radius: 16px; padding: 40px; display: flex; flex-direction: column; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.pricing-card.recommended { border: 2px solid #6a11cb; transform: translateY(-10px); box-shadow: 0 20px 40px rgba(106, 17, 203, 0.1); }
.pricing-card h3 { font-size: 1.8rem; text-align: center; }
.pricing-card .price { font-size: 3rem; font-weight: 700; text-align: center; margin: 20px 0; background: var(--primary-gradient); -webkit-background-clip: text; color: transparent; }
.pricing-card ul { list-style: none; margin: 20px 0; flex-grow: 1; border-top: 1px solid #E5E7EB; padding-top: 20px; }
.pricing-card ul li { padding: 10px 0; display: flex; align-items: flex-start; }
.pricing-card ul li i { color: var(--accent-color); margin-right: 15px; margin-top: 5px; }
.pricing-card .btn { margin-top: auto; width: 100%; }

/* 联系我们 */
#contact { background: var(--light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.contact-form { background: var(--section-bg); padding: 40px; border-radius: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 1rem; }
.form-group textarea { resize: vertical; min-height: 100px; }

/* 页脚 Footer */
footer { background: var(--text-dark); color: var(--text-gray); padding: 40px 0; text-align: center; }
footer a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--accent-color); }
.footer-nav { margin-bottom: 20px; }
.footer-nav a { margin: 0 15px; }

@media(max-width: 992px) {
    .points-grid, .advantages-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
    .point-card, .advantage-card, .pricing-card { margin-bottom: 30px; }
    .pricing-card.recommended { transform: translateY(0); }
    .comparison-row { grid-template-columns: 1fr; text-align: left; }
    .comparison-cell.feature { background: #f3f4f6; }
}

/* ======================================= */
/* ===== 首页“最新动态”模块专属样式 ===== */
/* ======================================= */
#latest-posts { background: var(--section-bg); }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.home-blog-card {
    display: flex; flex-direction: column; background: var(--light-bg); border-radius: 16px;
    overflow: hidden; text-decoration: none; border: 1px solid #E5E7EB; transition: all 0.3s ease;
}
.home-blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.home-blog-card-image { width: 100%; height: 200px; overflow: hidden; }
.home-blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-blog-card:hover .home-blog-card-image img { transform: scale(1.05); }
.home-blog-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.home-blog-card-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-dark); }
.home-blog-card-excerpt { color: var(--text-gray); flex-grow: 1; margin-bottom: 20px; }
.home-blog-card-excerpt p { margin: 0; }
.home-blog-card-readmore { color: #6A11CB; font-weight: 700; display: flex; align-items: center; }
.home-blog-card-readmore i { margin-left: 8px; transition: transform 0.3s ease; }
.home-blog-card:hover .home-blog-card-readmore i { transform: translateX(5px); }

/* =================================== */
/* ===== 博客与文章页面专属样式 ===== */
/* =================================== */
.page-header {
    padding: 80px 0; background: var(--section-bg); text-align: center;
    margin-top: 80px; border-bottom: 1px solid #E5E7EB;
}
.page-header h1 { font-size: 3rem; line-height: 1.3; }
.content-container { padding-top: 60px; padding-bottom: 60px; max-width: 800px; margin: 0 auto; }
.post-title-full a:hover { background: var(--primary-gradient); -webkit-background-clip: text; color: transparent; }
.post-excerpt-full p { margin: 0; }

.read-more-link:hover { padding-left: 5px; }

.single-header .post-meta { margin-top: 15px; color: var(--text-gray); }
.single-header .post-meta span { margin: 0 10px; }
.single-post-content .featured-image { margin-bottom: 40px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.single-post-content .featured-image img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 1.1rem; line-height: 1.9; color: var(--text-dark); }
.entry-content p { margin-bottom: 1.8em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.2em; margin-bottom: 1.2em; line-height: 1.4; }
.back-to-blog { margin-top: 60px; text-align: center; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers {
    padding: 10px 18px; border: 1px solid #ddd; border-radius: 8px; text-decoration: none;
    color: var(--text-gray); font-weight: 700;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; }

@media(max-width: 992px) {
    .home-blog-grid { grid-template-columns: 1fr; }
    .home-blog-card { margin-bottom: 30px; }
}
