/* ================================================
   道一包装材料有限公司 - 全站通用样式
   ================================================ */

/* CSS变量定义 */
:root {
    --primary-color: #0A2342;
    --secondary-color: #333333;
    --accent-color: #FF7D00;
    --accent-hover: #E66E00;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #F5F7FA;
    --border-color: #E5E7EB;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

.section-title .highlight {
    color: var(--accent-color);
}

/* ================================================
   网站头部 - Header
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
}

/* 顶部通知栏 */
.top-bar {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left svg {
    width: 14px;
    height: 14px;
    fill: var(--accent-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promise-tag {
    background: var(--accent-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

/* 主导航 */
.main-nav {
    background: var(--primary-color);
    padding: 0;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--text-white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .company-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.logo-text .company-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    padding: 28px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.nav-btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
}

.nav-btn-primary:hover {
    background: var(--accent-hover);
}

.nav-btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.nav-btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================================
   网站底部 - Footer
   ================================================ */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding-top: 60px;
}

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

.footer-about h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-color);
}

.footer-links h4,
.footer-products h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

.footer-links ul li a,
.footer-products ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-products ul li a:hover {
    color: var(--accent-color);
}

.footer-qrcode {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.footer-qrcode p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* ================================================
   通用按钮样式
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 125, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

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

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

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ================================================
   卡片组件
   ================================================ */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================================
   产品分类标签
   ================================================ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-tab {
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-tab:hover,
.category-tab.active {
    background: var(--accent-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}

/* ================================================
   响应式设计
   ================================================ */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

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

    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 15px;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-right {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text .company-name {
        font-size: 16px;
    }

    .logo-text .company-slogan {
        font-size: 10px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ================================================
   页面内容区 padding-top
   ================================================ */
.page-content {
    padding-top: 160px;
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 140px;
    }
}

/* ================================================
   Banner 通用样式
   ================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a5c 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    position: relative;
}

.page-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.page-banner .breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

.page-banner .breadcrumb a {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .page-banner p {
        font-size: 16px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ================================================
   表单样式
   ================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* ================================================
   页面特定内容区域
   ================================================ */
.section {
    padding: 80px 0;
}

.section-bg {
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}