/* 统一的主题颜色定义 */
:root {
    /* 主题颜色变量定义 */
    --primary-color: #FF6600;      /* 主色调：橙色 */
    --primary-light: #f9d9b5;      /* 主色调浅色 */
    --primary-dark: #e55b00;       /* 主色调深色 */
    --secondary-color: #4CAF50;    /* 次要色调：绿色 */
    --text-primary: #333333;       /* 主文本色 */
    --text-secondary: #666666;     /* 次要文本色 */
    --text-light: #ffffff;         /* 浅色文本 */
    --background-light: #ffffff;   /* 浅色背景 */
    --border-color: #dddddd;       /* 边框颜色 */
    --highlight-color: #f44336;    /* 高亮/警告色 */
    --highlight-bg: #fff8e1;       /* 高亮背景色 */
    --link-color: #2196F3;         /* 链接颜色 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 常用组件样式 */
.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;   
    border-radius: 8px;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.card-primary {
    border-top: 3px solid var(--primary-color);
}

.card-highlight {
    border-top: 3px solid var(--highlight-color);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

/* Tab导航栏样式 */
.tab-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: white;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-height: 44px;
}

.tab-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 102, 0, 0.05);
    transform: translateY(-1px);
}

.tab-item.active {
    color: var(--primary-color);
    background-color: rgba(255, 102, 0, 0.1);
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1;
}

.tab-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-navigation {
        height: 55px;
        padding: 0 5px;
    }

    .tab-item {
        padding: 6px 2px;
        min-height: 40px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-label {
        font-size: 10px;
    }
}

/* 为页面内容添加底部间距，避免被导航栏遮挡 */
.page-content {
    padding-bottom: 70px;
}

@media (max-width: 768px) {
    .page-content {
        padding-bottom: 65px;
    }
}

/* 通用底部容器样式 - footerContainer */
.footerContainer {
    position: fixed;
    bottom: 60px; /* 在导航栏上方 */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e8e8e8;
    padding: 8px 15px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 固定底部footer样式 */
#footerContainer.footer {
    padding: 8px 15px !important;
    z-index: 999 !important;
    text-align: center !important;
}

.footerContainer .contact-info {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.footerContainer .contact-item {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.4;
}

.footerContainer .contact-label {
    color: #666;
    font-weight: 500;
}

.footerContainer .contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-left: 4px;
}

.footerContainer .contact-link:hover {
    text-decoration: underline;
}

.footerContainer .contact-time {
    color: #888;
    font-size: 11px;
    margin-left: 8px;
}

/* 移动端footerContainer优化 */
@media (max-width: 768px) {
    .footerContainer {
        padding: 6px 10px;
    }

    .footerContainer .contact-item {
        font-size: 11px;
    }

    .footerContainer .contact-time {
        font-size: 10px;
    }
}