/* 馨悦文化 - 首页样式 */
/* 确保与前台页面样式一致 */

/* 基础样式 */
body {
    background: linear-gradient(135deg, #0c2461 0%, #1e3c72 20%, #2a5298 50%, #6a11cb 80%, #2575fc 100%);
    font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #fff;
    overflow-x: hidden;
    transition: background 1s;
    position: relative;
    margin: 0;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止后台样式影响前台 */
body.admin-system { 
    background: linear-gradient(135deg, #0c2461 0%, #1e3c72 20%, #2a5298 50%, #6a11cb 80%, #2575fc 100%) !important;
    font-family: Inter, sans-serif !important;
}

/* 访问计数器 */
.visit-counter {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .9);
    background: rgba(0, 0, 0, .3);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, .2);
}

/* 标题容器 */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0 20px;
    width: 100%;
    max-width: 800px;
    position: relative;
    flex-wrap: nowrap;
}

/* 标题文本 */
.title-text {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 232, 102, .8), 0 0 30px rgba(255, 215, 0, .6), 0 0 45px rgba(255, 165, 0, .4);
    letter-spacing: 1.5px;
    transition: all .3s;
    padding: 10px 20px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.title-text:hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 20px rgba(255, 232, 102, 1), 0 0 40px rgba(255, 215, 0, .8), 0 0 60px rgba(255, 165, 0, .6);
}

/* 公司全名 */
.company-fullname {
    font-size: 1.56rem;
    color: #fff;
    margin: 15px auto 15px;
    padding: 5px 0;
    font-weight: 600;
    text-align: center;
    max-width: 600px;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.company-fullname::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -3px;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 232, 102, .8), rgba(255, 255, 255, .9), rgba(255, 232, 102, .8), transparent);
    background-size: 200% 100%;
    animation: gentle-shine 3s infinite linear;
    border-radius: 2px;
    opacity: .8;
    box-shadow: 0 0 10px rgba(255, 232, 102, .5), 0 0 20px rgba(255, 232, 102, .3);
}

/* 公司英文名 */
.company-english-name {
    font-size: 1rem;
    color: #fff;
    margin: 0 auto 25px;
    padding: 0;
    font-weight: 400;
    text-align: center;
    max-width: 600px;
    position: relative;
    letter-spacing: .5px;
    font-style: italic;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

/* 动画效果 */
@keyframes gentle-shine {
    0% {
        background-position: -100% 0;
        opacity: .6;
    }
    50% {
        opacity: .9;
    }
    100% {
        background-position: 100% 0;
        opacity: .6;
    }
}

/* Logo和时钟容器 */
.logo-above-clock {
    position: fixed;
    top: calc(20% + 10px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    height: 200px;
    max-width: 600px;
    cursor: pointer;
}

/* 模拟时钟 */
.analog-clock {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0;
    flex-shrink: 0;
}

.clock-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFE866;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 15px rgba(255, 232, 102, .8);
}

.hour-hand,
.minute-hand,
.second-hand {
    position: absolute;
    transform-origin: bottom center;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-100%) rotate(0deg);
    border-radius: 5px;
    transition: opacity .3s;
    opacity: .8;
}

.hour-hand {
    width: 4px;
    height: 30px;
    background: #FFE866;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 232, 102, .6);
}

.minute-hand {
    width: 3px;
    height: 40px;
    background: #FFB347;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 179, 71, .6);
}

.second-hand {
    width: 1.5px;
    height: 45px;
    background: #fff;
    z-index: 3;
    box-shadow: 0 0 5px rgba(255, 255, 255, .8);
}

.analog-clock:hover .hour-hand,
.analog-clock:hover .minute-hand,
.analog-clock:hover .second-hand {
    opacity: 1;
}

/* 副标题容器 */
.subtitle-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

/* 副标题 */
.subtitle {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 232, 102, 1), 0 0 30px rgba(255, 215, 0, .8), 0 0 45px rgba(255, 165, 0, .6);
    padding: 12px 30px;
    background: rgba(0, 0, 0, .2);
    border-radius: 15px;
    transition: all .3s;
    cursor: pointer;
    border: 1px solid rgba(255, 232, 102, .4);
    position: relative;
    z-index: 5;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .3), inset 0 0 10px rgba(255, 232, 102, .1);
}

.subtitle:hover {
    background: rgba(0, 0, 0, .4);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 20px #fff, 0 0 40px rgba(255, 237, 78, 1), 0 0 60px rgba(255, 215, 0, .9), 0 0 80px rgba(255, 165, 0, .7);
    border: 1px solid rgba(255, 232, 102, .8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .5), inset 0 0 20px rgba(255, 232, 102, .2);
}

/* 页脚 */
.footer {
    font-size: .533rem;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    top: calc(50% + 430px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 100%;
    max-width: 800px;
}

/* 备案信息 */
.beian-info {
    text-align: center;
    font-size: .533rem;
    color: #fff;
    margin-top: 4px;
}

.beian-info div {
    margin: 4px 0;
}

.beian-info a {
    color: #FFE866;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s;
}

.beian-info a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 232, 102, .8);
}

/* 动态内容区域 */
.dynamic-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    padding-top: 0;
    min-height: 100vh;
    justify-content: center;
}

/* 新Logo容器 */
.new-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* 星星容器 */
#stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 星星 */
.star {
    position: absolute;
    background-color: #FFE866;
    border-radius: 50%;
    animation: breathe 3s ease-in-out infinite;
}

.admin-star {
    background-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.8), 0 0 30px rgba(255, 100, 100, 0.4);
    animation: breathe 2s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
}

@keyframes breathe {
    0%, 100% {
        opacity: .3;
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 232, 102, .5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 232, 102, 1), 0 0 30px rgba(255, 215, 0, .5);
    }
}

/* 光晕效果 */
.halo {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 102, .4) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 0;
}

/* 流星 */
.shooting-star {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 232, 102, .9), rgba(255, 255, 255, 1));
    border-radius: 2px;
    z-index: 1;
}

/* 版权信息 */
.copyright-info {
    font-size: .533rem;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

/* 黄色后台星星样式 - 尺寸调整为原来的2/3 (8px) */
.admin-yellow-star {
    position: absolute;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    animation: yellowPulse 2s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 1001;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8),
                0 0 30px rgba(255, 165, 0, 0.6),
                0 0 45px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
}

.admin-yellow-star:hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 1),
                0 0 40px rgba(255, 165, 0, 0.8),
                0 0 60px rgba(255, 140, 0, 0.6);
}

@keyframes yellowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.7),
                    0 0 20px rgba(255, 165, 0, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 215, 0, 1),
                    0 0 40px rgba(255, 165, 0, 0.7),
                    0 0 60px rgba(255, 140, 0, 0.5);
    }
}

/* 红色后台星星样式 - 尺寸是黄色星星的三分之二（约5.33px，取5px） */
.admin-red-star {
    position: absolute;
    background: linear-gradient(135deg, #FF3366 0%, #CC0000 100%);
    border-radius: 50%;
    animation: redPulse 1.5s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 1002;
    width: 5px;
    height: 5px;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.9),
                0 0 24px rgba(255, 0, 0, 0.7),
                0 0 36px rgba(204, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.admin-red-star:hover {
    transform: scale(1.8);
    box-shadow: 0 0 18px rgba(255, 51, 102, 1),
                0 0 36px rgba(255, 0, 0, 0.9),
                0 0 54px rgba(204, 0, 0, 0.7);
}

@keyframes redPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 51, 102, 0.8),
                    0 0 16px rgba(255, 0, 0, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(255, 51, 102, 1),
                    0 0 30px rgba(255, 0, 0, 0.8),
                    0 0 45px rgba(204, 0, 0, 0.6);
    }
}

/* 后台入口按钮样式 */
.admin-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: rgba(52, 73, 94, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    background: rgba(255, 232, 102, 0.3);
    color: #FFE866;
    border-color: rgba(255, 232, 102, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 232, 102, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .title-container {
        margin-top: 40px;
    }
    
    .title-text {
        font-size: 2rem;
        padding: 8px 15px;
    }
    
    .company-fullname {
        font-size: 1.35rem;
        margin: 15px auto 10px;
    }
    
    .company-english-name {
        font-size: .85rem;
        margin: 0 auto 20px;
    }
    
    .analog-clock {
        width: 90px;
        height: 90px;
    }
    
    .logo-above-clock {
        height: 180px;
        max-width: 500px;
    }
    
    .subtitle-container {
        gap: 12px;
        padding: 0 10px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 10px 20px;
        max-width: 90%;
    }
    
    .footer {
        top: calc(50% + 407px);
        font-size: .5rem;
    }
    
    .beian-info {
        font-size: .5rem;
    }
    
    .copyright-info {
        font-size: .5rem;
    }
}

@media (max-width: 480px) {
    .title-container {
        margin-top: 35px;
    }
    
    .title-text {
        font-size: 1.7rem;
        padding: 6px 12px;
    }
    
    .company-fullname {
        font-size: 1.1rem;
        margin: 15px auto 8px;
    }
    
    .company-english-name {
        font-size: .75rem;
        margin: 0 auto 18px;
    }
    
    .analog-clock {
        width: 80px;
        height: 80px;
    }
    
    .logo-above-clock {
        height: 150px;
        max-width: 400px;
    }
    
    .hour-hand {
        height: 25px;
    }
    
    .minute-hand {
        height: 35px;
    }
    
    .second-hand {
        height: 40px;
    }
    
    .subtitle-container {
        gap: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 8px 15px;
        max-width: 280px;
    }
    
    .footer {
        top: calc(50% + 407px);
        font-size: .45rem;
    }
    
    .beian-info {
        font-size: .45rem;
    }
    
    .copyright-info {
        font-size: .45rem;
    }
}