/* 账号信息管理系统样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    width: 100%;
}

.btn-secondary {
    background: #6c757d;
    margin-left: 10px;
}

.btn-danger {
    background: #dc3545;
}

/* 主页面样式 */
.header {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

.search-container {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container .form-control {
    flex: 1;
}

.search-container .btn {
    white-space: nowrap;
}

/* 结果列表样式 */
.results-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.results-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.results-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.result-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f8f9fa;
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.result-details {
    flex: 1;
}

.result-details h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.result-details p {
    color: #666;
    margin-bottom: 3px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

/* 详情页面样式 */
.detail-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.detail-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.detail-content {
    padding: 30px;
}

.info-module {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.info-module h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: 500;
    color: #555;
    min-width: 120px;
    margin-right: 15px;
}

.info-value {
    color: #333;
    flex: 1;
}

.empty-module {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* 编辑表单样式 */
.edit-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.edit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.edit-content {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 提示消息样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .result-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-actions {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 5px;
        min-width: auto;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 新的搜索结果布局样式 */
.result-row-1 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-row-1 h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.result-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.result-meta-inline {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.result-meta .operator,
.result-meta .location,
.result-meta-inline .operator,
.result-meta-inline .location {
    white-space: nowrap;
}

.result-row-2 {
    margin-bottom: 10px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.platform-tag .platform-icon {
    margin-right: 4px;
    font-size: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* 小红书 - 红色 */
.platform-tag.xiaohongshu {
    background: linear-gradient(135deg, #fe2c55 0%, #ff6b6b 100%);
    border: 1px solid rgba(254, 44, 85, 0.3);
}

/* 微信 - 绿色 */
.platform-tag.wechat {
    background: linear-gradient(135deg, #07c160 0%, #00d4aa 100%);
    border: 1px solid rgba(7, 193, 96, 0.3);
}

/* 视频号 - 黄色 */
.platform-tag.video {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc5c 100%);
    border: 1px solid rgba(255, 179, 71, 0.3);
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* 抖音 - 黑色 */
.platform-tag.douyin {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.result-remarks {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    border-left: 3px solid #dee2e6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .result-row-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-meta,
    .result-meta-inline {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .platform-tags {
        gap: 6px;
    }
    
    .platform-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .platform-tag .platform-icon {
        font-size: 12px;
        margin-right: 3px;
    }
} 