/* 蜜旅时光 - 本地样式文件 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

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

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, 
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-sm-6 {
    padding: 0 15px;
    flex: 1;
}

.col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

@media (max-width: 768px) {
    .col-md-2, .col-md-3, .col-md-4, .col-md-8, .col-md-10,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* 保持服务分类的2x2网格布局 */
    .col-md-6, .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-info {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

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

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-outline-primary {
    color: #0d6efd;
    background-color: transparent;
    border-color: #0d6efd;
}

.btn-outline-danger {
    color: #dc3545;
    background-color: transparent;
    border-color: #dc3545;
}

/* 表单样式 */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-check {
    display: block;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25em;
}

.form-check-label {
    margin-left: 0.5em;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

/* 卡片样式 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

/* 警告框 */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-dismissible {
    padding-right: 3rem;
}

.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

/* 工具类 */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-white { color: #fff; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-1 { margin-left: 0.25rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.flex-grow-1 { flex-grow: 1; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.w-100 { width: 100%; }
.bg-light { background-color: #f8f9fa; }
.bg-success { background-color: #198754; }
.bg-secondary { background-color: #6c757d; }
.bg-warning { background-color: #ffc107; }
.rounded { border-radius: 0.375rem; }
.img-thumbnail { 
    padding: 0.25rem; 
    background-color: #fff; 
    border: 1px solid #dee2e6; 
    border-radius: 0.375rem; 
    max-width: 100%; 
    height: auto; 
}
.fw-bold { font-weight: 700; }
.small { font-size: 0.875em; }
.display-1 { font-size: calc(1.625rem + 4.5vw); font-weight: 300; line-height: 1.2; }
.display-4 { font-size: calc(1.475rem + 2.7vw); font-weight: 300; line-height: 1.2; }
.badge { 
    display: inline-block; 
    padding: 0.35em 0.65em; 
    font-size: 0.75em; 
    font-weight: 700; 
    line-height: 1; 
    color: #fff; 
    text-align: center; 
    border-radius: 0.375rem; 
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    z-index: 1000;
    display: none;
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55px;
}
.bottom-nav-item.active {
    color: var(--primary-color);
}
.bottom-nav-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 4px;
    line-height: 1;
    width: 24px;
    height: 20px;
}
.bottom-nav-item span {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

/* 移动端底部导航显示 */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

/* 图标样式 */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}

/* 简化的图标字体 */
.bi-house-door::before { content: "🏠"; }
.bi-images::before { content: "🖼️"; }
.bi-star::before { content: "⭐"; }
.bi-collection::before { content: "📁"; }
.bi-person::before { content: "👤"; }
.bi-gear::before { content: "⚙️"; }
.bi-eye::before { content: "👁️"; }
.bi-box-arrow-right::before { content: "↗️"; }
.bi-box-arrow-in-right::before { content: "↗️"; }
.bi-plus-circle::before { content: "➕"; }
.bi-pencil::before { content: "✏️"; }
.bi-trash::before { content: "🗑️"; }
.bi-check-circle::before { content: "✅"; }
.bi-arrow-left::before { content: "←"; }
.bi-chevron-right::before { content: "→"; }
.bi-sliders::before { content: "🎚️"; }
.bi-camera::before { content: "📷"; }
.bi-camera2::before { content: "📸"; }
.bi-geo-alt::before { content: "📍"; }
.bi-play-circle::before { content: "▶️"; }
.bi-heart::before { content: "❤️"; }
.bi-telephone::before { content: "📞"; }
.bi-envelope::before { content: "✉️"; }
.bi-clock::before { content: "🕐"; }
.bi-info-circle::before { content: "ℹ️"; }
.bi-key::before { content: "🔑"; }
.bi-lock::before { content: "🔒"; }
.bi-exclamation-triangle::before { content: "⚠️"; }
.bi-image::before { content: "🖼️"; }

/* 团队头像图标特殊处理 */
.team-avatar .bi-camera::before { content: "📷"; }
.team-avatar .bi-camera2::before { content: "📸"; }
.team-avatar .bi-person::before { content: "👤"; }

[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: inherit;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
}

/* 底部导航图标特殊处理 - 统一线条风格图标 */
.bottom-nav-item .bi {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: relative;
    margin-bottom: 4px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 首页图标 - 房子 */
.bottom-nav-item .bi-house-door {
    border: 2px solid currentColor;
    border-radius: 3px 3px 0 0;
    border-bottom: none;
    position: relative;
}

.bottom-nav-item .bi-house-door::before {
    content: '' !important;
    display: none;
}

.bottom-nav-item .bi-house-door::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid currentColor;
    display: block !important;
}

/* 作品图标 - 正方形相册，内部有圆形，右上角有小点 */
.bottom-nav-item .bi-images {
    border: 2px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.bottom-nav-item .bi-images::before {
    content: '' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    display: block !important;
}

.bottom-nav-item .bi-images::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    display: block !important;
}

/* 品牌图标 - 星星带丝带 */
.bottom-nav-item .bi-star {
    position: relative;
    background: transparent;
}

/* 使用字符绘制线条风格星星 */
.bottom-nav-item .bi-star::before {
    content: '☆' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    display: block !important;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: normal;
}

/* 星星顶部的丝带 */
.bottom-nav-item .bi-star::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 3px;
    border: 1.5px solid currentColor;
    border-bottom: none;
    border-radius: 1px 1px 0 0;
    background: transparent;
    display: block !important;
    z-index: 1;
}

/* 客片图标 - 使用与作品类似的样式，但略有不同 */
.bottom-nav-item .bi-collection {
    border: 2px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.bottom-nav-item .bi-collection::before {
    content: '' !important;
    position: absolute;
    top: -3px;
    left: -2px;
    width: 7px;
    height: 4px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    display: block !important;
}

.bottom-nav-item .bi-collection::after {
    display: none;
}

/* 我的图标 - 笑脸 */
.bottom-nav-item .bi-person {
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.bottom-nav-item .bi-person::before {
    content: '' !important;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -3px 0 0 currentColor, 3px 0 0 currentColor;
    display: block !important;
}

.bottom-nav-item .bi-person::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 3px;
    border: 1.5px solid currentColor;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: block !important;
}

/* 作品卡片圆角强制样式 */
.work-card {
    border-radius: 15px !important;
    overflow: hidden !important;
}

.work-card .work-image {
    border-radius: 15px 15px 0 0 !important;
}

.work-card .work-info {
    border-radius: 0 0 15px 15px !important;
}
