/* ============================================
   福德丰陶瓷 - 完整样式表
   版本: 2.0
   说明: 包含所有页面样式、响应式设计、动画效果
   ============================================ */

/* ---------- 1. 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: #333;
    background: #f9f7f4;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #8b3a2a;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #6b2a1a;
}

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

ul, ol {
    list-style: none;
}

/* ---------- 2. 工具类 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.text-primary {
    color: #8b3a2a;
}

.text-muted {
    color: #999;
}

.text-white {
    color: #fff;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }

.px-20 { padding-left: 20px; padding-right: 20px; }

.hidden { display: none !important; }

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ---------- 3. 顶部工具栏 ---------- */
.top-bar {
    background: #6b2a1a;
    color: #f0e6d8;
    padding: 6px 0;
    font-size: 13px;
}

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

.top-bar a {
    color: #f0e6d8;
}

.top-bar a:hover {
    color: #fff;
}

/* ---------- 4. 头部与导航 ---------- */
.header {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo h1 {
    font-size: 28px;
    color: #8b3a2a;
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo h1 span {
    color: #c97e5a;
}

.logo .sub {
    font-size: 11px;
    font-weight: normal;
    color: #999;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 导航 */
.nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav ul li a {
    display: block;
    padding: 8px 18px;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8b3a2a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 60%;
}

.nav ul li a:hover {
    color: #8b3a2a;
    background: #f5ede8;
}

.nav ul li a.active {
    color: #8b3a2a;
    background: #f5ede8;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #8b3a2a;
    background: none;
    border: none;
    padding: 5px 10px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: #f5ede8;
}

/* ---------- 5. 横幅/Hero ---------- */
.hero {
    background: linear-gradient(135deg, #6b2a1a 0%, #c97e5a 100%);
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🏺';
    position: absolute;
    font-size: 300px;
    opacity: 0.06;
    right: -50px;
    bottom: -80px;
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 44px;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.92;
    line-height: 1.8;
}

.hero .btn {
    display: inline-block;
    background: #fff;
    color: #8b3a2a;
    padding: 14px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.hero .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
    color: #6b2a1a;
}

/* ---------- 6. 通用标题 ---------- */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #8b3a2a;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c97e5a;
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
    font-size: 15px;
}

/* ---------- 7. 网格系统 ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ---------- 8. 卡片组件 ---------- */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
}

.card-img {
    background: #e8ddd0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px 25px 25px;
}

.card-body h4 {
    color: #8b3a2a;
    margin-bottom: 8px;
    font-size: 18px;
}

.card-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.card-body .price {
    font-size: 20px;
    color: #d32f2f;
    font-weight: bold;
    margin: 10px 0;
}

/* ---------- 9. 优势区域 ---------- */
.advantages {
    background: #fff;
    padding: 60px 0;
}

.advantage-item {
    text-align: center;
    padding: 40px 25px;
    background: #f9f7f4;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.advantage-item:hover {
    background: #f5ede8;
    transform: translateY(-5px);
    border-color: #c97e5a;
}

.advantage-item .icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: block;
}

.advantage-item h4 {
    color: #8b3a2a;
    margin-bottom: 8px;
    font-size: 18px;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- 10. 产品系列 ---------- */
.product-series {
    margin-bottom: 50px;
}

.product-series:last-child {
    margin-bottom: 0;
}

.product-series h3 {
    color: #8b3a2a;
    border-left: 4px solid #8b3a2a;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 20px;
}

/* ---------- 11. 新闻列表 ---------- */
.news-item {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.news-item:hover {
    border-left-color: #8b3a2a;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.news-item h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 17px;
}

.news-item h4 a {
    color: #333;
}

.news-item h4 a:hover {
    color: #8b3a2a;
}

.news-item .date {
    color: #999;
    font-size: 13px;
}

.news-item .summary {
    color: #666;
    margin-top: 8px;
    line-height: 1.8;
}

/* ---------- 12. 联系页面 ---------- */
.contact-info {
    background: #f9f7f4;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.contact-info p {
    line-height: 2.5;
}

.contact-info strong {
    display: inline-block;
    width: 80px;
    color: #555;
}

.contact-form {
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e0d8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #faf8f6;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #8b3a2a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 58, 42, 0.08);
}

.contact-form .btn-submit {
    background: #8b3a2a;
    color: #fff;
    border: none;
    padding: 14px 50px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.contact-form .btn-submit:hover {
    background: #6b2a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 58, 42, 0.3);
}

.contact-form .btn-submit:active {
    transform: translateY(0);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
    padding: 15px 0 25px;
    font-size: 14px;
    color: #999;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb a {
    color: #8b3a2a;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* ---------- 14. 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e8e0d8;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #8b3a2a;
    color: #8b3a2a;
}

.pagination a.active {
    background: #8b3a2a;
    border-color: #8b3a2a;
    color: #fff;
}

.pagination a.active:hover {
    background: #6b2a1a;
    border-color: #6b2a1a;
}

/* ---------- 15. 提示信息 ---------- */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
}

.alert-error {
    background: #fbe9e7;
    color: #c62828;
    border-left: 4px solid #d32f2f;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #1976d2;
}

/* ---------- 16. 底部 ---------- */
.footer {
    background: #2c2c2c;
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer ul li {
    line-height: 2.2;
}

.footer ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #c97e5a;
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: #aaa;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #8b3a2a;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ---------- 17. 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #8b3a2a;
    color: #fff;
}

.btn-primary:hover {
    background: #6b2a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 58, 42, 0.3);
}

.btn-outline {
    background: transparent;
    color: #8b3a2a;
    border: 2px solid #8b3a2a;
}

.btn-outline:hover {
    background: #8b3a2a;
    color: #fff;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 6px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 45px;
    font-size: 17px;
}

/* ---------- 18. 回到顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8b3a2a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 58, 42, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #6b2a1a;
    transform: translateY(-3px) scale(1.05);
}

/* ---------- 19. 响应式设计 ---------- */

/* 平板 */
@media (max-width: 992px) {
    .grid-2 {
        gap: 30px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h2 {
        font-size: 34px;
    }
    .hero {
        padding: 70px 0 60px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    /* 导航 */
    .menu-toggle {
        display: block;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 15px 0 5px;
        gap: 3px;
        background: #fff;
        border-top: 1px solid #f0ebe6;
        margin-top: 12px;
    }

    .nav ul.open {
        display: flex;
    }

    .nav ul li a {
        padding: 10px 16px;
        border-radius: 6px;
        width: 100%;
    }

    .nav ul li a::after {
        display: none;
    }

    .header .container {
        flex-wrap: wrap;
    }

    /* Hero */
    .hero h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }

    .hero {
        padding: 50px 0 45px;
    }

    .hero::before {
        font-size: 150px;
        right: -20px;
        bottom: -30px;
    }

    /* 网格 */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* 标题 */
    .section-title {
        font-size: 24px;
    }

    /* 联系 */
    .contact-info strong {
        width: 70px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    /* 底部 */
    .footer .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer {
        padding: 35px 0 15px;
    }

    /* Logo */
    .logo h1 {
        font-size: 22px;
    }
    .logo .sub {
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* 顶部栏 */
    .top-bar {
        font-size: 12px;
        padding: 4px 0;
    }

    /* 回到顶部 */
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero h2 {
        font-size: 22px;
    }

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

    .hero .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

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

    .logo h1 {
        font-size: 20px;
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 2px;
    }

    .contact-form .btn-submit {
        width: 100%;
        padding: 14px;
    }

    .news-item {
        padding: 18px 16px;
    }

    .card-body {
        padding: 15px 18px 20px;
    }
}

/* ---------- 20. 打印样式 ---------- */
@media print {
    .top-bar,
    .header,
    .footer,
    .back-to-top,
    .menu-toggle,
    .nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero {
        padding: 30px 0;
        background: #f5f0eb !important;
        color: #333;
    }

    .hero::before {
        display: none;
    }

    .hero .btn {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .card:hover {
        transform: none;
    }
}

/* ---------- 21. 动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ---------- 22. 自定义滚动条 ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0ebe6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c97e5a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b3a2a;
}