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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 60px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #c93d28;
}

.btn-default {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* 输入框 */
input[type="text"],
input[type="password"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e04a32;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接 */
a {
    text-decoration: none;
    color: inherit;
}

/* Flex布局工具类 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

/* 间距工具类 */
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.p10 { padding: 10px; }
.p20 { padding: 20px; }

/* 文本工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-bold { font-weight: bold; }
.text-gray { color: #999; }
.text-red { color: #e04a32; }

/* 隐藏 */
.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state img {
    width: 120px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }
}


/* 统一底部导航 */
.footer-nav-fixed{position:fixed;left:0;right:0;bottom:0;height:64px;background:#fff;border-top:1px solid #eee;display:grid;grid-template-columns:repeat(4,1fr);z-index:999;box-shadow:0 -2px 12px rgba(0,0,0,.06)}
.footer-nav-fixed .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8a8a8a;font-size:12px;text-decoration:none}
.footer-nav-fixed .nav-item.active{color:#e04a32}
.footer-nav-fixed .nav-glyph{width:24px;height:24px;line-height:24px;text-align:center;font-size:20px;font-weight:700}
.footer-nav-fixed .nav-label{line-height:1}

@media (min-width: 1024px) {
  .footer-nav-fixed{left:50%;right:auto;transform:translateX(-50%);width:min(1200px, calc(100vw - 48px));border-radius:16px 16px 0 0;bottom:0;box-shadow:0 -6px 20px rgba(0,0,0,.05)}
  body{padding-bottom:84px;}
}
