/* Unix时间工具页面样式 */

/* 主要内容区容器 */
.container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto 40px;
    padding: 0 20px;
    align-items: flex-start;
}

/* 主内容区 */
.main-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #f0f0f0;
    width: 100%;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    margin-top: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* 标题样式 */
h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00c48c;
    border-bottom: 2px solid #e6f7ff;
    padding-bottom: 8px;
}

/* 提示区域 */
.note {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #00c48c;
    transition: all 0.3s ease;
}

.note:hover {
    background-color: #f0f7f5;
    box-shadow: 0 2px 10px rgba(0, 196, 140, 0.1);
}

/* 标签样式 */
label {
    font-weight: 500;
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
}

/* 输入框容器 */
.code-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* 输入框样式 */
.input-text {
    flex: 1;
    /*height: 52px;*/
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.input-text:focus {
    outline: none;
    border-color: #00c48c;
    box-shadow: 0 0 0 3px rgba(0, 196, 140, 0.1);
}

.input-text::placeholder {
    color: #999;
}

/* 输出框样式 */
.output-text {
    flex: 1;
    /* height: 52px; */
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #f8f9fa;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    resize: none;
    transition: all 0.3s ease;
}

/* 操作按钮容器 */
.operation-btns {
    margin-left: 10px;
    display: flex;
    gap: 8px;
}

/* 按钮样式 */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success {
    background-color: #00c48c;
    color: #fff;
}

.btn-success:hover {
    background-color: #00b37d;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background-color: #ff7875;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: #fff;
    color: #00c48c;
    border: 2px solid #00c48c;
}

.btn-outline:hover {
    background-color: #00c48c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.2);
}

/* 时间戳单位选择组 */
.timestamp-unit-group {
    margin: 12px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.timestamp-unit-group input[type="radio"] {
    margin-right: 6px;
    accent-color: #00c48c;
}

.timestamp-unit-group label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.timestamp-unit-group label:hover {
    color: #00c48c;
}

/* 日期输入组 */
.date-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.date-input-group input {
    width: 85px;
    height: 42px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    transition: all 0.3s ease;
    background-color: #fff;
}

.date-input-group input:focus {
    outline: none;
    border-color: #00c48c;
    box-shadow: 0 0 0 3px rgba(0, 196, 140, 0.1);
    transform: translateY(-1px);
}

.date-input-group span {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.date-input-group .btn {
    margin-left: 8px;
}

/* 功能按钮区域 */
.function-buttons {
    margin-top: 30px;
    /* padding-top: 25px;
    border-top: 2px solid #f0f0f0; */
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 当前时间显示区 */
.current-time-display {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #f0f0f0;
}

.current-time-display h4 {
    color: #00c48c;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* 时间网格布局 */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.time-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.time-item:hover {
    background-color: #f0f7f5;
    border-color: #00c48c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 196, 140, 0.1);
}

.time-item strong {
    color: #333;
    margin-right: 10px;
    font-weight: 600;
}

.time-item span {
    color: #555;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

.current-time-display p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

.current-time-display strong {
    color: #333;
    margin-right: 10px;
}

/* 工具介绍区 */
.tool-intro {
    max-width: 1400px;
    margin: 30px auto;
    /* padding: 0 20px; */
}

.tool-intro-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.tool-intro h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
}

.tool-intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.tool-intro ul,
.tool-intro ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.tool-intro li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

/* 热门工具列表 */
.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-list li {
    margin-bottom: 12px;
}

.tool-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tool-list li a:hover {
    background-color: #f0f7f5;
    color: #00c48c;
    transform: translateX(5px);
}

.tool-list li i {
    color: #00c48c;
    width: 18px;
    text-align: center;
}

/* 更多推荐工具 */
.more-recommendations {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.more-recommendations > div {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tool-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tool-item:hover {
    background-color: #f0f7f5;
    border-color: #00c48c;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 196, 140, 0.15);
}

.tool-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.tool-item i {
    color: #00c48c;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.success {
    background-color: #52c41a;
}

.message-toast.error {
    background-color: #ff4d4f;
}

.message-toast.info {
    background-color: #1890ff;
}

/* 输出区域样式 */
.output-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #f0f0f0;
}

/* 输出区域标题 */
.section-header {
    /*border-bottom: 2px solid #f0f0f0;*/
    /*padding-bottom: 15px;*/
    margin-bottom: 25px;
}

.section-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* 统计数据区域 */
.stats {
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: #f0f7f5;
    border-color: #00c48c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #00c48c;
    margin-bottom: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 结果表格样式 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.results-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表格列样式 */
.keyword-column {
    width: 30%;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.count-column {
    width: 20%;
    text-align: center;
    font-weight: 600;
    color: #007bff;
}

.positions-column {
    width: 50%;
    color: #666;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .date-input-group {
        justify-content: center;
    }
    
    .function-buttons {
        justify-content: center;
    }
    
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .results-table {
        font-size: 13px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 15px;
    }
    
    .keyword-column,
    .count-column,
    .positions-column {
        width: auto;
    }
}

@media (max-width: 480px) {
    .date-input-group input {
        width: 55px;
    }
    
    .operation-btns {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .output-section {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}
.single-section:nth-of-type(2){
    padding-top:20px;
}


        .effect-tabs {
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 20px;
            overflow-x: auto;
        }
        
        .effect-tab {
            padding: 10px 20px;
            background-color: transparent;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #666;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .effect-tab.active {
            color: #007bff;
            border-bottom-color: #007bff;
            background-color: #f0f9ff;
        }
        
        .effect-options {
            display: none;
        }
        
        .effect-options.active {
            display: block;
        }
      
        
        .option-label {
            min-width: 120px;
            margin-right: 12px;
            color: #333;
            font-size: 14px;
        }
        
        .option-control {
            flex: 1;
        }
        
        input[type="number"]{
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 14px;
            width: 100px;
        }
        
        select {
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 14px;
            background-color: #fff;
        }
        
        input[type="color"] {
            width: 50px;
            height: 36px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            cursor: pointer;
        }
         /* 特效预览区域 */
        .preview-section {
            background-color: #f8f9fa;
            border: 1px solid #e0e0e0;
            /* border-radius: 8px; */
            padding: 40px;
            text-align: center;
            margin-bottom: 20px;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .preview-text {
            font-size: 48px;
            font-weight: bold;
            text-align: center;
            line-height: 1.5;
        }