/*
Theme Name: 墨韵江湖
Theme URI: https://moyunjianghu.com
Description: 重庆墨韵江湖文化传媒有限公司官方网站主题
Author: Moyun Jianghu
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moyun-jianghu
*/

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.8;
    color: #1a2332;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    overflow: hidden;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1419;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.logo-link {
    display: block !important;
    flex-shrink: 0 !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: contain !important;
    display: block !important;
    background-color: transparent;
    border-radius: 50%;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    /* 确保logo在深色背景上清晰可见，增强对比度 */
    filter: brightness(1.2) contrast(1.1);
    /* 添加轻微阴影，提升立体感 */
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-image {
    filter: brightness(1.3) contrast(1.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.logo-text {
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    letter-spacing: 1px;
}

.logo-text-link {
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: block;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-size: 26px !important;
    font-weight: 700 !important;
}

.logo-text-link:hover {
    color: #d4af37 !important;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.6);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    position: relative;
    padding: 5px 0;
    color: #fff !important;
    text-decoration: none;
    font-size: 18px !important;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: #d4af37;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, #0a0e14 0%, #1a2332 50%, #0f1419 100%);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: rgba(212, 175, 55, 0.9);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.1s ease-out;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #0f1419;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    animation: fadeInUp 1.4s ease-out;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于我们区域 */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 25px;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    color: #1a2332;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a2332 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: #4a5568;
    font-size: 17px;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    color: #d4af37;
    font-size: 28px;
    font-weight: 600;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 服务范围区域 */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1419;
    font-size: 40px;
    font-weight: normal;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    position: relative;
    line-height: 1;
    text-shadow: none;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.service-card h3 {
    font-size: 22px;
    color: #1a2332;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: #d4af37;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    transition: color 0.3s;
}

/* 页脚样式 */
.site-footer {
    background: linear-gradient(135deg, #0a0e14 0%, #1a2332 100%);
    padding: 80px 0 40px;
    color: #fff;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column p,
.footer-column ul {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column .contact-item {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-column .contact-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 215, 0, 0.2));
}

.footer-column .contact-label {
    color: #fff;
    font-weight: 500;
}

.footer-column .contact-value {
    color: #ccc;
}

.footer-column .contact-value a {
    color: #d4af37;
}

.footer-column .contact-value a:hover {
    color: #ffd700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    list-style: none;
    padding: 0;
}

.footer-services-grid li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.footer-services-grid li::before {
    content: '•';
    color: #d4af37;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #d4af37;
}

.footer-column strong {
    color: #fff;
    margin-right: 8px;
}

/* 电话交互控件样式 */
.phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.phone-wrapper .contact-icon {
    margin-right: 0;
}

.phone-wrapper .contact-label {
    margin-right: 0;
}

.phone-display {
    display: none !important;
    color: #d4af37;
    font-weight: bold;
    margin-left: 10px;
}

.phone-display.phone-visible {
    display: inline !important;
}

.phone-toggle-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 6px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-left: 10px;
    vertical-align: middle;
}

.phone-toggle-btn:hover {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0f1419;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.phone-display {
    display: none !important;
    color: #d4af37;
    font-weight: bold;
    margin-left: 10px;
}

.phone-display.phone-visible {
    display: inline !important;
}

.phone-call-btn,
.phone-call-link {
    display: none !important;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0f1419;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s;
    vertical-align: middle;
}

.phone-call-btn:hover,
.phone-call-link:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #0f1419;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.5);
}

/* 页脚电话链接特殊样式 */
.footer-column .phone-call-link {
    display: none !important;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

.footer-column .phone-call-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffd700;
    border-color: #ffd700;
    transform: none;
    box-shadow: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    position: relative;
}

/* 联系我们区域 */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.contact-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 15px;
    text-align: left;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #1a2332;
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    padding: 6px;
}

.contact-label {
    color: #0f1419;
    font-weight: 600;
    min-width: 50px;
}

.contact-value {
    color: #1a2332;
    flex: 1;
}

.contact-value a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.contact-info strong {
    color: #0f1419;
    margin-right: 10px;
    font-weight: 600;
}

/* 文章列表样式 */
.posts-container {
    padding: 40px 0;
}

.post-item {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #d4af37;
}

.entry-meta {
    color: #999;
    font-size: 14px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 20px;
}

.read-more {
    display: inline-block;
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ffd700;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.no-posts p {
    color: #666;
    font-size: 18px;
}

/* 单篇文章样式 */
.single-post,
.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.single-post .entry-title,
.page-content .entry-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.single-post .entry-content,
.page-content .entry-content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-top: 30px;
}

.single-post .entry-content p,
.page-content .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content h2,
.page-content .entry-content h2 {
    font-size: 28px;
    color: #333;
    margin: 30px 0 15px;
}

.single-post .entry-content h3,
.page-content .entry-content h3 {
    font-size: 24px;
    color: #333;
    margin: 25px 0 12px;
}

.tags-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-links .tags-title {
    color: #333;
    font-weight: bold;
    margin-right: 10px;
}

.tags-links a {
    color: #d4af37;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s;
}

.tags-links a:hover {
    color: #ffd700;
}

.post-navigation {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: #d4af37;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    font-weight: bold;
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-links a {
    color: #d4af37;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #d4af37;
    border-radius: 3px;
    transition: all 0.3s;
}

.page-links a:hover {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0f1419;
    border-color: #d4af37;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0f1419;
    border-color: #d4af37;
}

.pagination .current {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0f1419;
    border-color: #d4af37;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .logo-link {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }

    .logo-image {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }

    .logo-text {
        font-size: 20px !important;
    }

    .logo-text-link {
        font-size: 20px !important;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-services-grid {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }

    .phone-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .phone-toggle-btn,
    .phone-call-btn {
        margin-left: 0;
        flex-shrink: 0;
    }

    .phone-display.phone-visible {
        display: inline !important;
        width: auto;
        margin-left: 0;
        margin-top: 0;
    }
}

