/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.card h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 表单样式 */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    color: #718096;
    font-size: 0.85rem;
}

/* 字符计数 */
.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #718096;
}

/* 过期时间设置 */
.expire-time-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-input-group input {
    flex: 1;
    max-width: 120px;
}

.time-input-group select {
    flex: 1;
    max-width: 100px;
}

.quick-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.quick-label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 600;
    margin-right: 5px;
}

.quick-btn {
    padding: 4px 12px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.quick-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-limit-info {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    padding: 8px;
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 4px;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.sub-option {
    margin-left: 28px;
    margin-top: 10px;
}

.sub-option input {
    max-width: 200px;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-copy {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-copy {
    background: #38a169;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background: #2f855a;
}

.btn-loading {
    opacity: 0.7;
}

/* 结果区域 */
.result-section {
    margin-top: 20px;
    padding: 20px;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #9ae6b4;
}

.result-section h3 {
    color: #22543d;
    margin-bottom: 15px;
}

.id-container {
    margin-bottom: 15px;
}

.id-display {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c6f6d5;
}

.id-display label {
    display: block;
    font-weight: 600;
    color: #22543d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.id-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.id-value span {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
}

.btn-copy-small {
    padding: 6px 12px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-copy-small:hover {
    background: #2f855a;
}

.result-info {
    color: #22543d;
    font-size: 0.9rem;
}

.result-info p {
    margin-bottom: 5px;
}

/* 信息卡片 */
.info-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.feature-list li {
    padding: 8px 0;
    color: #4a5568;
}

/* 消息信息 */
.message-info {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.message-info p {
    margin-bottom: 5px;
    color: #4a5568;
}

.message-info-inline {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #718096;
}

.message-info-inline span {
    white-space: nowrap;
}

/* 消息显示 */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-info {
    font-size: 0.9rem;
    color: #718096;
}

.message-content {
    margin-bottom: 20px;
}

.message-text {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 错误和警告 */
.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 5px;
}

.error-section {
    margin-top: 20px;
    padding: 20px;
    background: #fed7d7;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.error-content {
    text-align: center;
}

.error-content h3 {
    color: #c53030;
    margin-bottom: 10px;
}

.error-text {
    color: #c53030;
    margin: 15px 0;
    font-size: 1.1rem;
}

.destroyed-card {
    background: #fbb6ce;
    border: 1px solid #f687b3;
}

.destroyed-content {
    text-align: center;
}

.warning-notice,
.security-notice {
    margin-top: 15px;
    padding: 10px;
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #744210;
}

.security-notice {
    background: #e6fffa;
    border-color: #81e6d9;
    color: #234e52;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    opacity: 0.8;
}

.footer p {
    margin-bottom: 5px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .message-actions {
        flex-direction: column;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
    }
}
