/**
 * 福建大鹭人文化产业有限公司 - 官网手机端样式
 * 主色调：品牌紫 #582FFF
 */

:root {
    --primary: #582FFF;
    --primary-light: #7B5FFF;
    --primary-dark: #4500E6;
    --primary-bg: #F0EBFF;
    --secondary: #FF8C00;
    --bg: #F5F6FA;
    --card-bg: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
    --danger: #EF4444;
    --shadow: 0 2px 12px rgba(88, 47, 255, 0.08);
    --shadow-hover: 0 4px 20px rgba(88, 47, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.page {
    padding-bottom: 60px;
}

/* ========== 顶部导航 ========== */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 44px 16px 16px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.logo-text small {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.menu-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    border: none;
    color: #fff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    left: 0;
}

.menu-toggle span::before {
    top: -6px;
}

.menu-toggle span::after {
    top: 6px;
}

/* ========== 侧边菜单 ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 200;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

.side-menu-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 44px 20px 20px;
}

.side-menu-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.side-menu-header p {
    font-size: 12px;
    opacity: 0.8;
}

.side-menu-list {
    list-style: none;
    padding: 12px 0;
}

.side-menu-list li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.side-menu-list li a:active {
    background: var(--primary-bg);
}

.side-menu-list li a .icon {
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    margin: 0 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: -20px;
    z-index: 10;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.banner-caption h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.banner-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}

/* ========== 分类导航 ========== */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 16px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.category-item:active {
    transform: scale(0.95);
}

.category-icon {
    font-size: 28px;
    margin-bottom: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 12px;
}

.category-name {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ========== 板块标题 ========== */
.section {
    padding: 0 16px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}

/* ========== 产品卡片 ========== */
.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.97);
}

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* ========== 案例卡片 ========== */
.case-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.case-list::-webkit-scrollbar {
    display: none;
}

.case-card {
    flex: 0 0 75%;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    cursor: pointer;
}

.case-card:active {
    transform: scale(0.98);
}

.case-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info {
    padding: 12px;
}

.case-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.case-client {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 新闻列表 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    display: flex;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 12px;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.news-card:active {
    transform: scale(0.99);
}

.news-image {
    flex: 0 0 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    font-size: 11px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

/* ========== 公司信息栏 ========== */
.company-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 24px 20px;
    margin: 0 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(88, 47, 255, 0.25);
}

.company-bar .info {
    flex: 1;
}

.company-bar h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.company-bar p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.5;
}

.company-bar .action-btn {
    background: #fff;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* ========== 页面容器 ========== */
.page-container {
    padding: 16px;
}

/* ========== 关于我们 ========== */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 24px 24px;
}

.about-hero h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.about-hero p {
    font-size: 14px;
    opacity: 0.9;
}

.about-content {
    background: var(--card-bg);
    margin: 16px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 20px;
}

.mv-card {
    background: var(--card-bg);
    padding: 20px 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.mv-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.mv-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== 联系我们 ========== */
.contact-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.contact-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.contact-header p {
    font-size: 13px;
    opacity: 0.9;
}

.contact-list {
    padding: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

/* ========== 产品详情 ========== */
.detail-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-body {
    padding: 20px 16px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
}

/* ========== 新闻详情 ========== */
.news-detail-header {
    padding: 16px;
    background: var(--card-bg);
    margin-bottom: 12px;
}

.news-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.news-detail-body {
    background: var(--card-bg);
    margin: 0 16px;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 14px;
}

/* ========== 加载更多 ========== */
.loading-more {
    text-align: center;
    padding: 16px;
    color: var(--text-light);
    font-size: 13px;
}

/* ========== 返回按钮 ========== */
.back-btn {
    position: absolute;
    left: 16px;
    top: 44px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    border: none;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* ========== 页面标题栏 ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 44px 16px 20px;
    position: relative;
    text-align: center;
}

.page-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.page-header p {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ========== 筛选标签 ========== */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
}
