/* =====================================================
   高阳优品 - 自定义样式
   设计稿配色：橙色主题 #F7941D
   ===================================================== */

:root {
    --primary-orange: #F7941D;
    --primary-orange-dark: #E5850F;
    --primary-orange-light: #FEAD4D;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* =====================================================
   导航栏样式 - 透明效果
   ===================================================== */
.site-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后导航栏变白色 */
.site-header.scrolled {
    position: fixed;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled .nav-menu a {
    color: var(--text-dark);
}

.site-header.scrolled .nav-menu a:hover,
.site-header.scrolled .nav-menu a.active {
    color: var(--primary-orange);
}

.site-header.scrolled .search-btn svg {
    stroke: var(--text-dark);
}

.site-header .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-header .logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .logo-area img {
    height: 44px;
    width: auto;
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 101;
}

.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
}

.site-header .nav-menu a {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a.active {
    color: var(--primary-orange);
}

.site-header .nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-orange);
}

.site-header .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.site-header .search-btn svg {
    stroke: var(--text-dark);
    transition: stroke 0.3s ease;
}

.site-header .search-btn img {
    width: 22px;
    height: 22px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer !important;
    color: var(--text-dark);
    position: relative;
    z-index: 101;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    user-select: none;
}

.mobile-menu-btn:active {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.mobile-menu-btn svg {
    stroke: var(--text-dark);
    transition: stroke 0.3s ease;
    pointer-events: none;
}

.site-header.scrolled .mobile-menu-btn svg {
    stroke: var(--text-dark);
}

/* =====================================================
   Hero/Banner 区域 - 透明导航栏覆盖
   ===================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 680px;
    overflow: hidden;
    margin-top: -80px; /* 让hero延伸到导航栏下方 */
    padding-top: 80px; /* 补偿导航栏高度 */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #1C1C1C !important; /* 标注: 黑色 */ /* 使用标注的橙色，与 index.css 保持一致 */
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 500px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   统计数字区域
   ===================================================== */
.stats-section {
    background: var(--bg-white);
    padding: 60px 24px;
    border-bottom: 1px solid #eee;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary-orange);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* =====================================================
   产品中心区域
   ===================================================== */
.products-section {
    background: var(--bg-white);
    padding: 80px 24px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-card .product-info {
    padding: 24px;
}

.product-card .product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-card .product-desc {
    font-size: 14px;
    color: var(--text-gray);
}

/* 查看更多按钮 */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary-orange);
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-more:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--bg-white);
}

/* =====================================================
   关于我们区域
   ===================================================== */
.about-section {
    background: var(--bg-light);
    padding: 80px 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.about-stat-item {
    text-align: center;
}

.about-stat-item .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-orange);
}

.about-stat-item .label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   新闻动态区域
   ===================================================== */
.news-section {
    background: var(--bg-white);
    padding: 80px 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card .news-content {
    padding: 24px;
}

.news-card .news-category {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.news-card .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-card .news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-card .news-item:last-child {
    border-bottom: none;
}

.news-card .news-title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card .news-item:hover .news-title {
    color: var(--primary-orange);
}

.news-card .news-date {
    font-size: 12px;
    color: var(--text-light);
}

/* =====================================================
   页脚区域
   ===================================================== */
.site-footer {
    background: #1a1a2e;
    color: var(--bg-white);
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 40px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   响应式布局 - 平板端 (768px - 1024px)
   ===================================================== */
@media (max-width: 1024px) {
    .site-header .nav-container {
        height: 70px;
        padding: 0 16px;
    }

    .site-header .nav-menu {
        gap: 32px;
    }

    .site-header .nav-menu a {
        font-size: 15px;
    }

    .hero-section {
        min-height: 550px;
        margin-top: -70px;
        padding-top: 70px;
    }

    .hero-content {
        padding: 80px 16px 100px;
    }

    .hero-title {
        font-size: 36px;
        color: #1C1C1C !important; /* 标注: 黑色 */
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stats-container {
        gap: 24px;
    }

    .stat-number {
        font-size: 42px;
    }

    .product-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-grid {
        gap: 40px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* =====================================================
   响应式布局 - 移动端 (< 768px)
   ===================================================== */
@media (max-width: 767px) {
    .site-header .nav-container {
        height: 60px;
    }

    .site-header .logo-area img {
        height: 36px;
    }

    .site-header .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow-md);
        z-index: 150;
    }

    .site-header .nav-menu.active {
        display: flex;
    }

    .site-header .nav-menu a {
        padding: 12px 24px;
        width: 100%;
        border-bottom: 1px solid #eee;
        color: var(--text-dark);
    }

    .site-header .nav-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        z-index: 1000 !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    .mobile-menu-btn svg {
        pointer-events: none;
    }
    
    /* 确保按钮可以接收点击 */
    .site-header .header-actions {
        z-index: 1000 !important;
        pointer-events: auto !important;
    }

    .hero-section {
        min-height: 450px;
        margin-top: -60px;
        padding-top: 60px;
    }

    .hero-content {
        padding: 60px 16px 80px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
        color: #1C1C1C !important; /* 标注: 黑色 */
    }

    .hero-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .stats-section {
        padding: 40px 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .products-section,
    .about-section,
    .news-section {
        padding: 48px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card .product-image {
        height: 200px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .about-stat-item .number {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }
}

/* =====================================================
   超小屏幕 (< 480px)
   ===================================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
        color: #1C1C1C !important; /* 标注: 黑色 */
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .about-stat-item .number {
        font-size: 20px;
    }

    .about-stat-item .label {
        font-size: 12px;
    }
}

/* =====================================================
   动画效果
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* 延迟动画 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* 确保统计数字始终可见 */
.stat-item.animate-fadeInUp,
.hero-title.animate-fadeInUp,
.hero-subtitle.animate-fadeInUp {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out;
}

/* =====================================================
   搜索框样式
   ===================================================== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: flex-start;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
    justify-content: center;
}

.search-box {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.search-box form {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-orange);
}

.search-box button {
    padding: 12px 24px;
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-orange-dark);
}

/* =====================================================
   通用工具类
   ===================================================== */
.text-orange {
    color: var(--primary-orange) !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 32px;
}

/* 保留原有兼容样式 */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
