/* 未来科技风格样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.input-box-textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* 新增全息投影背景样式 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 24%, rgba(0, 240, 255, 0.05) 25%, rgba(0, 240, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.05) 75%, rgba(0, 240, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 240, 255, 0.05) 25%, rgba(0, 240, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.05) 75%, rgba(0, 240, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

/* 新增扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 240, 255, 0.03) 50%, 
        rgba(0, 0, 0, 0) 100%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    animation: scanline 6s linear infinite;
}

/* 新增四角装饰边框 */
.container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-radius: 2px;
}

/* 新增粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

/* 未来科技风格CSS变量 */
:root {
    --primary: #00f0ff;
    --primary-dark: #0066ff;
    --background: #0a0e17;
    --text: #e0f7ff;
    --card: rgba(16, 24, 48, 0.8);
    --shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    --slider-bg: rgba(0, 96, 255, 0.2);
    --slider-text: #a0e0ff;
    --toast-bg: rgba(10, 14, 23, 0.95);
    --toast-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    --animation-curve: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.8);
    --neon-glow-hover: 0 0 20px rgba(0, 240, 255, 1);
    --border-glow: 1px solid rgba(0, 240, 255, 0.5);
    --border-glow-focus: 1px solid rgba(0, 240, 255, 1);
    --text-glow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* 未来科技主题样式 */
body.dark {
    --primary: #9d00ff;
    --primary-dark: #6a00ff;
    --background: #0a0a1a;
    --text: #f0e5ff;
    --card: rgba(26, 16, 48, 0.8);
    --shadow: 0 0 15px rgba(157, 0, 255, 0.3);
    --slider-bg: rgba(106, 0, 255, 0.2);
    --slider-text: #d0b0ff;
    --neon-glow: 0 0 10px rgba(157, 0, 255, 0.8);
    --neon-glow-hover: 0 0 20px rgba(157, 0, 255, 1);
    --border-glow: 1px solid rgba(157, 0, 255, 0.5);
    --border-glow-focus: 1px solid rgba(157, 0, 255, 1);
    --text-glow: 0 0 8px rgba(157, 0, 255, 0.8);
}

body.warm {
    --primary: #ff6d00;
    --primary-dark: #ff3d00;
    --background: #170a0a;
    --text: #ffe0d0;
    --card: rgba(48, 24, 16, 0.8);
    --shadow: 0 0 15px rgba(255, 109, 0, 0.3);
    --slider-bg: rgba(255, 61, 0, 0.2);
    --slider-text: #ffc0a0;
    --neon-glow: 0 0 10px rgba(255, 109, 0, 0.8);
    --neon-glow-hover: 0 0 20px rgba(255, 109, 0, 1);
    --border-glow: 1px solid rgba(255, 109, 0, 0.5);
    --border-glow-focus: 1px solid rgba(255, 109, 0, 1);
    --text-glow: 0 0 8px rgba(255, 109, 0, 0.8);
}

/* 未来科技基础布局 */
body {
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    touch-action: manipulation;
    color: var(--text);
    transition: all 0.3s var(--animation-curve);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.1) 0%, transparent 20%);
}

html {
    height: -webkit-fill-available;
}

/* 未来科技容器样式 */
.container {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    border-radius: 16px;
    padding: min(25px, 5vw);
    box-shadow: var(--shadow);
    transition: all 0.3s var(--animation-curve);
    margin: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--border-glow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(0, 240, 255, 0.3),
        inset 0 0 15px rgba(0, 240, 255, 0.2);
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(0, 240, 255, 0) 0%,
        rgba(0, 240, 255, 0) 45%,
        rgba(0, 240, 255, 0.05) 50%,
        rgba(0, 240, 255, 0) 55%,
        rgba(0, 240, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 5s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
    100% {
        transform: rotate(30deg) translate(30%, 30%);
    }
}

h1, .notify-btn, .history-badge {
    font-family: 'Orbitron', sans-serif;
}

/* 新增动画 */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 新增粒子动画 */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5px, 5px);
    }
    50% {
        transform: translate(10px, 0);
    }
    75% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes fade {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.8;
    }
}

/* 未来科技标题样式 */
h1 {
    font-size: clamp(24px, 5vw, 28px);
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s var(--animation-curve) infinite;
    will-change: transform;
    position: relative;
    text-shadow: var(--text-glow);
    letter-spacing: 1px;
    font-weight: 700;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    animation: titleUnderline 2s var(--animation-curve) infinite;
    box-shadow: var(--neon-glow);
}

h1 img {
    vertical-align: middle;
    height: 1.2em;
    margin-bottom: 0.2em;
}

/* 未来科技表单元素样式 */
.select-box {
    width: 100%;
    padding: 12px;
    border: var(--border-glow);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    transition: all 0.3s var(--animation-curve);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    box-shadow: var(--neon-glow);
}

.select-box:focus {
    outline: none;
    border: var(--border-glow-focus);
    box-shadow: var(--neon-glow-hover);
    transform: translateY(-2px);
}

.select-box option {
    padding: 12px;
    font-size: 16px;
    background: var(--card);
    color: var(--text);
}

.select-box option[value="low"] {
    color: #00f0ff;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), transparent);
}

.select-box option[value="medium"] {
    color: #ffcc00;
    background: linear-gradient(45deg, rgba(255, 204, 0, 0.1), transparent);
}

.select-box option[value="high"] {
    color: #ff3366;
    background: linear-gradient(45deg, rgba(255, 51, 102, 0.1), transparent);
}

/* 未来科技文本框样式 */
.input-box-textarea {
    width: 100%;
    padding: 15px;
    border: var(--border-glow);
    border-radius: 12px;
    font-size: 16px;
    min-height: 120px;
    margin-bottom: 20px;
    resize: none;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    transition: all 0.3s var(--animation-curve);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: var(--neon-glow);
}

.input-box-textarea:focus {
    outline: none;
    border: var(--border-glow-focus);
    box-shadow: var(--neon-glow-hover);
    transform: translateY(-2px);
}

/* 未来科技按钮样式 */
.notify-btn {
    width: 100%;
    height: 50px;
    background: var(--slider-bg);
    color: var(--slider-text);
    border: var(--border-glow);
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--animation-curve);
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    box-shadow: var(--neon-glow);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 50px;
}

.notify-btn span {
    flex: 1;
    text-align: center;
    text-shadow: var(--text-glow);
}

.notify-btn::before {
    content: none;
}

.notify-btn:active {
    transform: scale(0.98);
}

/* 未来科技滑块样式 */
.call-slider {
    width: 100%;
    height: 50px;
    background: var(--slider-bg);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--animation-curve);
    touch-action: none;
    margin-bottom: 15px;
    border: var(--border-glow);
    box-shadow: var(--neon-glow);
}

.call-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slider-text);
    font-size: 16px;
    z-index: 1;
    transition: opacity 0.3s var(--animation-curve);
    pointer-events: none;
    text-shadow: var(--text-glow);
    letter-spacing: 1px;
}

.call-text span {
    flex: 1;
    text-align: center;
    text-shadow: var(--text-glow);
}

.call-handle {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 46px;
    height: 46px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border-radius: 23px;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.1), inset -2px -5px 10px rgba(255, 255, 255, 1), 15px 15px 10px rgba(0, 0, 0, 0.05), 15px 10px 15px rgba(0, 0, 0, 0.025);
    transition: all 0.3s var(--animation-curve);
    will-change: transform;
}

.call-handle::after {
    content: '📞';
    animation: handlePulse 1.5s infinite;
    will-change: transform;
}

.call-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(0, 240, 255, 0.1),
        rgba(0, 102, 255, 0.3));
    transition: width 0.1s linear;
    will-change: width;
}

/* 未来科技主题切换按钮样式 */
.theme-toggles {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 100;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 16px;
    background: var(--card);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-glow);
    transition: all 0.3s var(--animation-curve);
    -webkit-tap-highlight-color: transparent;
    border: var(--border-glow);
}

.theme-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--neon-glow-hover);
}

.theme-btn.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--neon-glow-hover);
}

/* 未来科技Toast提示样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--animation-curve);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-container.show {
    opacity: 1;
    visibility: visible;
}

.toast-content {
    background: var(--toast-bg);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: min(300px, 90vw);
    max-width: 90%;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--animation-curve);
    box-shadow: var(--toast-shadow);
    border: var(--border-glow);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.toast-container.show .toast-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--neon-glow);
}

.toast-success {
    position: relative;
    width: 40px;
    height: 40px;
}

.toast-success::before,
.toast-success::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
    box-shadow: var(--text-glow);
}

.toast-success::before {
    width: 3px;
    height: 20px;
    transform: rotate(45deg);
    right: 10px;
    top: 5px;
    animation: successLong 0.4s ease-in;
}

.toast-success::after {
    width: 30px;
    height: 3px;
    transform: rotate(45deg);
    left: 5px;
    top: 22px;
    animation: successShort 0.4s ease-out;
}

.toast-error {
    position: relative;
    width: 32px;
    height: 32px;
}

.toast-error::before,
.toast-error::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 3px;
    background: white;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    box-shadow: var(--text-glow);
}

.toast-error::before {
    transform: translate(-50%, -50%) rotate(45deg);
    animation: errorLeft 0.4s ease-in;
}

.toast-error::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: errorRight 0.4s ease-in;
}

.toast-loading {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.toast-message {
    color: var(--text);
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
    animation: messageSlide 0.3s var(--animation-curve);
    text-shadow: var(--text-glow);
}

/* 未来科技历史记录样式 */
.history-toggle {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: var(--border-glow);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s var(--animation-curve);
    margin-top: 15px;
    color: var(--text);
    box-shadow: var(--neon-glow);
}

.history-toggle:hover {
    border: var(--border-glow-focus);
    box-shadow: var(--neon-glow-hover);
}

.history-list {
    margin-top: 15px;
    display: none;
}

.history-list.show {
    display: block;
    animation: slideDown 0.3s var(--animation-curve);
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    border: var(--border-glow);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    color: var(--text);
    box-shadow: var(--neon-glow);
    transition: all 0.3s var(--animation-curve);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow-hover);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    box-shadow: var(--neon-glow);
}

.history-badge.low { background: #00f0ff; }
.history-badge.medium { background: #ffcc00; }
.history-badge.high { background: #ff3366; }

.history-time {
    font-size: 12px;
    color: var(--slider-text);
    margin-top: 8px;
    text-shadow: var(--text-glow);
}

/* 未来科技动画 */
@keyframes borderPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 10px var(--primary); }
    50% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 20px var(--primary); }
}

@keyframes titleUnderline {
    0%, 100% { width: 50px; opacity: 0.5; }
    50% { width: 100px; opacity: 1; }
}

@keyframes handlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 5px var(--primary)); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes successLong {
    0% { transform: rotate(45deg) scale(0); }
    100% { transform: rotate(45deg) scale(1); }
}

@keyframes successShort {
    0% { transform: rotate(45deg) scale(0); }
    100% { transform: rotate(45deg) scale(1); }
}

@keyframes errorLeft {
    0% { transform: translate(-50%, -50%) rotate(45deg) scaleX(0); }
    100% { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
}

@keyframes errorRight {
    0% { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
    100% { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
}

@keyframes messageSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 未来科技响应式设计 */
@media (max-width: 480px) {
    .container {
        border-radius: 12px;
    }

    .notify-btn {
        padding: 12px;
        font-size: 16px;
    }

    .call-slider {
        height: 46px;
    }

    .call-handle {
        width: 42px;
        height: 42px;
    }

    .toast-content {
        padding: 20px;
    }
    
    .theme-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .theme-toggles {
        top: 8px;
        right: 8px;
        gap: 4px;
    }
}

.foot {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            text-align: center;
            padding: 15px 0;
            background: rgba(5, 5, 20, 0.8);
            backdrop-filter: blur(5px);
            border-top: 1px solid rgba(0, 255, 252, 0.2);
            z-index: 100;
        }
        
        .power {
            font-family: 'Orbitron', sans-serif;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            letter-spacing: 1px;
        }
        
        .power a {
            color: var(--neon-blue);
            text-decoration: none;
            transition: all 0.3s ease;
            text-shadow: 0 0 5px var(--neon-blue);
        }
        
        .power a:hover {
            color: var(--neon-pink);
            text-shadow: 0 0 10px var(--neon-pink);
        }