/* 
 * 速维管家 - 主样式表
 * 响应式设计，兼容移动端和桌面端
 */

/* 基础样式重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 色彩变量 */
    --primary-color: #1e88e5; /* 主色调：蓝色 */
    --secondary-color: #ff9800; /* 辅助色：橙色 */
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-text: #777777;
    --light-bg: #f5f8fa;
    --border-color: #e0e0e0;
    
    /* 间距变量 */
    --padding-sm: 8px;
    --padding-md: 16px;
    --padding-lg: 24px;
    --padding-xl: 48px;
    
    /* 圆角变量 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* 阴影变量 */
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-md);
}

section {
    padding: var(--padding-xl) 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--padding-lg);
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #1976d2; /* 稍深的蓝色 */
    color: var(--light-text);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #f57c00; /* 稍深的橙色 */
    color: var(--light-text);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 头部导航样式 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding-md) var(--padding-md);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.menu {
    display: flex;
}

.menu li {
    margin: 0 var(--padding-md);
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.menu a:hover, .menu a.active {
    color: var(--primary-color);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 主视觉区域样式 */
.hero {
    position: relative;
    color: var(--light-text);
    text-align: center;
    padding: 70px 0;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: -1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-slide.active {
    opacity: 1;
    z-index: 0;
}

.hero-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    padding: 0 15px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.slogan {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-buttons .btn {
    padding: 10px 22px;
}

/* 核心优势样式 */
.features {
    background-color: var(--light-bg);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--padding-md);
}

.feature-card {
    background-color: #ffffff;
    padding: var(--padding-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--padding-md);
}

.feature-card h3 {
    margin-bottom: var(--padding-sm);
    font-size: 1.4rem;
}

/* 服务项目样式 */
.service-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--padding-lg);
}

.service-item {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.3rem;
    margin: var(--padding-md) var(--padding-md) var(--padding-sm);
}

.service-item p {
    color: var(--gray-text);
    padding: 0 var(--padding-md) var(--padding-md);
}

.service-more {
    text-align: center;
    margin-top: var(--padding-xl);
}

/* 数据展示样式 */
.stats {
    background: linear-gradient(to right, var(--primary-color), #4527a0);
    color: var(--light-text);
    padding: var(--padding-xl) 0;
}

.stat-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--padding-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--padding-sm);
}

/* 客户反馈样式 */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--padding-lg);
}

.testimonial-item {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: var(--padding-lg);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--padding-md);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(30, 136, 229, 0.2);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: var(--padding-md);
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-info p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 行业资讯样式 */
.news-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--padding-lg);
}

.news-item {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: var(--padding-md);
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--padding-sm);
}

.news-meta {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: var(--padding-sm);
}

.news-excerpt {
    color: var(--text-color);
    margin-bottom: var(--padding-md);
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--secondary-color);
}

.news-more {
    text-align: center;
    margin-top: var(--padding-xl);
}

/* 预约表单样式 */
.booking {
    background-color: var(--light-bg);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--padding-lg);
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.booking-info {
    background: linear-gradient(to right, var(--primary-color), #4527a0);
    color: var(--light-text);
    padding: var(--padding-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-info h2 {
    font-size: 2rem;
    margin-bottom: var(--padding-md);
}

.booking-info p {
    margin-bottom: var(--padding-lg);
    opacity: 0.9;
}

.contact-info {
    margin-top: var(--padding-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--padding-md);
}

.contact-item i {
    margin-right: var(--padding-md);
    font-size: 1.3rem;
}

.booking-form {
    padding: var(--padding-xl);
}

.form-group {
    margin-bottom: var(--padding-md);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
    outline: none;
    border-color: var(--primary-color);
}

/* 底部样式 */
footer {
    background-color: #242e37;
    color: #ffffff;
    padding: var(--padding-xl) 0 var(--padding-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--padding-lg);
    margin-bottom: var(--padding-lg);
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: var(--padding-sm);
    color: #ffffff;
}

.footer-logo p {
    opacity: 0.8;
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--padding-md);
}

.footer-link-group h3 {
    font-size: 1.2rem;
    margin-bottom: var(--padding-md);
    color: #ffffff;
}

/* 标准菜单项样式 */
.footer-link-group ul li {
    margin-bottom: 8px;
}

.footer-link-group ul li a {
    color: #ffffff !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link-group ul li a:hover {
    opacity: 1;
    color: var(--secondary-color) !important;
}

/* WordPress默认菜单样式覆盖 */
.footer-link-group .menu,
.footer-link-group .menu-footer-container,
.footer-link-group #menu-footer {
    display: block;
}

.footer-link-group .menu li,
.footer-link-group #menu-footer li {
    margin-bottom: 8px;
    display: block;
}

.footer-link-group .menu li a,
.footer-link-group #menu-footer li a {
    color: #ffffff !important;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: normal;
    padding: 0;
}

.footer-link-group .menu li a:hover,
.footer-link-group #menu-footer li a:hover {
    opacity: 1;
    color: var(--secondary-color) !important;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #ffffff;
    opacity: 0.8;
}

.contact-list li a {
    color: #ffffff !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-list li a:hover {
    opacity: 1;
    color: var(--secondary-color) !important;
}

.contact-list i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-qrcode {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--padding-sm);
}

.footer-qrcode p {
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--padding-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #ffffff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--box-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .feature-cards,
    .service-items,
    .stat-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: var(--padding-md);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: var(--padding-sm) 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .news-items {
        grid-template-columns: 1fr;
    }
    
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .slogan {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero-controls {
        bottom: 12px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .feature-cards,
    .service-items,
    .stat-items,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-slide {
        background-position: center center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .slogan {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* 底部导航响应式优化 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--padding-md);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--padding-sm);
    }
    
    .footer-link-group {
        margin-bottom: var(--padding-sm);
    }
    
    .footer-link-group h3 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }
    
    .footer-link-group ul li,
    .footer-link-group .menu li,
    .footer-link-group #menu-footer li {
        margin-bottom: 6px;
    }
    
    .footer-link-group ul li a,
    .footer-link-group .menu li a,
    .footer-link-group #menu-footer li a {
        font-size: 0.9rem;
    }
    
    .contact-list li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    section {
        padding: var(--padding-lg) 0;
    }
    
    .booking-info,
    .booking-form {
        padding: var(--padding-lg);
    }
    
    .hero-controls {
        bottom: 8px;
        gap: 6px;
    }
    
    .hero-dot {
        width: 6px;
        height: 6px;
    }
    
    /* 超小屏幕底部导航优化 */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-link-group {
        margin-bottom: 15px;
    }
    
    .footer-link-group ul,
    .footer-link-group .menu,
    .footer-link-group #menu-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-link-group ul li,
    .footer-link-group .menu li,
    .footer-link-group #menu-footer li {
        margin-bottom: 5px;
        margin-right: 10px;
    }
    
    .footer-qrcode {
        margin-top: 10px;
    }
    
    .footer-qrcode img {
        width: 100px;
        height: 100px;
    }
}

/* 提交按钮样式 */
.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1976d2;
    box-shadow: var(--box-shadow-hover);
}

/* 表单提交提示样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert i {
    margin-right: 10px;
}

/* 表单提交成功提示的动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.alert {
    animation: fadeInDown 0.5s ease forwards;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    padding: 30px;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    margin-bottom: 20px;
    font-size: 60px;
    color: #2ecc71;
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.modal-btn {
    margin-top: 20px;
}

.modal-btn .btn {
    min-width: 120px;
}

/* 条款页面样式 */
.terms-content {
    padding: var(--padding-xl) 0;
    background-color: #f5f9fd;
}

.terms-wrapper {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: var(--padding-xl);
    box-shadow: var(--box-shadow);
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.terms-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

.terms-section p, .terms-section li {
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--gray-text);
}

.terms-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-section ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.terms-update {
    margin-top: 40px;
    font-style: italic;
    color: var(--gray-text);
    text-align: right;
}

.back-button {
    margin: 30px 0 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .terms-wrapper {
        padding: var(--padding-lg);
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
}