/* --- 联系页面专属样式 --- */

/* 页面布局 */
.container {
    max-width: 1000px;
}

/* 页面头部 */
.page-header {
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
}

.logo-seal {
    display: inline-block;
    border: 1px solid var(--seal-red);
    color: var(--seal-red);
    padding: 8px 18px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.2em;
    font-family: var(--font-title);
}

.page-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

.back-link {
    position: absolute;
    top: 60px;
    left: 40px;
    text-decoration: none;
    color: var(--ink-color);
    opacity: 0.5;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

/* 左右分栏布局 */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 100px;
}

/* 左侧：联系信息 */
.info-col {
    padding-right: 40px;
    border-right: 1px solid rgba(56, 48, 46, 0.2);
}

.info-block {
    margin-bottom: 50px;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--seal-red);
    border-bottom-style: solid;
}

/* 二维码区域 */
.qr-section {
    margin-top: 60px;
}

.qr-box {
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-box img {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
}

.qr-hint {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-top: 10px;
}

/* 右侧：书信表单 */
.form-col {
    padding-top: 20px;
}

.intro-text {
    margin-bottom: 40px;
    color: #666;
    text-align: justify;
}

/* 表单样式 */
.form-group {
    margin-bottom: 35px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--ink-color);
    font-family: var(--font-title);
}

.form-input,
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(56, 48, 46, 0.3);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-color);
    transition: border-color 0.5s;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--seal-red);
}

.form-textarea {
    min-height: 120px;
    line-height: 2;
    resize: vertical;
    background-image: linear-gradient(transparent 95%, rgba(56, 48, 46, 0.05) 95%);
    background-size: 100% 2em;
}

/* 印章提交按钮 */
.submit-seal-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.seal-mark {
    width: 60px;
    height: 60px;
    background-color: var(--seal-red);
    color: #f7f3e8;
    font-family: var(--font-title);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    mask-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(black 80%, transparent 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-text {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--ink-color);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.submit-seal-btn:hover .seal-mark {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 5px 15px rgba(138, 59, 52, 0.3);
}

.submit-seal-btn:hover .submit-text {
    opacity: 1;
    color: var(--seal-red);
}

/* 响应式 */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .info-col {
        border-right: none;
        border-bottom: 1px solid rgba(56, 48, 46, 0.2);
        padding-bottom: 40px;
        padding-right: 0;
    }

    .back-link {
        display: none;
    }
}
