.main { margin: 0 auto; box-sizing: border-box; margin-top: 20px; }
.max-width { max-width: 1000px; }
.clear { clear: both; }

.hd-box { width: 100%; box-sizing: border-box; }
.hd-box1 { border: #eee 1px solid; }
.hd-navigation-large { width: 100%; height: 43px; box-sizing: border-box; padding: 5px 15px 5px 15px; background: #fafafa; }
.hd-navigation { float: left; width: 100px; background: #fff; box-sizing: border-box; line-height: 30px; text-align: center; font-size: 13px; border-radius: 6px; border: #de686d 1px solid; cursor: pointer; }
.hd-navigation-right { float: right; width: 80px; background: #fff; box-sizing: border-box; line-height: 30px; text-align: center; font-size: 13px; border-radius: 6px; border: #de686d 1px solid; }
.hd-navigation-right a { text-decoration: none; color: #3e3e3e; }
.hd-navigation-right a:hover { color: #de686d; }

.hd-show-tab { margin: .5rem auto; height: .5rem; display: flex; line-height: 30px; align-items: center; justify-content: center; }
.hd-show-tab .tag-year { width: 80px; border: #de686d 1px solid; box-sizing: border-box; text-align: center; padding: .03rem; font-size: 16px; }
.hd-show-tab .tag-year a { color: #333; text-decoration: none; display: block; }
.hd-show-tab .tag-year a:hover { color: #de686d; }
.hd-show-tab .tag-year-now { background: #de686d; color: #fff; }
.hd-show-tab .tag-year-now a { color: #fff; }
.hd-show-tab .tag-year-now a:hover { color: #fff; }
.hd-show-tab .tag-year span { display: block; overflow: hidden; white-space: nowrap; }

.hd-show-mian { margin: 0 auto; box-sizing: border-box; font-size: 15px; }
.hd-show-mian .head { text-align: center; color: #585657; font-size: 19px; margin-bottom: .1rem; }
.hd-show-mian .head .emphasize { font-size: 23px; color: #bf555a; }

.showweekday { padding-top: .2rem; display: flex; justify-content: center; color: #de686d; align-items: center; }
.showweekday input[type=checkbox] { -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; height: 18px; width: 18px; background-color: #eff2f5; border-radius: 4px; position: relative; border: 1px solid #de686d; margin-right: 4px; }
.showweekday input[type=checkbox]:checked::after { content: "\2714"; display: block; position: absolute; right: 3px; bottom: 0; color: #666; font-size: 14px; }
.showweekday label { font-size: 15px; cursor: pointer; }

.hd-detail { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
.hd-detail .jiri { display: flex; align-items: center; padding: .17333rem .1rem; }
.hd-detail .jiri-box { width: 49.8%; position: relative; margin-top: .3rem; }
.hd-detail .jiri-box:last-child { margin-bottom: 0; }
.hd-detail .jiri-box a { text-decoration: none; color: inherit; display: block; }
.hd-detail .jiri-box:after { border-top: .0155rem solid #de686d; border-bottom: .0155rem solid #de686d; }
.hd-detail .jiri-box:after,
.hd-detail .jiri-box:before { display: block; content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; pointer-events: none; }
.hd-detail .jiri-box:before { border-right: .0155rem solid #de686d; border-left: .0155rem solid #de686d; }
.hd-detail .jiri-box.bd .jiri { padding: .37333rem .16rem .13333rem; }

.hd-detail .jiri .left { width: 1.8rem; color: #333; text-align: center; border-right: .01333rem solid #eaeaea; padding-right: .10667rem; }
.hd-detail .jiri .left.weekactive { color: #bf555a; }
.hd-detail .jiri .left .week,
.hd-detail .jiri .left .year { font-weight: 400; font-size: 15px; line-height: .4rem; }
.hd-detail .jiri .left .year { margin-bottom: .26667rem; }
.hd-detail .jiri .left .date { font-weight: 500; font-size: 22px; line-height: .58667rem; margin-bottom: .26667rem; width: 1.8rem; }
.hd-detail .jiri .left .holiday-label {
    display: inline-block;
    font-size: 12px;
    line-height: 20px;
    padding: 0 8px;
    border-radius: 10px;
    margin-top: .05rem;
    color: #fff;
    background: #de686d;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}
.hd-detail .jiri .left .holiday-label.ban { background: #d9a03c; }

.hd-detail .jiri .right { flex: auto; font-size: 15px; margin-left: .26667rem; }
.hd-detail .jiri .right .right-firstline { font-weight: 500; color: #333; line-height: .4rem; margin-bottom: .18667rem; }
.hd-detail .jiri .right .right-firstline .afterday { float: right; position: relative; right: .66667rem; color: #999; }
.hd-detail .jiri .right .lunar { color: #555; margin-bottom: .18667rem; }
.hd-detail .jiri .right .fairy { color: #aeaeae; line-height: .53333rem; }
.hd-detail .jiri .enter { margin-right: .2rem; width: .18667rem; height: .32rem; background-image: url('/templates/wnl/images/yjt.png'); background-size: 100% 100%; }

.hd-detail-wrap { position: relative; overflow: hidden; }

.hd-overlay-mask { position: relative; margin-top: -80px; padding-top: 90px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0.98) 75%, #fff 100%); text-align: center; min-height: 160px; display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; cursor: pointer; }
.hd-overlay-inner { pointer-events: auto; padding: 10px 30px 20px; }
.hd-overlay-arrow { display: block; margin-bottom: 20px; color: #de686d; animation: hdBounce 1.5s ease-in-out infinite; }
.hd-overlay-arrow i { font-size: 38px; display: block; line-height: 1; }
.hd-overlay-text { display: block; font-size: 17px; color: #999; letter-spacing: 1px; line-height: 1.8; }
.hd-overlay-text.hd-overlay-wedding { color: #de686d; font-weight: 600; }

@keyframes hdBounce {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50% { transform: translateY(12px); opacity: 1; }
}

.hd-more-wrap { text-align: center; padding: 20px 10px 10px; display: none; }

.union-form-section { max-width: 1000px; margin: 0 auto; padding: 10px 5px 30px; }
.form-card { background: #fff; border-radius: 14px; padding: 26px 30px; box-shadow: 0 6px 24px rgba(222,104,109,0.12); border: 1px solid #f5dcdd; }
.form-card .form-title { font-size: 20px; font-weight: 700; color: #c62828; text-align: center; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px dashed #f5c6c6; }
.form-card .alert { display: none; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.form-card .alert.show { display: block; }
.form-card .alert.error { background: #fdf0ef; color: #c0392b; border: 1px solid #fadbd8; }
.form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.form-card .form-row .form-group.full-width { grid-column: 1 / -1; }
.form-card .form-group label { display: block; font-size: 17px; font-weight: 600; color: #333; margin-bottom: 8px; }
.form-card .form-group label i { margin-right: 5px; }
.form-card .form-control { width: 100%; padding: 14px 16px; border: 1.5px solid #ffd5d6; border-radius: 8px; font-size: 16px; outline: none; transition: all .25s; background: #fff; }
.form-card .form-control:focus { border-color: #de686d; box-shadow: 0 0 0 3px rgba(222,104,109,0.1); }
.form-card .date-input-wrapper { position: relative; }
.form-card .date-input-wrapper .date-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #de686d; pointer-events: none; font-size: 15px; }

.form-card .radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    background: #fdf6f7;
    border: 1px solid #f5dcdd;
    border-radius: 10px;
}
.form-card .radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #fff;
    border: 1.5px solid #f0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all .2s;
    text-align: center;
}
.form-card .radio-option:hover {
    border-color: #de686d;
    color: #c62828;
}
.form-card .radio-option input[type=radio] {
    width: 16px;
    height: 16px;
    accent-color: #de686d;
    cursor: pointer;
    flex-shrink: 0;
}
.form-card .radio-option input[type=radio]:checked + span {
    color: #c62828;
    font-weight: 600;
}
.form-card .radio-option:has(input[type=radio]:checked) {
    border-color: #de686d;
    background: #fff5f6;
    box-shadow: 0 2px 8px rgba(222,104,109,0.15);
}

.form-card .form-btns { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }
.form-card .submit-btn { padding: 12px 42px; border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .25s; }
.form-card .submit-btn.secondary { background: linear-gradient(135deg, #de686d, #c62828); color: #fff; box-shadow: 0 4px 14px rgba(222,104,109,0.35); }
.form-card .submit-btn.secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(222,104,109,0.5); }
.form-card .submit-btn i { margin-right: 6px; }

@media only screen and (max-width: 900px) {
    .hd-show-mian { margin: 0 5px; }
    .hd-detail .jiri-box { width: 100%; padding-right: 0; }
    .hd-detail .jiri-box {
        background: radial-gradient(circle at bottom left, transparent .2rem, #de686d .21333rem, #fff .25333rem) 0 100%, radial-gradient(circle at top left, transparent .2rem, #de686d .21333rem, #fff .25333rem) 0 0, radial-gradient(circle at top right, transparent .2rem, #de686d .21333rem, #fff .25333rem) 100% 0, radial-gradient(circle at bottom right, transparent .2rem, #de686d .21333rem, #fff .25333rem) 100% 100%;
        background-size: 51% 51%;
        background-repeat: no-repeat;
    }
    .hd-detail .jiri-box:after { width: calc(100% - .44rem); border-top: .0255rem solid #de686d; border-bottom: .0255rem solid #de686d; }
    .hd-detail .jiri-box:before { height: calc(100% - .42667rem); border-right: .0255rem solid #de686d; border-left: .0255rem solid #de686d; }
    .hd-show-tab { margin: .3rem auto; }
    .form-card { padding: 20px 18px; }
    .form-card .form-row { grid-template-columns: 1fr; gap: 14px; }
    .form-card .form-btns { flex-direction: column; }
    .form-card .submit-btn { width: 100%; }
    .hd-overlay-mask { margin-top: -80px; padding-top: 60px; min-height: 130px; }
    .hd-overlay-arrow i { font-size: 30px; }
    .hd-overlay-text { font-size: 15px; }

    .form-card .radio-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    .form-card .radio-option {
        padding: 9px 6px;
        font-size: 13px;
    }
        .main {
        margin-top: 10px;
        margin-left: 5px;
        margin-right: 5px;
        margin-top: -20px;
    }
}
