/* 全局样式 - 国风茶空间风格 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;700&display=swap');

body {
    font-family: 'Noto Serif SC', serif;
    background-color: #f8f4e9;
    background-image: linear-gradient(to bottom, rgba(248, 244, 233, 0.9), rgba(240, 230, 210, 0.9));
    color: #5a3e36;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #d9c7b8;
}

/* 导航样式 - 古籍茶韵 */
.navbar {
    background: linear-gradient(to right, #5a3e36, #6b4226, #5a3e36);
    padding: 0;
    color: #f0e6d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 15px;
    position: relative;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.navbar a {
    color: #f0e6d2;
    text-decoration: none;
    margin: 0 25px;
    padding: 20px 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.navbar a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #d4a373;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.navbar a:hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar a.active {
    color: #fff;
    font-weight: 700;
}

.navbar a.active:before {
    transform: scaleX(1);
    background-color: #d4a373;
}

/* 表单样式 - 茶道风格 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b4226;
    font-size: 15px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9c7b8;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #8d6e63;
    box-shadow: 0 0 0 2px rgba(141, 110, 99, 0.2);
    outline: none;
}

button, .btn {
    background-color: #6b4226;
    color: #f0e6d2;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover {
    background-color: #5a3e36;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:active, .btn:active {
    transform: translateY(0);
}

button:after, .btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after, 
.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 表格样式 - 茶经风格 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

table th, table td {
    border: 1px solid #d9c7b8;
    padding: 12px 15px;
    text-align: left;
    transition: all 0.2s ease;
}

table th {
    background-color: #6b4226;
    color: #f0e6d2;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

table tr:hover td {
    background-color: #f0e6d2;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* 国风装饰元素 */
.chinese-decoration {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.chinese-decoration:before, 
.chinese-decoration:after {
    content: "";
    display: inline-block;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8d6e63, transparent);
    position: absolute;
    top: 50%;
}

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

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

.decoration-text {
    display: inline-block;
    padding: 0 20px;
    font-size: 24px;
    color: #6b4226;
    font-weight: 300;
    letter-spacing: 5px;
    position: relative;
    padding-bottom: 10px;
}

.decoration-text:after {
    content: "❀";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    color: #a83f3f;
    font-size: 18px;
    opacity: 0.7;
}

/* 统计卡片 */
.stats-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    background-color: #f9f9f5;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    border-left: 4px solid #8B4513;
}

/* 消息提示 */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 查询表单样式 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

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

.tag {
    background-color: #8B4513;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
}

.tag:hover {
    background-color: #A0522D;
}

/* 操作按钮 */
.btn {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 14px;
}