/* 雨云优惠券页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3d4a5c 50%, #5a6b7a 75%, #6c7b8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 云朵背景 */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(140, 150, 160, 0.4);
    border-radius: 50px;
    opacity: 0.8;
    animation: float 20s infinite linear;
    box-shadow: 0 0 20px rgba(100, 110, 120, 0.3);
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: rgba(140, 150, 160, 0.3);
    border-radius: 50px;
}

.cloud:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
    box-shadow: 0 0 15px rgba(100, 110, 120, 0.2);
}

.cloud:after {
    width: 60px;
    height: 60px;
    top: -35px;
    right: 15px;
    box-shadow: 0 0 15px rgba(100, 110, 120, 0.2);
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation-duration: 25s;
}

.cloud2 {
    width: 80px;
    height: 30px;
    top: 40%;
    left: -80px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.cloud3 {
    width: 120px;
    height: 50px;
    top: 60%;
    left: -120px;
    animation-duration: 35s;
    animation-delay: -20s;
}

@keyframes float {
    0% {
        left: -200px;
    }
    100% {
        left: 100%;
    }
}

/* 雨滴效果 */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.raindrop {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, rgba(180, 200, 220, 0.8), rgba(150, 170, 190, 0.3));
    border-radius: 1px;
    animation: fall linear infinite;
    box-shadow: 0 0 3px rgba(180, 200, 220, 0.4);
}

@keyframes fall {
    0% {
        top: -100px;
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0.1;
    }
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 450px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 2em;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 1em;
}

.coupon-code {
    background: #f8f9fa;
    border: 3px dashed #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.code {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
    font-family: monospace;
    letter-spacing: 3px;
}

/* 立即注册按钮样式 */
.btn {
    --width: 180px;
    --height: 50px;
    --tooltip-height: 35px;
    --tooltip-width: 120px;
    --gap-between-tooltip-to-button: 18px;
    --button-color: #1163ff;
    --tooltip-color: #fff;
    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    position: relative;
    text-align: center;
    border-radius: 0.45em;
    font-family: "Arial";
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn::before {
    position: absolute;
    content: "首月5折优惠";
    width: var(--tooltip-width);
    height: var(--tooltip-height);
    background-color: var(--tooltip-color);
    font-size: 0.9rem;
    color: #111;
    border-radius: .25em;
    line-height: var(--tooltip-height);
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
    left: calc(50% - var(--tooltip-width) / 2);
}

.btn::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--tooltip-color);
    left: calc(50% - 10px);
    bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.btn::after,
.btn::before {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wrapper,
.btn-text,
.btn-icon {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    color: #fff;
}

.btn-text {
    top: 0;
    font-weight: bold;
    font-size: 1rem;
}

.btn-text,
.btn-icon {
    transition: top 0.5s;
}

.btn-icon {
    color: #fff;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

.btn:hover {
    background: #6c18ff;
}

.btn:hover .btn-text {
    top: -100%;
}

.btn:hover .btn-icon {
    top: 0;
}

.btn:hover::before,
.btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.btn:hover::after {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.btn:hover::before {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

/* 复制按钮样式 */
.copy-btn {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    color: #0f1923;
    cursor: pointer;
    position: relative;
    padding: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: all .15s ease;
}

.copy-btn::before,
.copy-btn::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    height: calc(50% - 5px);
    border: 1px solid #7D8082;
    transition: all .15s ease;
}

.copy-btn::before {
    top: 0;
    border-bottom-width: 0;
}

.copy-btn::after {
    bottom: 0;
    border-top-width: 0;
}

.copy-btn:active,
.copy-btn:focus {
    outline: none;
}

.copy-btn:active::before,
.copy-btn:active::after {
    right: 3px;
    left: 3px;
}

.copy-btn:active::before {
    top: 3px;
}

.copy-btn:active::after {
    bottom: 3px;
}

.copy-btn-lg {
    position: relative;
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: #0f1923;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
}

.copy-btn-lg::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background-color: #0f1923;
}

.copy-btn-lg::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 4px;
    height: 4px;
    background-color: #0f1923;
    transition: all .2s ease;
}

.copy-btn-sl {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #ff4655;
    transform: skew(-15deg);
    transition: all .2s ease;
}

.copy-btn-text {
    position: relative;
}

.copy-btn:hover {
    color: #0f1923;
}

.copy-btn:hover .copy-btn-sl {
    width: calc(100% + 15px);
}

.copy-btn:hover .copy-btn-lg::after {
    background-color: #fff;
}

.copy-btn.copied .copy-btn-sl {
    background-color: #28a745;
}

/* 其他样式 */
.back-btn {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.notice {
    background: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .code {
        font-size: 1.4em;
    }
}
