﻿    /* 修复顶部导航和图片之间空白 */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { margin: 0 !important; padding: 0 !important; }
    header, .header, #header, .am-header, .top-nav, .nav-bar { margin-top: 0 !important; padding-top: 0 !important; }
    .page-container { margin-top: 0 !important; padding-top: 0 !important; }


      /* 基础样式 */
    body, .ui-page {
        background-color: #f0f0f0;
        margin: 0;
        padding: 0;
    }

    /* 页面容器 - 居中显示，最大宽度限制 */
    .page-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 10px;
        background: #f0f0f0;
    }

    /* 灯笼样式 */
    @media (min-width: 700px) {
        .deng-box1 {
            position: absolute;
            top: 95px;
            left: 50px;
            z-index: 9999;
        }
        .deng-box {
            position: absolute;
            top: 95px;
            right: 50px;
            z-index: 9999;
        }
        .head1 {
            height: 100px;
        }
    }

    @media (max-width: 699px) {
        .deng-box1 {
            position: absolute;
            top: 30px;
            left: 0px;
            z-index: 9999;
            overflow: hidden;
        }
        .deng-box {
            position: absolute;
            top: 30px;
            right: 0px;
            z-index: 9999;
            overflow: hidden;
        }
    }

    .deng-box1 .deng {
        position: relative;
        width: 50px;
        height: 37px;
        margin: 50px;
        background: #d8000f;
        background: rgba(216, 0, 15, 0.8);
        border-radius: 50% 50%;
        -webkit-transform-origin: 50% -50px;
        -webkit-animation: swing 3.5s infinite ease-in-out;
        box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
    }

    .deng {
        position: relative;
        width: 50px;
        height: 37px;
        margin: 50px;
        background: #d8000f;
        background: rgba(216, 0, 15, 0.8);
        border-radius: 50% 50%;
        -webkit-transform-origin: 50% -50px;
        -webkit-animation: swing 3s infinite ease-in-out;
        box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
    }

    .deng-a {
        height: 35px;
        background: rgba(216, 0, 15, 0.1);
        margin: -2px;
        border-radius: 50% 50%;
        border: 2px solid #dc8f03;
    }

    .deng-b {
        width: 20px;
        background: rgba(216, 0, 15, 0.1);
        margin: -2px 8px 8px 13.5px;
        border-radius: 50% 50%;
        border: 2px solid #dc8f03;
    }

    .xian {
        position: absolute;
        top: -30px;
        left: 25px;
        width: 2px;
        height: 27px;
        background: #30140c;
    }

    .shui-a {
        width: 5px;
        height: 15px;
        margin: 2px 0 0 25px;
        -webkit-animation: swing 4s infinite ease-in-out;
        -webkit-transform-origin: 50% -45px;
        background: #ffa500;
        border-radius: 0 0 5px 5px;
    }

    .shui-b {
        position: absolute;
        top: 18px;
        left: -2px;
        width: 10px;
        height: 0px;
        background: #dc8f03;
        border-radius: 50%;
    }

    .shui-c {
        position: absolute;
        top: 14px;
        left: -2px;
        width: 8px;
        height: 20px;
        background: #ffa500;
        border-radius: 0 0 0 5px;
    }

    .deng::after {
        position: absolute;
        bottom: -5px;
        left: -10px;
        height: 5px;
        width: 30px;
        content: " ";
        margin-left: 20px;
        border-radius: 0 0 5px 5px;
        border: solid 1px #dc8f03;
        background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
    }

    .deng::before {
        position: absolute;
        top: -5px;
        left: 10px;
        height: 5px;
        width: 30px;
        content: " ";
        z-index: 999;
        border-radius: 5px 5px 0 0;
        border: solid 1px #dc8f03;
        background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
    }

    .deng-t {
        text-shadow: 0 1px 0 #333333;
        font-size: 1.1rem;
        color: #dc8f03;
        font-weight: bold;
        line-height: 32px;
        text-align: center;
    }

    .night .deng-t,
    .night .deng-box,
    .night .deng-box1 {
        background: transparent !important;
    }

    @-moz-keyframes swing {
        0% { -moz-transform: rotate(-10deg) }
        50% { -moz-transform: rotate(10deg) }
        100% { -moz-transform: rotate(-10deg) }
    }

    @-webkit-keyframes swing {
        0% { -webkit-transform: rotate(-10deg) }
        50% { -webkit-transform: rotate(10deg) }
        100% { -webkit-transform: rotate(-10deg) }
    }



    /* 表单区域样式 - 参照明承许愿网 */
    fieldset {
        border: 2px dashed #00bcd4;
        border-radius: 8px;
        margin: 15px 0;
        padding: 15px;
        background: #fff;
    }

    legend {
        padding: 5px 10px;
        border-radius: 4px;
        color: #fff;
        font-weight: bold;
    }

    /* 您的信息区域 - 蓝色背景 */
    fieldset:nth-of-type(1) {
        background: #a8c5f0;
        border-color: #00bcd4;
    }

    fieldset:nth-of-type(1) legend {
        background: #00bcd4;
    }

    /* 选择愿望区域 - 绿色背景 */
    fieldset:nth-of-type(2) {
        background: #a8d8a8;
        border-color: #4caf50;
    }

    fieldset:nth-of-type(2) legend {
        background: #e91e63;
    }

    /* 许愿内容区域 - 浅蓝色背景 */
    fieldset:nth-of-type(3) {
        background: #c1f1f1;
        border-color: #00bcd4;
    }

    fieldset:nth-of-type(3) legend {
        background: #8bc34a;
    }

    /* 输入框样式 */
    input[type="text"],
    textarea {
        width: 96%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background: #fff;
    }

    /* 许愿类型选择样式 - 竖排排列，4个字 */
    #xuyuandeng {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        padding: 20px 15px;
        background: #fff;
        border-radius: 8px;
        margin: 15px 0;
        overflow-x: auto;
        align-items: flex-start;
    }

    #xuyuandeng a {
        text-decoration: none;
        display: inline-block;
        flex-shrink: 0;
    }

    #xuyuandeng .shouxing {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 38px;
        height: 110px;
        padding: 12px 4px;
        border-radius: 8px;
        border: 2px solid;
        text-align: center;
        font-size: 16px;
        line-height: 1.4;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fff;
        font-family: "Microsoft YaHei", "SimHei", sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    /* 未选择时的颜色 */
    #xuyuandeng .biaoqian0 { color: #e67e22; border-color: #e67e22; }
    #xuyuandeng .biaoqian1 { color: #3498db; border-color: #3498db; }
    #xuyuandeng .biaoqian2 { color: #27ae60; border-color: #27ae60; }
    #xuyuandeng .biaoqian3 { color: #e74c3c; border-color: #e74c3c; }
    #xuyuandeng .biaoqian4 { color: #f39c12; border-color: #f39c12; }
    #xuyuandeng .biaoqian5 { color: #9b59b6; border-color: #9b59b6; }
    #xuyuandeng .biaoqian6 { color: #e91e63; border-color: #e91e63; }
    #xuyuandeng .biaoqian7 { color: #00bcd4; border-color: #00bcd4; }
    #xuyuandeng .biaoqian8 { color: #ff5722; border-color: #ff5722; }
    #xuyuandeng .biaoqian9 { color: #795548; border-color: #795548; }

    /* 选择后的背景颜色 */
    #xuyuandeng .shouxing.chose {
        font-weight: bold;
        color: #fff !important;
        transform: scale(1.08);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    #xuyuandeng .biaoqian0.chose { background: #e67e22; border-color: #e67e22; }
    #xuyuandeng .biaoqian1.chose { background: #3498db; border-color: #3498db; }
    #xuyuandeng .biaoqian2.chose { background: #27ae60; border-color: #27ae60; }
    #xuyuandeng .biaoqian3.chose { background: #e74c3c; border-color: #e74c3c; }
    #xuyuandeng .biaoqian4.chose { background: #f39c12; border-color: #f39c12; }
    #xuyuandeng .biaoqian5.chose { background: #9b59b6; border-color: #9b59b6; }
    #xuyuandeng .biaoqian6.chose { background: #e91e63; border-color: #e91e63; }
    #xuyuandeng .biaoqian7.chose { background: #00bcd4; border-color: #00bcd4; }
    #xuyuandeng .biaoqian8.chose { background: #ff5722; border-color: #ff5722; }
    #xuyuandeng .biaoqian9.chose { background: #795548; border-color: #795548; }

    /* 底部按钮区域 */
    .button-area {
        display: flex;
        justify-content: space-between;
        padding: 20px 0;
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .submit-btn {
        flex: 1;
        background-color: #cb0d0d;
        color: #fff;
        text-align: center;
        padding: 12px 20px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
    }

    .sponsor-btn {
        flex: 1;
        background-color: #c56521;
        color: #fff;
        text-align: center;
        padding: 12px 20px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
        display: block;
    }

    /* 表单样式 */
    .guess-hint {
        font-size: 14px;
        color: #333;
        margin: 10px 0;
    }

    .radio li {
        display: inline-block;
        margin-right: 15px;
        list-style: none;
    }

    /* 字数统计 */
    #textCountBox {
        text-align: right;
        color: #999;
        font-size: 12px;
        margin-top: 5px;
    }
