
/**
 * Daily Watch SRE&AI - 样式表
 * Author: liqian_liukaining
 * Date: 2025-02-16
 * Description: 项目主样式文件，包含所有页面布局和组件样式
 */

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

html {
    height: 100%;
    font-size: 16px;
    line-height: 1.5;
}

/* 基础布局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100%;
    background: #f9fafb;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1e40af;
    color: white;
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.current-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.article-count {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* 主容器样式 */
.container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
}

.left-panel {
    width: 360px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
    overflow: hidden;
}

/* 搜索区域样式 */
.header-actions {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-btn {
    height: 40px;
    padding: 0 20px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 文章列表样式 */
.article-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.date-group {
    border-bottom: 1px solid #e5e7eb;
}

.date-header {
    padding: 12px 20px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-header.today {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 600;
}

.date-header.today .date {
    color: #ea580c;
}

.date-header.today .toggle-icon {
    color: #ea580c;
}

.date {
    font-weight: 500;
    color: #374151;
}

.toggle-icon {
    color: #6b7280;
    transition: transform 0.3s;
}

.date-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.article-group {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.date-group.collapsed .article-group {
    max-height: 0;
}

.article-item {
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    margin: 8px 12px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #edf2f7;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
    background: #f8fafc;
}

.article-item.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.article-title {
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 450;
    letter-spacing: 0.2px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.article-meta .source {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.created-time {
    color: #999;
    font-size: 12px;
}

/* 搜索区域 */
.header-actions {
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.search-btn {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.article-item:hover {
    background: #fafafa;
}

.article-item.active {
    background: #f0f7ff;
    border-left: 2px solid #1e40af;
    padding-left: 14px;
}

.article-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.source {
    color: #666;
}

.created-time {
    color: #999;
}

.toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.date-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.article-group {
    transition: all 0.3s ease;
}

.date-group.collapsed .article-group {
    display: none;
}

.article-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.article-item:hover {
    background: #f6f6f6;
}

.article-item.active {
    background: #e6f7ff;
    border-left: 3px solid #1890ff;
}

.article-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 分页控件 */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.page-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: #fff;
    background: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.page-info {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
}

/* 底部信息 */
.footer-info {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #999;
}

.project-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.footer-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #2563eb;
}

.footer-info .author {
    font-weight: 500;
    color: #475569;
}

/* 中间面板 */
.middle-panel {
    flex: 1;
    position: relative;
    min-width: 0;
    background: #fff;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载动画样式 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e6e6e6;
    border-top: 5px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* 删除重复的样式定义 */
.article-item,
.article-title,
.article-meta,
.source,
.created-time,
.toggle-icon {
    /* 保留前面定义的样式 */
}

/* 删除重复的动画定义 */
@keyframes spin {
    /* 保留一个定义 */
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e6e6e6;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 右侧面板 */
.right-panel {
    width: 350px;
    min-width: 350px;
    border-left: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.summary-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.summary-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.summary-btn {
    width: 100%;
    padding: 10px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.summary-btn:hover {
    background: #40a9ff;
}

.summary-btn:disabled {
    background: #bae7ff;
    cursor: not-allowed;
}

.summary-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.comment-section {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
}

.comment-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.count-number {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: 700;
    padding: 0 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qrcode-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    margin-top: 20px;
}

.qrcode-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    margin-top: 20px;
}

.qrcode-section {
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.qrcode-section h3 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}

.qrcode-container {
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
}

.qrcode-container img:hover {
    transform: scale(1.02);
}

.article-item:hover {
    background: #fafafa;
}

.article-item.active {
    background: #f0f7ff;
    border-left: 2px solid #1e40af;
    padding-left: 14px;
}

.article-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.source {
    color: #666;
}

.created-time {
    color: #999;
}

.toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.date-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.article-group {
    transition: all 0.3s ease;
}

.date-group.collapsed .article-group {
    display: none;
}

.article-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.article-item:hover {
    background: #f6f6f6;
}

.article-item.active {
    background: #e6f7ff;
    border-left: 3px solid #1890ff;
}

.article-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 分页控件 */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.page-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: #fff;
    background: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.page-info {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
}

/* 底部信息 */
.footer-info {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #999;
}

.project-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.footer-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #2563eb;
}

.footer-info .author {
    font-weight: 500;
    color: #475569;
}

/* 中间面板 */
.middle-panel {
    flex: 1;
    position: relative;
    min-width: 0;
    background: #fff;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载动画样式 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e6e6e6;
    border-top: 5px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* 删除重复的样式定义 */
.article-item,
.article-title,
.article-meta,
.source,
.created-time,
.toggle-icon {
    /* 保留前面定义的样式 */
}

/* 删除重复的动画定义 */
@keyframes spin {
    /* 保留一个定义 */
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e6e6e6;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 右侧面板 */
.right-panel {
    width: 350px;
    min-width: 350px;
    border-left: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.summary-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.summary-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.summary-btn {
    width: 100%;
    padding: 10px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.summary-btn:hover {
    background: #40a9ff;
}

.summary-btn:disabled {
    background: #bae7ff;
    cursor: not-allowed;
}

.summary-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.comment-section {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
}

.comment-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.count-number {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: 700;
    padding: 0 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qrcode-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.qrcode-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.qrcode-container img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qrcode-container img:hover {
    transform: scale(1.02);
}

.article-item:hover {
    background: #fafafa;
}

.article-item.active {
    background: #f0f7ff;
    border-left: 2px solid #1e40af;
    padding-left: 14px;
}

.article-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.source {
    color: #666;
}

.created-time {
    color: #999;
}

.toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.date-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.article-group {
    transition: all 0.3s ease;
}

.date-group.collapsed .article-group {
    display: none;
}

.article-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.article-item:hover {
    background: #f6f6f6;
}

.article-item.active {
    background: #e6f7ff;
    border-left: 3px solid #1890ff;
}

.article-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 分页控件 */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.page-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: #fff;
    background: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.page-info {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
}

/* 底部信息 */
.footer-info {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #999;
}

.project-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.footer-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #2563eb;
}

.footer-info .author {
    font-weight: 500;
    color: #475569;
}

/* 中间面板 */
.middle-panel {
    flex: 1;
    position: relative;
    min-width: 0;
    background: #fff;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载动画样式 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e6e6e6;
    border-top: 5px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* 删除重复的样式定义 */
.article-item,
.article-title,
.article-meta,
.source,
.created-time,
.toggle-icon {
    /* 保留前面定义的样式 */
}

/* 删除重复的动画定义 */
@keyframes spin {
    /* 保留一个定义 */
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e6e6e6;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 右侧面板 */
.right-panel {
    width: 350px;
    min-width: 350px;
    border-left: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.summary-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.summary-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.summary-btn {
    width: 100%;
    padding: 10px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.summary-btn:hover {
    background: #40a9ff;
}

.summary-btn:disabled {
    background: #bae7ff;
    cursor: not-allowed;
}

.summary-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.comment-section {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
}

.comment-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.count-number {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: 700;
    padding: 0 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
