/* ===== 联系我页面独立样式 ===== */

/* 覆盖 hero-wrapper 背景，两张背景图5秒轮换 */
.hero-wrapper {
    background: url('../bg.png') top/100% auto no-repeat;
    animation: heroBgSwitchContact 10s infinite;
}

@keyframes heroBgSwitchContact {
    0%, 45%   { background-image: url('../bg.png'); }
    50%, 95%  { background-image: url('../bg2.png'); }
    100%      { background-image: url('../bg.png'); }
}

/* ===== Contact Hero: "联系我" 标题区 ===== */
.about-hero {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 280px;
    padding-bottom: 0;
    margin-bottom: -40px;
}

.about-hero-title-box {
    background: #000000;
    padding: 24px 64px;
    border-radius: 4px;
}

.about-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 8px;
    text-align: center;
    line-height: 1.2;
}

/* ===== Contact Section ===== */
.contact-section {
    background: #ffffff;
    padding: 48px;
    display: flex;
    justify-content: center;
}

.contact-columns {
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 40px;
}

/* ===== 左侧表单列 ===== */
.contact-form-col {
    flex: 1;
    min-width: 0;
    background: #F5F5F5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 36px;
}

.contact-info-col {
    flex: 0 0 340px;
    background: #F5F5F5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 36px;
}

.contact-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.contact-form-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 24px;
}

/* ===== 表单样式 ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #333333;
    background: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.form-input::placeholder {
    color: #AAAAAA;
}

.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #333333;
    background: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.form-textarea::placeholder {
    color: #AAAAAA;
}

.form-submit {
    align-self: flex-start;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #4A90E2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}

.form-submit:hover {
    background: #2B6CB0;
}

.form-submit:active {
    transform: scale(0.97);
}

/* ===== 联系方式列表 ===== */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.contact-info-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.contact-info-icon--wechat {
    background-color: #07C160;
}

.contact-info-icon--qq {
    background-color: #12B7F5;
}

.contact-info-icon--email {
    background-color: #4A90E2;
}

.contact-info-icon--phone {
    background-color: #F59E0B;
}

.contact-info-label {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    min-width: 36px;
}

.contact-info-value {
    font-size: 14px;
    color: #999999;
    margin-left: auto;
}

/* ===== 页脚 ===== */
.about-footer {
    background-color: #4A5568;
    text-align: center;
    padding: 20px 48px;
}

.about-footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    line-height: 1.6;
    white-space: nowrap;
}

.about-footer-text a {
    color: #63B3ED;
    transition: color 0.2s;
}

.about-footer-text a:hover {
    color: #90CDF4;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .about-hero {
        min-height: 160px;
        margin-bottom: -20px;
    }

    .about-hero-title-box {
        padding: 12px 36px;
    }

    .about-hero-title {
        font-size: 26px;
        letter-spacing: 4px;
    }

    .contact-section {
        padding: 24px 20px;
    }

    .contact-columns {
        flex-direction: column;
        gap: 24px;
    }

    .contact-info-col {
        flex: 1;
    }

    .contact-form-col,
    .contact-info-col {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 130px;
        margin-bottom: -16px;
    }

    .about-hero-title-box {
        padding: 10px 24px;
    }

    .about-hero-title {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .contact-section {
        padding: 16px 16px;
    }
}
