/* 页面英雄区域 */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 主内容区域 */
.main-content {
    padding: 30px 0;
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
}

.douyinpinglun-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.cp-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #888;
    margin: 4px 0 0;
}

/* 输入区域 */
.input-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 48px;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: #888;
    margin-right: 12px;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #aaa;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 48px;
}

.cp-btn svg {
    width: 18px;
    height: 18px;
}

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

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

.cp-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cp-btn-secondary:hover:not(:disabled) {
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cp-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.cp-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.cp-btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.cp-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.cp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 登录提示 */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 10px;
    font-weight: 600;
    border: 1px dashed #ef4444;
}

.login-prompt svg {
    width: 18px;
    height: 18px;
}

/* 消息提示 */
.cp-message-box {
    margin: 0 24px 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.cp-message-success {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border-left: 4px solid #48bb78;
}

.cp-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.cp-message-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

/* 表格样式 */
.list-content {
    padding: 24px;
    overflow-x: auto;
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cp-table th,
.cp-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.cp-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.cp-table tbody tr {
    transition: background-color 0.2s ease;
}

.cp-table tbody tr:hover {
    background: #fafafa;
}

.cp-table tbody tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.data-count {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-detail {
    background: #e0e7ff;
    color: #4338ca;
}

.action-detail:hover {
    background: #c7d2fe;
}

.action-update {
    background: #dcfce7;
    color: #16a34a;
}

.action-update:hover {
    background: #bbf7d0;
}

.action-delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-delete:hover {
    background: #fecaca;
}

/* 空状态、加载状态、错误状态 */
.empty-state,
.loading-state,
.error-state {
    text-align: center;
    padding: 40px 20px !important;
    color: #888;
}

.empty-state svg,
.loading-state svg,
.error-state svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
}

.empty-state p,
.loading-state p,
.error-state p {
    margin: 0;
    font-size: 15px;
}

.error-state {
    color: #ef4444;
}

.error-state svg {
    color: #ef4444;
}

/* 加载动画 */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 功能说明区域 */
.info-content {
    padding: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    color: #fff;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 注意事项 */
.note-box {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #f59e0b;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.note-header svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.note-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin: 0;
}

.note-box ul {
    margin: 0;
    padding-left: 20px;
}

.note-box li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.note-box li:last-child {
    margin-bottom: 0;
}

/* 弹窗遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* 确认框 */
.confirm-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.confirm-header svg {
    width: 50px;
    height: 50px;
    color: #ef4444;
    margin-bottom: 12px;
}

.confirm-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.confirm-box p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 详情弹窗 */
.detail-box {
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-title-section {
    flex: 1;
}

.detail-title-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.detail-legend {
    display: flex;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.legend-color {
    width: 12px;
    height: 12px;
    background: rgba(249, 168, 212, 0.5);
    border-radius: 2px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.export-error {
    font-size: 12px;
    color: #ef4444;
}

.close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.detail-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.detail-table {
    max-height: 400px;
    overflow-y: auto;
}

.detail-table th,
.detail-table td {
    padding: 12px;
}

.detail-table .comment-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 今日记录样式 */
.today-record {
    background: rgba(249, 168, 212, 0.3);
}

.today-record td {
    border-bottom-color: rgba(249, 168, 212, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .cp-card-header {
        padding: 16px;
    }
    
    .input-section {
        padding: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .info-content {
        padding: 16px;
    }
    
    .list-content {
        padding: 16px;
        overflow-x: auto;
    }
    
    .cp-table {
        min-width: 700px;
    }
    
    .table-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .detail-header {
        padding: 16px;
    }
    
    .detail-content {
        padding: 16px;
    }
    
    .confirm-box {
        padding: 20px;
    }
}