/*
 * 摄影网站样式文件
 *
 * 极简美学设计理念
 * 大量留白，去除多余装饰
 * 响应式设计，适配各种设备
 * 内容融入式，无边框限制
 * 统一色彩，去卡片化布局
 *
 * @author Claude AI
 * @created 2025-09-18
 */

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 链接样式 */
a {
    color: #06B6D4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0891b2;
}

a:focus {
    outline: 2px solid #06B6D4;
    outline-offset: 2px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #06B6D4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #0891b2;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #06B6D4;
    color: #06B6D4;
}

.btn-outline:hover {
    background-color: #06B6D4;
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #06B6D4;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== 极简美学导航栏设计 ========== */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 防止移动端出现横向滚动 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    flex: 0 0 auto;
}

.nav-brand a {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #000;
}

.nav-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.nav-menu a {
    color: #666;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a1a1a;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-form:hover {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
    width: 180px;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    width: 220px;
}

.search-btn {
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #1a1a1a;
    background: rgba(0,0,0,0.05);
}

/* 保留原有的search-link样式用于其他地方 */
.search-link {
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
}

.search-link:hover {
    color: #1a1a1a;
}

.nav-contact {
    display: flex;
    align-items: center;
}

.contact-link {
    color: #666;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.contact-link:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    background-color: #f9fafb;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb a,
.breadcrumb span {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #06B6D4;
}

.breadcrumb i {
    margin: 0 10px;
    color: #999;
}

/* ========== 极简美学页脚设计 ========== */
.main-footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 120px;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.brand-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: #fff;
}

.brand-description {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links {
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: center;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-contact {
    text-align: right;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
}

.footer-bottom {
    background: #0a0a0a;
    padding: 24px 0;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: #666;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f3f4f6;
    color: #06B6D4;
}

.pagination .current {
    background-color: #06B6D4;
    color: white;
}

/* ========== 首页样式 ========== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
}

/* 区块标题 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 模特卡片 */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.model-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.model-info {
    padding: 20px;
}

.model-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.model-details {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.model-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 作品展示 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.work-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-card:hover .work-overlay {
    transform: translateY(0);
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.work-model {
    font-size: 14px;
    opacity: 0.9;
}

/* 基地展示 */
.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.studio-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.studio-card:hover {
    transform: translateY(-5px);
}

.studio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.studio-info {
    padding: 20px;
}

.studio-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.studio-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.studio-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 30px;
        height: 70px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 30px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-actions {
        gap: 16px;
    }

    .nav-contact {
        display: none;
    }

    .search-input {
        width: 120px;
    }

    .search-input:focus {
        width: 150px;
    }

    .search-form {
        padding: 4px 8px;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .models-grid,
    .works-grid,
    .studios-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 30px;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* iPhone 12/13 等窄屏优化，避免导航横向溢出 */
    .nav-container {
        padding: 0 12px;
        height: 64px;
        box-sizing: border-box;
    }

    .nav-brand a {
        font-size: 16px;
        max-width: 50vw; /* 品牌名称限制宽度，超出省略 */
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 显示精简搜索框，避免溢出 */
    .search-form {
        display: flex;
        max-width: 48vw;
        padding: 3px 8px;
    }

    .nav-actions {
        gap: 8px;
    }

    /* 缩小输入宽度，聚焦时适度放大 */
    .search-input {
        width: 100px;
    }

    .search-input:focus {
        width: 130px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ========== 工具类 ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ========== 加载动画 ========== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #06B6D4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #999;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
}

/* ========== 提示信息 ========== */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}


.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}