.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: #A5F3FC 1px solid; }
.hd-navigation-large { width: 100%; height: 43px; box-sizing: border-box; padding: 5px 15px 5px 15px; background: #ECFEFF; }
.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: #0E7490 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: #0E7490 1px solid; }
.hd-navigation-right a { text-decoration: none; color: #374151; }
.hd-navigation-right a:hover { color: #0E7490; }

.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: #0E7490 1px solid; box-sizing: border-box; text-align: center; padding: .03rem; font-size: 16px; }
.hd-show-tab .tag-year a { color: #1f2937; text-decoration: none; display: block; }
.hd-show-tab .tag-year a:hover { color: #0E7490; }
.hd-show-tab .tag-year-now { background: #0E7490; 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: #374151; font-size: 19px; margin-bottom: .1rem; }
.hd-show-mian .head .emphasize { font-size: 23px; color: #0C4A5E; }

.showweekday { padding-top: .2rem; display: flex; justify-content: center; color: #0E7490; align-items: center; }
.showweekday input[type=checkbox] { -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; height: 18px; width: 18px; background-color: #CFFAFE; border-radius: 4px; position: relative; border: 1px solid #0E7490; margin-right: 4px; }
.showweekday input[type=checkbox]:checked::after { content: "\2714"; display: block; position: absolute; right: 3px; bottom: 0; color: #4b5563; 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 #0E7490; border-bottom: .0155rem solid #0E7490; }
.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 #0E7490; border-left: .0155rem solid #0E7490; }
.hd-detail .jiri-box.bd .jiri { padding: .37333rem .16rem .13333rem; }

.hd-detail .jiri .left { width: 1.8rem; color: #1f2937; text-align: center; border-right: .01333rem solid #A5F3FC; padding-right: .10667rem; }
.hd-detail .jiri .left.weekactive { color: #0C4A5E; }
.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: #0E7490;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}
.hd-detail .jiri .left .holiday-label.ban { background: #D97706; }

.hd-detail .jiri .right { flex: auto; font-size: 15px; margin-left: .26667rem; }
.hd-detail .jiri .right .right-firstline { font-weight: 500; color: #1f2937; line-height: .4rem; margin-bottom: .18667rem; }
.hd-detail .jiri .right .right-firstline .afterday { float: right; position: relative; right: .66667rem; color: #9ca3af; }
.hd-detail .jiri .right .lunar { color: #4b5563; margin-bottom: .18667rem; }
.hd-detail .jiri .right .fairy { color: #9ca3af; 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: #0E7490; 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: #9ca3af; letter-spacing: 1px; line-height: 1.8; }
.hd-overlay-text.hd-overlay-wedding { color: #0E7490; 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(14,116,144,0.12); border: 1px solid #67E8F9; }
.form-card .form-title { font-size: 20px; font-weight: 700; color: #0C4A5E; text-align: center; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px dashed #22D3EE; }
.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: #ECFEFF; color: #b91c1c; border: 1px solid #22D3EE; }
.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: #1f2937; 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 #67E8F9; border-radius: 8px; font-size: 16px; outline: none; transition: all .25s; background: #fff; }
.form-card .form-control:focus { border-color: #0E7490; box-shadow: 0 0 0 3px rgba(14,116,144,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: #0E7490; pointer-events: none; font-size: 15px; }

.form-card .radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    background: #ECFEFF;
    border: 1px solid #67E8F9;
    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 #67E8F9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    transition: all .2s;
    text-align: center;
}
.form-card .radio-option:hover {
    border-color: #0E7490;
    color: #0C4A5E;
}
.form-card .radio-option input[type=radio] {
    width: 16px;
    height: 16px;
    accent-color: #0E7490;
    cursor: pointer;
    flex-shrink: 0;
}
.form-card .radio-option input[type=radio]:checked + span {
    color: #0C4A5E;
    font-weight: 600;
}
.form-card .radio-option:has(input[type=radio]:checked) {
    border-color: #0E7490;
    background: #CFFAFE;
    box-shadow: 0 2px 8px rgba(14,116,144,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, #22A7BF, #0E7490); color: #fff; box-shadow: 0 4px 14px rgba(14,116,144,0.35); }
.form-card .submit-btn.secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,116,144,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, #0E7490 .21333rem, #fff .25333rem) 0 100%, radial-gradient(circle at top left, transparent .2rem, #0E7490 .21333rem, #fff .25333rem) 0 0, radial-gradient(circle at top right, transparent .2rem, #0E7490 .21333rem, #fff .25333rem) 100% 0, radial-gradient(circle at bottom right, transparent .2rem, #0E7490 .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 #0E7490; border-bottom: .0255rem solid #0E7490; }
    .hd-detail .jiri-box:before { height: calc(100% - .42667rem); border-right: .0255rem solid #0E7490; border-left: .0255rem solid #0E7490; }
    .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;
    }
}