/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/logo/111.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.9) contrast(1.0);
    z-index: -1;
    will-change: transform;
    background-color: transparent;
}

/* 添加背景粒子效果 */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(0,188,212,0.6) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@keyframes particleFloat {
    0% {
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

/* 主体样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: transparent;
    color: black;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 顶部导航栏样式 */
.top-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(3px);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff; /* 白色文字 */
    margin-left: 12px;
}

.logo-image {
    height: 76px;
    width: auto;
    display: block;
    margin: 0;
}

.button-icon {
    height: 45px;
    width: auto;
    vertical-align: middle;
    margin-right: 15px;
}

/* 主内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* 统一宽度容器 - 确保button和div宽度一致 */
.buttons-container, .text-box {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* 按钮区域样式 */
.buttons-container {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.red-button {
    display: inline-flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: #ffffff;
    padding: 12px 16px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
    width: 100%;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    word-break: break-word;
}

.red-button input,
input[type="submit"].red-button {
    display: flex;
    flex-wrap: wrap;
    word-break: break-word;
    white-space: normal;
}

/* 按钮悬停效果 */
.red-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
    background: linear-gradient(135deg, #0097a7 0%, #00bcd4 100%); /* 反向渐变 */
}

/* 按钮点击效果 */
.red-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* 按钮波纹效果 */
.red-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.red-button:active::after {
    width: 300px;
    height: 300px;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .red-button:active {
        transform: scale(0.98);
    }
}

/* 文字框样式 */
.text-box {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* 文字框悬停效果 */
.text-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 文字样式优化 */
.text-box p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #333333;
    font-size: 16px;
}

.text-box p:last-child {
    margin-bottom: 0;
}

/* 首段文字强调 */
.text-box p:first-child {
    font-weight: 600;
    color: #00bcd4;
    font-size: 18px;
}

/* 背景光线效果容器 */
.drop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* 优化后的金色星星效果样式 */
.gold-star {
    position: absolute;
    /* 更真实的金色渐变，模拟星光 */
    background: radial-gradient(circle,
        rgba(255, 250, 205, 1) 0%,
        rgba(255, 215, 0, 1) 40%,
        rgba(255, 183, 0, 0.8) 70%,
        rgba(255, 255, 255, 0) 100%);
    /* 星星形状（替代圆形） */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    pointer-events: none;
    z-index: 3000;
    /* 多组动画叠加，更自然的闪烁 */
    animation:
        twinkle 4s infinite ease-in-out,
        float 8s infinite ease-in-out,
        rotate 15s infinite linear;
    transform: translateZ(0);
    will-change: opacity, transform, box-shadow;
    /* 增加星光光晕 */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
                0 0 30px rgba(255, 183, 0, 0.4);
}

/* 更细腻的星星闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8) rotate(0deg);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4),
                    0 0 20px rgba(255, 183, 0, 0.2);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    0 0 40px rgba(255, 183, 0, 0.6),
                    0 0 60px rgba(255, 140, 0, 0.4);
    }
    50% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
                    0 0 30px rgba(255, 183, 0, 0.4);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-5deg);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9),
                    0 0 50px rgba(255, 183, 0, 0.7),
                    0 0 70px rgba(255, 140, 0, 0.5);
    }
}

/* 星星漂浮动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(8px);
    }
    50% {
        transform: translateY(-8px) translateX(-5px);
    }
    75% {
        transform: translateY(-12px) translateX(10px);
    }
}

/* 星星缓慢旋转动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 光点脉冲动画 */
@keyframes sparkPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8), 0 0 90px rgba(255, 215, 0, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 215, 0, 0.7);
    }
}

/* 光线浮动动画 */
@keyframes rayFloat {
    0%, 100% {
        transform: rotate(0deg) translateY(0px);
        opacity: 0.3;
    }
    50% {
        transform: rotate(2deg) translateY(-20px);
        opacity: 0.5;
    }
}

/* 页脚 */
.footer {
    display: none;
}

/* 终身保修邮箱激活表单样式 */
.warranty-section {
    margin: 30px 0;
    text-align: center;
    color: #333;
    background-color: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.warranty-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
}
.warranty-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}
.warranty-signup {
    max-width: 480px;
    margin: 0 auto;
}
.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.email-input {
    padding: 12px 16px;
    border: 2px solid #00bcd4;
    border-radius: 8px;
    width: 260px;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.email-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
}
.email-input::placeholder {
    color: #999;
}

/* 响应式设计 */
/* 移动端响应式设计 */
@media (max-width: 650px) {
    .container {
        padding: 30px 10px 20px;
    }

    /* 统一移动端宽度 */
    .buttons-container, .text-box, .warranty-section {
        max-width: 300px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .red-button {
        font-size: 20px;
        padding: 6px 12px;
        min-height: 48px;
        width: 100%;
        background-color: #00bcd4; /* 保持青蓝色背景 */
        color: #ffffff; /* 保持白色文字 */
        border: 1px solid #00bcd4; /* 保持青蓝色边框 */
    }

    .text-box {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
        background-color: rgba(255, 255, 255, 0.85);
    }

    .text-box p {
        font-size: 14px;
        line-height: 1.5;
    }
    /* 移动端星星适配 */
    .gold-star {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                    0 0 20px rgba(255, 183, 0, 0.3);
    }

    /* 移动端背景容器适配 */
    .background-container {
        top: 0;
        height: 100vh;
        background-size: auto;
    }

    /* 移动端订阅表单适配 */
    .email-input {
        width: 100%;
        max-width: 260px;
    }
    .input-group {
        flex-direction: column;
        align-items: center;
    }
}

/* 平板设备响应式设计 */
@media (min-width: 651px) and (max-width: 1024px) {
    .container {
        padding: 30px 15px 20px;
    }

    /* 统一平板端宽度 */
    .buttons-container, .text-box, .warranty-section {
        max-width: 500px;
    }

    /* 平板端保持单列布局以确保宽度一致 */
    .buttons-container {
        flex-direction: column;
    }

    .red-button {
        font-size: 20px;
        padding: 14px 18px;
    }

    /* 平板端背景容器适配 */
    .background-container {
        top: 0;
        height: 100vh;
        background-size: cover;
    }
}
