/**
 * 留言/报名页面样式 - 蓝色主调，宽版布局
 * 主色：www.6633.cn 蓝色系 (#005bac, #003d80)
 * 响应式完善
 */

/* ===== 外层容器（带边框修饰） ===== */
.guestbook-main {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 30px 25px 40px;
    margin-bottom: 30px;
    transition: padding 0.3s ease;
}

/* ===== 内容包裹 - 更宽 ===== */
.guestbook-wrap {
    max-width: 1000px;   /* 从820px加宽到1000px */
    margin: 0 auto;
    padding: 0 10px;     /* 左右微小内边距，确保边缘不贴边 */
}

/* ===== 标题 ===== */
.guestbook-title {
    font-size: 28px;
    font-weight: 700;
    color: #005bac;      /* 主色蓝色 */
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 3px solid #005bac;
    letter-spacing: 6px;
    position: relative;
}
.guestbook-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #005bac;
}

/* ===== 表单行 ===== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 14px -10px;
}

.form-group {
    padding: 0 10px;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.form-group.half {
    flex: 0 0 50%;
    max-width: 50%;
}

.form-group.full {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ===== 标签 ===== */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.8;
}
.form-group label .required {
    color: #e60000;
    font-style: normal;
    font-weight: 700;
    margin-right: 2px;
}

/* ===== 表单控件（统一风格） ===== */
.form-control {
    width: 100%;
    height: 42px;
    padding: 6px 14px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: #005bac;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.12);
}

textarea.form-control {
    height: auto;
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* ===== 验证码组 ===== */
.verify-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
}

.verify-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.verify-img-input {
    width: 140px !important;
    flex-shrink: 0;
}

.verify-img-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.verify-img {
    height: 36px;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 3px;
}

.verify-change {
    color: #005bac;
    cursor: pointer;
    font-size: 13px;
}
.verify-change:hover {
    text-decoration: underline;
}

.verify-code-input {
    width: 140px !important;
    flex-shrink: 0;
}

.verify-get-btn {
    display: inline-block;
    padding: 7px 18px;
    font-size: 14px;
    color: #fff;
    background-color: #005bac;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}
.verify-get-btn:hover {
    background-color: #003d80;
}

/* ===== 提交 & 重置按钮（蓝色主调） ===== */
.submit-btn,
.reset-btn {
    display: inline-block;
    padding: 10px 50px;
    margin: 0 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.submit-btn {
    color: #fff;
    background-color: #005bac;
    box-shadow: 0 2px 8px rgba(0, 91, 172, 0.30);
}
.submit-btn:hover {
    background-color: #003d80;
    box-shadow: 0 4px 14px rgba(0, 91, 172, 0.40);
    transform: translateY(-2px);
}

.reset-btn {
    color: #666;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}
.reset-btn:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

/* ============================
   响应式适配
   ============================ */

/* 平板及以下：两列变一列，内边距调整 */
@media screen and (max-width: 768px) {
    .guestbook-main {
        padding: 20px 15px 30px;
    }
    .guestbook-title {
        font-size: 22px;
        letter-spacing: 3px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    .form-group.half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-row {
        margin: 0 -6px 10px -6px;
    }
    .form-group {
        padding: 0 6px;
    }
    .form-control {
        height: 40px;
        font-size: 14px;
    }
    .guestbook-wrap {
        padding: 0 5px;
    }
    .verify-group {
        gap: 10px;
    }
    .verify-item {
        flex: 1 1 auto;
        min-width: 180px;
    }
    .verify-img-input,
    .verify-code-input {
        width: 120px !important;
    }
}

/* 手机小屏：进一步压缩，按钮全宽 */
@media screen and (max-width: 480px) {
    .guestbook-main {
        padding: 12px 10px 20px;
        border-radius: 4px;
    }
    .guestbook-title {
        font-size: 18px;
        letter-spacing: 2px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    .guestbook-title::after {
        width: 40px;
    }
    .form-group label {
        font-size: 13px;
    }
    .form-control {
        height: 38px;
        font-size: 13px;
        padding: 4px 10px;
    }
    select.form-control {
        background-position: right 10px center;
        padding-right: 28px;
    }
    .verify-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .verify-item {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .verify-img-input,
    .verify-code-input {
        width: 100% !important;
    }
    .verify-img-wrap {
        white-space: normal;
    }
    .verify-get-btn {
        width: 100%;
        text-align: center;
    }
    .submit-btn,
    .reset-btn {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
        margin: 4px 0;
    }
    .form-row .form-group.full[style*="text-align:center"] {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 超小屏（≤360px） */
@media screen and (max-width: 360px) {
    .guestbook-main {
        padding: 8px 6px 16px;
    }
    .guestbook-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .form-control {
        height: 36px;
        font-size: 12px;
    }
}