/* ===== join.css - 合作伙伴页面专用样式 ===== */

/* ===== Banner区域 ===== */
.join-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.join-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('__CDN__/assets/home/images/pattern-carbon.png') repeat;
    opacity: 0.1;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215,23,24,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== 合作伙伴优势 ===== */
.partner-benefits {
    padding: 60px 0;
    background: white;
}

.benefits-header {
    margin-bottom: 40px;
}

.benefits-intro {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: center;
}

.intro-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin: 40px 0 50px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.partner-image {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.partner-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 全球出口区域 ===== */
.global-presence {
    padding: 60px 0;
    background: var(--bg-light);
}

.global-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.global-content .section-title {
    text-align: left;
}

.global-content .section-title::after {
    left: 0;
    transform: none;
}

.global-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.global-cta {
    font-weight: 500;
    color: var(--primary);
    margin-top: 20px;
}

.global-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.global-buttons .btn-outline {
    border-color: var(--border);
    color: var(--text);
}

.global-buttons .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.global-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ===== 生产流程 ===== */
.production-process {
    padding: 60px 0;
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-item {
    text-align: center;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* 生产流程图片容器 - 4:3 比例 */
.process-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-item:hover .process-image img {
    transform: scale(1.05);
}

/* 视频容器样式 */
.process-image .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.process-image .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.process-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 8px;
    padding: 0 15px;
    color: var(--text);
}

.process-item p {
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0 15px 15px;
    margin: 0;
    line-height: 1.5;
}

/* ===== 询盘表单区域 ===== */
.inquiry-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.inquiry-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.inquiry-header {
    text-align: center;
    margin-bottom: 30px;
}

.inquiry-header .section-title {
    margin-bottom: 15px;
}

.inquiry-header p {
    color: var(--text-light);
}

.partner-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.required {
    color: var(--primary);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 复选框样式 */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    line-height: 1.4;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215,23,24,0.3);
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== 信任徽章 ===== */
.trust-badges {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary);
}

.trust-item span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }

    .global-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .global-content .section-title {
        text-align: center;
    }

    .global-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .global-buttons {
        justify-content: center;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }

    .banner-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .process-item h3 {
        font-size: 0.85rem;
        margin: 12px 0 5px;
    }

    .process-item p {
        font-size: 0.75rem;
        padding: 0 10px 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .inquiry-wrapper {
        padding: 25px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.site-footer {
    margin-top: 0;
}

/* ===== 关于页面询盘表单样式 - 宽屏白色背景 ===== */
.about-contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    width: 100%;
}

.about-contact-form-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.about-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.about-form-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 表单布局 - 宽屏两列 */
.about-contact-form {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-group {
    flex: 1;
    margin-bottom: 28px;
}

.form-group.half {
    flex: 1;
}

/* 标签样式 */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.required {
    color: var(--primary);
    margin-left: 2px;
}

/* 输入框样式 - 更大更舒适 */
.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

/* 错误高亮样式 */
.form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* 最后一个表单组（消息字段）可以适当增加间距 */
.form-group:last-of-type {
    margin-bottom: 32px;
}

/* 文本域样式 */
textarea.form-control {
    resize: vertical;
    min-height: 140px;
    margin-top: 4px;  /* 增加上边距 */
}

/* 提交按钮 - 宽屏样式 */
.btn-submit {
    width: 100%;
    max-width: 400px;
    margin: 16px auto 0;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 消息提示 */
.form-message {
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-contact-form {
        max-width: 800px;
    }

    .form-control {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .about-contact-form-section {
        padding: 60px 0;
    }

    .about-contact-form {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .btn-submit {
        max-width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    .about-form-description {
        font-size: 0.9rem;
        margin-bottom: 36px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .about-contact-form-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .form-control {
        padding: 10px 14px;
    }

    .btn-submit {
        padding: 12px;
    }
}

.site-footer{margin-top: 0;}

/* 错误高亮样式 */
.about-contact-form .form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.about-contact-form .checkbox-label.error {
    color: #dc3545;
}

.about-contact-form .checkbox-label.error .checkmark {
    border-color: #dc3545;
}

.about-contact-form .checkbox-label.error .checkbox-text {
    color: #dc3545;
}

/* ===== Toast 通知样式 ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-notification {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s ease forwards;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-notification .toast-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-content {
    background: #d4edda;
    color: #155724;
}

.toast-notification.success .toast-content i {
    color: #28a745;
}

.toast-notification.error .toast-content {
    background: #f8d7da;
    color: #721c24;
}

.toast-notification.error .toast-content i {
    color: #dc3545;
}

.toast-notification .toast-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: progress 3s linear forwards;
}

.toast-notification.success .toast-progress {
    background: #28a745;
}

.toast-notification.error .toast-progress {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}