/*
 Theme Name:   陶力特子主题
 Theme URI:    https://www.taolift.com/
 Description:  基于JustNews的陶力特子主题
 Author:       陶力特团队
 Author URI:   https://www.taolift.com/
 Template:     justnews
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         responsive-layout, accessibility-ready
 Text Domain:  taolift-child
*/

/* 引入父主题样式 */
@import url("../justnews/css/style.css");

/* 自定义样式 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --accent-color: #ff6b00;
    --light-gray: #f5f5f5;
    --dark-gray: #666666;
}

/* 联系我们页面样式 */
.contact-page {
    padding: 2rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.quote-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quote-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0d5bbc;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .contact-info,
    .quote-form {
        padding: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}

/* 成功消息样式 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* 表单验证错误样式 */
.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-control.error-border {
    border-color: #dc3545;
}
/* 提交按钮基础样式 */
#submit-quote {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* 提交中状态 */
#submit-quote.submitting {
    background-color: #6c757d; /* 灰色 */
    color: white;
    cursor: not-allowed;
}

/* 提交成功状态 */
#submit-quote.success {
    background-color: #28a745; /* 绿色 */
    color: white;
}

/* 提交失败状态 */
#submit-quote.error {
    background-color: #dc3545; /* 红色 */
    color: white;
}

/* 加载动画（保持原有） */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 叉车租赁模板样式 */
#ts1-forklift-page {
    font-family: inherit;
    color: var(--text-color);
}

/* 英雄横幅区 */
.ts1-hero-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('/wp-content/themes/taolift-child/assets/images/forklift-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.ts1-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.ts1-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.ts1-banner-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ts1-banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ts1-btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ts1-btn-primary:hover {
    background-color: #0d5bbc;
    transform: translateY(-2px);
    color: white;
}

/* 通用区域标题样式 */
.ts1-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.ts1-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 服务介绍区 */
.ts1-services {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.ts1-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ts1-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ts1-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ts1-service-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ts1-service-item:hover {
    transform: translateY(-5px);
}

.ts1-service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.ts1-service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.ts1-service-desc {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* 叉车类型展示区 */
.ts1-forklifts {
    padding: 5rem 0;
}

.ts1-forklifts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ts1-forklifts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ts1-forklifts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ts1-forklift-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.ts1-forklift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ts1-forklift-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ts1-forklift-title {
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-color);
}

.ts1-forklift-desc {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* 客户评价区 */
.ts1-testimonials {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.ts1-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ts1-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts1-testimonial-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ts1-testimonial-content {
    margin-bottom: 1.5rem;
}

.ts1-testimonial-content p {
    font-style: italic;
    line-height: 1.8;
    color: var(--dark-gray);
    position: relative;
    padding-left: 1.5rem;
}

.ts1-testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.ts1-testimonial-author {
    display: flex;
    align-items: center;
}

.ts1-client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.ts1-client-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ts1-client-company {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* 行动号召区域 */
.ts1-cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.ts1-cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.ts1-cta-title::after {
    background-color: white;
}

.ts1-cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ts1-contact-info {
    margin-top: 2rem;
}

.ts1-phone-number {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ts1-phone-number i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.ts1-phone-number:hover {
    color: #f0f0f0;
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .ts1-banner-title {
        font-size: 2rem;
    }
    
    .ts1-section-title {
        font-size: 1.75rem;
    }
    
    .ts1-cta-title {
        font-size: 1.75rem;
    }
    
    .ts1-phone-number {
        font-size: 1.25rem;
    }
}
    