* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
}
body {
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #FFEFD5 100%);
    font-family: 'Microsoft YaHei', sans-serif;
    padding: 15px;
}
.container-custom {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.cloud {
    position: absolute;
    font-size: 80px;
    opacity: 0.9;
    z-index: 0;
}
.cloud-1 {
    top: 60px;
    left: -40px;
}
.cloud-2 {
    top: 70px;
    right: -40px;
}
.card-custom {
    background: linear-gradient(145deg, #FFF8E7, #FFF5E6);
    border-radius: 30px;
    padding: 35px 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15), 
                inset 0 2px 10px rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.5);
}
.star {
    position: absolute;
    font-size: 45px;
    opacity: 0.9;
}
.star-left {
    top: 25px;
    left: -20px;
}
.star-right {
    top: 25px;
    right: -20px;
}
.teddy-bear {
    position: absolute;
    font-size: 60px;
    bottom: 10px;
    left: -10px;
}
.title-custom {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: #2D1810;
    margin-bottom: 28px;
}
.form-label-custom {
    font-size: 20px;
    color: #2D1810;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}
.input-custom {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #D4C4B0;
    border-radius: 12px;
    background: #FFF8E7;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.input-custom:focus {
    outline: none;
    border-color: #FFB347;
    box-shadow: 0 0 12px rgba(255,179,71,0.3);
}
.btn-custom {
    width: 100%;
    padding: 14px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg, #4A90E2 0%, #FFE066 100%);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.link-custom {
    display: inline-block;
    position: relative;
    left: 100%;
    transform: translateX(-100%);
    font-size: 15px;
    color: white;
    text-decoration: none;
    margin-top: 25px;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s;
}
.link-custom:hover {
    color: white;
    background: linear-gradient(135deg, #D97706 0%, #DC2626 100%);
    transform: translateX(-100%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
.alert-custom {
    background: #FFF5E6;
    border: 2px solid #FFB347;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.alert-danger-custom {
    border-color: #E74C3C;
    background: #FFF0F0;
}
.alert-success-custom {
    border-color: #27AE60;
    background: #F0FFF4;
}
.alert-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.error-text {
    color: #E74C3C;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .title-custom {
        font-size: 26px;
    }
    .form-label-custom {
        font-size: 18px;
    }
    .btn-custom {
        font-size: 20px;
        padding: 12px;
    }
    .link-custom {
        font-size: 14px;
        padding: 8px 20px;
        font-weight: 600;
    }
    .card-custom {
        padding: 28px 20px;
    }
    .input-custom {
        font-size: 14px;
        padding: 12px 14px;
    }
    .teddy-bear {
        font-size: 50px;
        bottom: 5px;
        left: -5px;
    }
    .star {
        font-size: 40px;
    }
    .cloud {
        font-size: 60px;
    }
}

/* 页脚样式 */
.footer-custom {
    text-align: center;
    margin-top: 30px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFF0F0 100%);
    border-radius: 16px;
    border: 2px solid #FFE4B5;
    position: relative;
}
.footer-custom::before,
.footer-custom::after {
    content: '✨';
    position: absolute;
    top: 10px;
    font-size: 18px;
}
.footer-custom::before {
    left: 20px;
}
.footer-custom::after {
    right: 20px;
}
.footer-copyright {
    font-size: 14px;
    color: #F59E0B;
    margin-bottom: 8px;
    font-weight: 500;
}
.footer-icp {
    font-size: 13px;
    color: #EF4444;
}
.footer-icp a {
    text-decoration: none;
    color: inherit;
}
.footer-icp a:hover {
    text-decoration: underline;
}

/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 
                0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.announcement-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
    animation: bellShake 1.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(15deg) scale(1.1); }
}

.announcement-text-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(5px);
}

.announcement-scroll {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.announcement-content {
    font-size: 17px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .title-custom {
        font-size: 26px;
    }
    .form-label-custom {
        font-size: 18px;
    }
    .btn-custom {
        font-size: 20px;
        padding: 12px;
    }
    .link-custom {
        font-size: 14px;
        padding: 8px 20px;
        font-weight: 600;
    }
    .card-custom {
        padding: 28px 20px;
    }
    .input-custom {
        font-size: 14px;
        padding: 12px 14px;
    }
    .teddy-bear {
        font-size: 50px;
        bottom: 5px;
        left: -5px;
    }
    .star {
        font-size: 40px;
    }
    .cloud {
        font-size: 60px;
    }
    .cloud-1 {
        top: 50px;
        left: -30px;
    }
    .cloud-2 {
        top: 55px;
        right: -30px;
    }
    .announcement-bar {
        padding: 12px 15px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .announcement-icon {
        font-size: 24px;
        margin-right: 12px;
    }
    
    .announcement-content {
        font-size: 15px;
    }
    
    .announcement-scroll {
        animation: scrollText 16s linear infinite;
    }
    
    .announcement-text-wrapper {
        padding: 6px 10px;
        border-radius: 10px;
    }
    .footer-custom {
        padding: 15px 10px;
    }
    .footer-copyright {
        font-size: 13px;
    }
    .footer-icp {
        font-size: 12px;
    }
    .footer-custom::before,
    .footer-custom::after {
        font-size: 14px;
    }
}
