/* 同泰集团网站 - 主样式文件 */
:root {
    --primary: #0A4A6F;
    --secondary: #2E8B57;
    --accent: #FF7F32;
    --light: #F8F9FA;
    --dark: #1A2B3C;
    --gray: #6C7A89;
    --light-blue: #E8F4FE;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #e06a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 50, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* 页面区块通用样式 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* 头部导航 */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 100;
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 8px 8px;
}

.dropdown-content a {
    color: var(--dark);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quote-btn {
    background: linear-gradient(135deg, var(--accent), #FF6B1A);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 127, 50, 0.3);
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 127, 50, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    position: relative;
    padding: 200px 0 120px;
    color: white;
    overflow: hidden;
    background: linear-gradient(rgba(10, 74, 111, 0.85), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 产品系列展示 */
.products-section {
    padding: 100px 0;
    background-color: var(--light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin: 20px 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 0.9rem;
}

.product-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

.product-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.product-link:hover i {
    transform: translateX(8px);
}

/* 系列页面样式 */
.series-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary), #0D3A5C);
    color: white;
    text-align: center;
}

.series-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.series-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.model-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.model-info {
    padding: 25px;
}

.model-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* 产品详情页样式 */
.product-detail-header {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--light-blue), #fff);
    border-bottom: 1px solid #eee;
}

.product-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.main-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    height: 125px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: var(--accent);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: var(--light-blue);
    color: var(--primary);
    font-weight: 600;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form-section {
    padding: 80px 0;
    background-color: var(--light);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 74, 111, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 页脚 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-links h3, .footer-products h3, .footer-newsletter h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links ul, .footer-products ul {
    list-style: none;
}

.footer-links li, .footer-products li {
    margin-bottom: 12px;
}

.footer-links a, .footer-products a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-products a:hover {
    color: var(--secondary);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #2A3A4A;
    padding-top: 30px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #2A3A4A;
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}