/* 航空摄影网站样式 v1.0 */
@charset "UTF-8";

:root {
    --primary-color: #0078D7;
    --secondary-color: #f5f5f7;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    height: 40px;
}

.navbar .container {
    max-width: 1200px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    transition: color 0.3s ease;
    padding: 0 10px;
    margin-right: 20px;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    padding: 0 1rem;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #fff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 20px;
    opacity: 1;
}

.nav-link.active::after {
    width: 20px;
    opacity: 1;
    background-color: #fff;
}

.dropdown-menu {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background-color: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 0;
    padding: 20px;
    margin: 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    min-width: 200px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-header {
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons .btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.auth-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.auth-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.auth-buttons .btn-light {
    background-color: #fff;
    color: #000;
    border: none;
}

.auth-buttons .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.search-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.2s ease;
}

.search-icon:hover {
    color: #fff;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 1010;
    overflow: hidden;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    height: 100%;
}

.search-container {
    width: 500px;
    max-width: 90%;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease 0.2s;
}

.search-overlay.active .search-container {
    opacity: 1;
    transform: translateY(0);
}

.search-input-large {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    padding: 15px 40px 15px 0;
    outline: none;
}

.search-input-large::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: #fff;
}

@media (max-width: 992px) {
    /* 移动端菜单样式完善 */
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 15px;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
        margin-right: 0;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1050;
    }
    
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        margin-right: 10px;
        border: none;
        background-color: transparent;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .nav-link {
        height: auto;
        padding: 12px 15px;
        justify-content: flex-start;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .nav-link:hover, 
    .nav-link:focus, 
    .nav-link:active {
        color: #fff !important;
    }
    
    .nav-link.active {
        color: #fff !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        background-color: rgba(60, 60, 60, 0.5);
        padding: 10px;
        margin-left: 15px;
        display: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:active {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
    
    .auth-buttons {
        margin-top: 15px;
        padding: 0 15px;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .navbar {
        height: auto;
        min-height: 48px;
    }
    
    .navbar .container {
        flex-wrap: inherit;
        justify-content: space-between;
    }
}

/* 幻灯片样式 */
.hero-slider {
    margin-top: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 90vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-color: #000;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background-color: #000;
}

.slide-content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: left;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.5s both;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.7s both;
}

.slide-btn {
    display: inline-block;
    background-color: white;
    color: var(--text-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slide-btn.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

.slide-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.arrow {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主内容区样式修改 */
.header {
    padding: 50px 0 30px;
    text-align: center;
}

.header h1 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content {
    padding: 20px 0;
}

/* 瀑布流布局样式 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* 图片卡片样式 */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    width: 100%;
    margin-bottom: 0;
    break-inside: avoid;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

.card-meta div {
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 5px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 30px;
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.4);
    z-index: 100;
    border: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.1);
    background-color: #0065b8;
}

.footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: white;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    margin: 0 5px 10px;
    background-color: white;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

.tab:hover:not(.active) {
    background-color: #e5e5e5;
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.search-bar .input-group {
    max-width: 700px;
    margin: 0 auto;
}

.search-bar .form-select,
.search-bar .form-control,
.search-bar .btn {
    height: 48px;
    font-size: 0.95rem;
}

.search-bar .form-select {
    background-color: #f5f5f7;
    border-color: #e0e0e0;
    color: #333;
    font-weight: 500;
}

.search-bar .form-control {
    border-color: #e0e0e0;
}

.search-bar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 48px;
}

.search-bar .btn-primary:hover {
    background-color: #0065b8;
    border-color: #0065b8;
}

@media (max-width: 576px) {
    .search-bar .form-select {
        width: 110px !important;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.85rem;
    }
}

/* 数据统计卡片样式 */
.stats-card {
    position: fixed;
    top: 120px;
    right: 30px;
    left: auto;
    transform: none;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    z-index: 100;
    width: auto;
    max-width: 420px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stats-item {
    display: flex;
    align-items: center;
    width: 33.33%;
}

.stats-item i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
    background-color: rgba(0, 120, 215, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stats-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

.stats-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

/* 数据统计卡片的移动端样式在home.php的内联样式中定义 */

/* 手机端幻灯片响应式样式 */
@media (max-width: 768px) {
    .slide {
        height: 55vh;
        min-height: 350px;
        max-height: 450px;
    }
    
    .slide-bg {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background-color: #000;
    }
    
    .slide-content {
        padding: 25px 20px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .slide-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slide-arrows {
        padding: 0 15px;
        top: calc(50% - 25px);
    }
    
    .arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .slide {
        height: 45vh;
        min-height: 250px;
        max-height: 350px;
    }
    
    .slide-bg {
        object-fit: contain;
        background-color: #000;
    }
    
    .slide-content {
        padding: 15px 15px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .slide-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .slide-arrows {
        padding: 0 10px;
        top: calc(50% - 15px);
    }
    
    .arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}