/* ========== Shared Design System ========== */

:root {
    /* Colors */
    --primary-color: #FF8C00;
    --primary-hover: #E67300;
    --secondary-color: #ffffff;
    --text-color: #666666;
    --heading-color: #222222;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;

    /* Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --container-padding: 15px;
    --section-padding: 80px;
    --section-padding-mobile: 40px;
    --element-spacing: 20px;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.common-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

.common-section {
    padding: var(--section-padding) 0;
    background-color: var(--bg-white);
}

.common-section.bg-light {
    background-color: var(--bg-light);
}

.common-grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.common-flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; }

/* Components */
.common-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.common-btn:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.common-btn.outline {
    background-color: transparent;
    border: 2px solid var(--heading-color);
    color: var(--heading-color);
}

.common-btn.outline:hover {
    background-color: var(--heading-color);
    color: #ffffff;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.section-title.left {
    text-align: left;
}

.section-desc {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-desc.left {
    text-align: left;
    margin-left: 0;
}

/* Card Component */
.common-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.common-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.common-card-content {
    padding: 20px;
}

.common-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.common-card-desc {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Form Component (Based on Contact module) */
.common-form .form-group {
    margin-bottom: 20px;
}

.common-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.common-form input[type="text"],
.common-form input[type="email"],
.common-form input[type="tel"],
.common-form select,
.common-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.common-form input:focus,
.common-form textarea:focus {
    border-color: var(--text-color);
    outline: none;
}

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

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --container-padding: 20px;
    }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .common-flex { flex-wrap: wrap; }
    .common-flex > * { flex: 1 1 100%; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    
    .section-title {
        font-size: 28px;
    }
}

/* ========== Shared Quote Form Layout =============
   使用时在 section 上添加 class="shared-quote-form"，
   内部结构统一为 quote-header + quote-layout(quote-aside + quote-form-wrap)
   ================================================== */
.shared-quote-form {
    padding: 78px 0;
    background: var(--bg-light);
}

.shared-quote-form .quote-header {
    margin-bottom: 34px;
    text-align: left;
}

.shared-quote-form .quote-header .section-title {
    text-align: left;
    font-size: 44px;
    line-height: 1.12;
    font-weight: 700;
}

.shared-quote-form .quote-header p {
    margin: 0;
    font-size: 19px;
    text-align: left;
}

.shared-quote-form .quote-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: stretch;
}

.shared-quote-form .quote-aside,
.shared-quote-form .quote-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}

.shared-quote-form .quote-aside {
    padding: 22px;
    text-align: center;
}

.shared-quote-form .quote-aside img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 24px;
}

.shared-quote-form .quote-aside h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--heading-color);
    font-weight: 600;
}

.shared-quote-form .quote-aside p {
    margin: 0;
    font-size: 17px;
}

.shared-quote-form .quote-form-wrap {
    padding: 24px;
}

.shared-quote-form .quote-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shared-quote-form .form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--heading-color);
    font-weight: 600;
}

.shared-quote-form .form-row {
    display: block;
}

.shared-quote-form .form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.shared-quote-form .form-input,
.shared-quote-form .form-textarea,
.shared-quote-form .file-input,
.shared-quote-form .form-select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d4d8de;
    background: #ffffff;
    font-size: 15px;
    color: #23272c;
    font-family: inherit;
    box-sizing: border-box;
}

.shared-quote-form .form-textarea {
    min-height: 150px;
    resize: vertical;
}

.shared-quote-form .form-select {
    appearance: auto;
}

.shared-quote-form .form-checkboxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}

.shared-quote-form .form-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-color);
}

.shared-quote-form .form-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.shared-quote-form .form-input:focus,
.shared-quote-form .form-textarea:focus,
.shared-quote-form .file-input:focus,
.shared-quote-form .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.shared-quote-form .form-file {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shared-quote-form .file-input {
    display: inline-block;
}

.shared-quote-form .submit-btn,
.shared-quote-form .btn-submit {
    width: 100%;
    padding: 13px 14px;
    border: none;
    background: #5d6670;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.shared-quote-form .submit-btn:hover,
.shared-quote-form .btn-submit:hover {
    background: #454d56;
}

@media (max-width: 1100px) {
    .shared-quote-form .quote-layout {
        grid-template-columns: 1fr;
    }
    .shared-quote-form .form-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .shared-quote-form {
        padding: 40px 0;
    }
    .shared-quote-form .quote-header .section-title {
        font-size: 28px;
    }
    .shared-quote-form .quote-header p {
        font-size: 16px;
    }
    .shared-quote-form .form-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shared-quote-form .form-row.two-col {
        grid-template-columns: 1fr;
    }
}
