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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50" cy="50" r="50"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="50" cy="50" r="50" fill="url(%23a)"/></svg>') repeat;
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-20px) translateX(-5px); }
    75% { transform: translateY(-10px) translateX(2px); }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
}

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

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

h1 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 400;
}

h2 {
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 视图容器样式 */
.view-container {
    animation: slideIn 0.6s ease-out;
}

.view-container .security-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

.view-container h2 {
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 帮助文本样式 */
.help-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* 提示文本样式 */
.prompt-text {
    text-align: center;
    margin-bottom: 1rem;
    color: #c05621;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

textarea, 
input[type="password"], 
input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

textarea:focus, 
input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.link-container {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.link-container p {
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.link-input-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-input-group input {
    flex: 1;
    min-width: 200px;
}

.link-input-group button {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
}

.message-display {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fc8181;
}

.message-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.6;
    border: none;
    font-family: inherit;
}

.warning {
    color: #c53030;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.status-message {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #bee3f8, #90cdf4);
    color: #2c5282;
}

.password-prompt {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f6ad55;
}

.security-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.fade-enter {
    animation: fadeIn 0.5s ease-out;
}

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

/* 响应式设计 */
@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }

    h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 1rem;
    }

    .link-input-group {
        flex-direction: column;
    }

    .link-input-group input,
    .link-input-group button {
        min-width: 100%;
    }

    textarea, 
    input[type="password"], 
    input[type="text"] {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    textarea {
        min-height: 100px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
