/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

/* 输入框样式 */
.input-field {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
    outline: none;
}

/* 通用按钮样式 */
.btn, .fancy-btn {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    margin: 15px auto;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn:hover, .fancy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #1976D2, #388E3C);
}

.btn:active, .fancy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 二维码容器 */
#qrcode {
    margin: 20px auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* 工具栏按钮特殊样式 */
.tools-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tools-section .fancy-btn {
    background: linear-gradient(45deg, #FF5722, #FF9800);
    font-size: 15px;
    padding: 10px 20px;
    margin: 10px;
    min-width: 180px;
}

.tools-section .fancy-btn:hover {
    background: linear-gradient(45deg, #F4511E, #FB8C00);
}

/* 生成按钮特殊样式 */
#generateBtn {
    background: linear-gradient(45deg, #3F51B5, #2196F3);
    font-size: 18px;
    padding: 14px 28px;
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 300px;
}

#generateBtn:hover {
    background: linear-gradient(45deg, #303F9F, #1976D2);
}

/* 按钮波纹效果 */
.btn::after, .fancy-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after, .fancy-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 复制按钮特殊样式 */
#copyBtn, #copyAllBtn {
    background: linear-gradient(45deg, #009688, #4CAF50);
    font-size: 15px;
    padding: 10px 20px;
}

#copyBtn:hover, #copyAllBtn:hover {
    background: linear-gradient(45deg, #00796B, #388E3C);
}

/* 复制成功动画 */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease-in-out;
}

/* 复制状态提示 */
#copyStatus {
    color: #4CAF50;
    font-weight: 500;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

/* 批量转换文本框 */
#linksInput {
    min-height: 120px;
    resize: vertical;
} 