/* 重置和基础样式 - 基于yy.css设计风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 容器样式 - 现代化设计 */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 头部样式 - 渐变设计 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.main-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.sub-title {
    font-size: 1.2em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: #43ffde;
}

/* 内容区域 */
.content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: -9px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
}

/* 文本区域样式 */
textarea {
    width: 100%;
    min-height: 300px;
    padding: 14px 16px;
    border: 1px solid #a0cfff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    outline: none;
    resize: vertical;
    line-height: 1.5;
}


textarea::placeholder {
    color: #a0a4a8;
    font-size: 13px;
}

/* 文本输入框样式 */
input[type="text"] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #b9a0ff;
    border-radius: 6px;
    background: white;
    outline: none;
}

input[type="text"]::placeholder {
    color: #a0a4a8;
}

/* 移除所有元素的焦点轮廓 */
*:focus {
    outline: none !important;
}

/* 复选框容器样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
}

.checkbox-container input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-container label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

/* 按钮样式 - 现代化设计 */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}



.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 状态消息样式 - 页面居中顶部 */
.status {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    border: 1px solid transparent;
    max-width: 80%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.success {
    background: rgba(14, 173, 2, 0.548);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.589);
}

.error {
    background: rgba(156, 3, 3, 0.712);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.589);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        max-width: 700px;
    }
    
    textarea {
        min-height: 300px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 800px;
    }
    
    textarea {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 1.8em;
    }
    
    .sub-title {
        font-size: 1em;
    }
    
    .content {
        padding: 20px;
    }
    
    textarea,
    input[type="text"] {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .status {
        padding: 14px;
        font-size: 13px;
    }
}


/* 按钮加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
}

/* 表单行样式 - 用于并排显示输入框 */
.form-row {
    display: flex;
    gap: 15px;
}

.form-group-half {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}
