/* 紫砂壶管理系统 - 历史柴烧主题 CSS */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SimSun", "宋体", serif;
    background-color: #f9f5f0;
    color: #4a3520;
    line-height: 1.6;
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: "FangSong", "仿宋", serif;
    color: #8c3e2f;
    margin-bottom: 20px;
}

/* 中式装饰标题 */
.chinese-decoration {
    text-align: center;
    position: relative;
    margin: 30px 0;
    padding: 0;
    overflow: hidden;
}

.chinese-decoration:before,
.chinese-decoration:after {
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 35%;
    background-image: linear-gradient(to right, #d9c7b8, #8c3e2f, #d9c7b8);
}

.chinese-decoration:before {
    right: 0.5em;
    margin-left: -50%;
}

.chinese-decoration:after {
    left: 0.5em;
    margin-right: -50%;
}

.decoration-text {
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.decoration-text:before,
.decoration-text:after {
    content: "◆";
    color: #8c3e2f;
    font-size: 0.8em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.decoration-text:before {
    left: 0;
}

.decoration-text:after {
    right: 0;
}

/* 导航栏样式 */
.header {
    background-color: #8c3e2f;
    color: #f9f5f0;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: "STKaiti", "楷体", serif;
    font-size: 24px;
    font-weight: bold;
    color: #f9f5f0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #f9f5f0;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav a.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background-color: #d9c7b8;
    color: #4a3520;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #c9b7a8;
}

/* 表格样式 - 紫砂壶主题 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    font-family: "FangSong", "仿宋", serif;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e1d9;
    transition: all 0.2s ease;
}

th {
    background-color: #8c3e2f;
    color: #f9f5f0;
    font-weight: bold;
    font-size: 15px;
    position: sticky;
    top: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

td {
    color: #5a4a42;
    font-size: 14px;
}

tr:not(:last-child) td {
    border-bottom: 1px solid #e8e1d9;
}

tr:nth-child(even) {
    background-color: #fff9f5;
}

tr:hover td {
    background-color: #f5ebe0;
    transform: translateX(2px);
}

/* 表格操作按钮 */
.table-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 16px;
    background-color: #d9c7b8;
    color: #5a4a42;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.table-action:hover {
    background-color: #8c3e2f;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table-action i {
    margin-right: 5px;
}

/* 表格中的标签 */
.table-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0e6d9;
    color: #8c3e2f;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

/* 表格中的数字突出显示 */
.table-number {
    font-weight: bold;
    color: #8c3e2f;
}

/* 表格中的日期 */
.table-date {
    font-family: "SimSun", "宋体", serif;
    color: #6c757d;
    font-size: 13px;
}

/* 表单样式 */
.form-container {
    margin-bottom: 30px;
}

.form-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: calc(33.33% - 14px);
    min-width: 250px;
    overflow: hidden;
}

.form-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #d9c7b8;
    color: #4a3520;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #c9b7a8;
}

.card-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a3520;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9c7b8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8c3e2f;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(140, 62, 47, 0.25);
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 按钮样式 */
.btn, button[type="submit"] {
    display: inline-block;
    background-color: #8c3e2f;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #6d2e23;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-title {
    background-color: #d9c7b8;
    color: #4a3520;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #c9b7a8;
}

.card-content {
    padding: 20px;
}

/* 统计卡片样式 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.stat-header {
    background-color: #8c3e2f;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

.stat-body {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #8c3e2f;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* 搜索样式 */
.search-container {
    margin-bottom: 30px;
    max-width: 1200px;
}

.search-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: calc(33.33% - 10px);
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
}

.search-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.search-btn, .reset-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.search-btn {
    background-color: #8c3e2f;
    color: white;
    border: none;
}

.search-btn:hover {
    background-color: #6d2e23;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
    border: none;
}

.reset-btn:hover {
    background-color: #5a6268;
}

/* 标签样式 */
.tags-container {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #d9c7b8;
    color: #4a3520;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #8c3e2f;
    color: #fff;
}

/* 消息提示样式 */
.success, .error, .info {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #8c3e2f;
    color: #f9f5f0;
    border: 1px solid #6d2e23;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-card, .search-card, .stat-card {
        width: 100%;
        min-width: 100%;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 安装页面样式 */
.install-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.install-header {
    text-align: center;
    margin-bottom: 30px;
}

.install-step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.install-step:last-child {
    border-bottom: none;
}

/* 排行榜样式 */
.ranking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.ranking-card {
    flex: 1;
    min-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* 日期范围样式 */
.date-range {
    display: flex;
    align-items: center;
}

.date-range input[type="date"] {
    width: calc(50% - 10px);
}

.date-separator {
    margin: 0 5px;
}

/* 排序选项样式 */
.sort-options {
    display: flex;
    gap: 10px;
}

.sort-options select {
    flex: 1;
}

.order-select {
    width: 80px !important;
}

/* 汇总行样式 */
.summary-row {
    background-color: #f0f0f0;
    font-weight: bold;
}

.summary-row td {
    border-top: 2px solid #ddd;
    padding: 10px 8px;
}

/* 柴烧主题特殊元素 */
.pottery-decoration {
    position: relative;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #d9c7b8;
    border-radius: 8px;
    background-color: #f9f5f0;
}

.pottery-decoration:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-color: #f9f5f0;
    border-left: 1px solid #d9c7b8;
    border-right: 1px solid #d9c7b8;
    border-top: 1px solid #d9c7b8;
    border-radius: 50% 50% 0 0;
}

/* 紫砂壶图标 */
.teapot-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #8c3e2f;
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
}

.teapot-icon:before {
    content: "";
    position: absolute;
    top: 5px;
    right: -8px;
    width: 10px;
    height: 8px;
    background-color: #8c3e2f;
    border-radius: 0 5px 5px 0;
}

/* 自定义复选框样式 */
.checkbox-group {
    display: flex;
    gap: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #8c3e2f;
}