/* 家博士建材官网样式 */

:root {
    --primary-color: #00a496;
    --secondary-color: #008577;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

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

ul {
    list-style: none;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo span {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 16px;
    color: var(--text-dark);
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

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

/* 师傅入口导航链接 */
.nav a.nav-worker {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav a.nav-worker:hover,
.nav a.nav-worker.active-worker {
    background: #e08600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Section */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Products Preview */
.products-preview {
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.product-card a {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* About Preview */
.about-preview {
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    margin: 20px 0;
}

.about-features li {
    padding: 8px 0;
    font-size: 16px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* Products Page */
.product-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 24px;
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 25px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    font-size: 48px;
    flex-shrink: 0;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    border-radius: 3px;
}

/* Cases Page */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.case-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

/* About Page */
.about-page-content h3 {
    font-size: 24px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.about-page-content h3:first-child {
    margin-top: 0;
}

.about-page-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.timeline {
    border-left: 3px solid var(--primary-color);
    padding-left: 30px;
    margin: 30px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.value-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.value-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-item p {
    font-size: 14px;
}

.honor-list li {
    padding: 10px 0;
    font-size: 16px;
}

/* 产品系列列表样式 */
.product-series-list {
    margin: 20px 0;
}

.product-series-list li {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.product-series-list li:last-child {
    border-bottom: none;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 32px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .product-grid,
    .cases-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 0;
    }
}

/* 资料下载 */
.download-section {
    max-width: 800px;
    margin: 0 auto;
}

.download-category {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.download-icon {
    font-size: 32px;
    margin-right: 15px;
}

.download-info {
    flex: 1;
}

.download-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.download-desc {
    font-size: 13px;
    color: #666;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .download-btn {
        margin-top: 10px;
    }
}

/* 资料下载 - 新样式 */
.product-series-block {
    margin-bottom: 40px;
}

.series-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.series-icon {
    font-size: 26px;
}

.product-download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 18px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.product-download-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.product-icon-small {
    font-size: 24px;
}

.product-thumb-small {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.download-btn-small {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn-small:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.download-btn-gray {
    background: #6b7280;
}

.download-btn-gray:hover {
    background: #4b5563;
}

.download-btn-disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-info-left {
        width: 100%;
    }
    
    .product-btns {
        width: 100%;
        justify-content: flex-start;
    }
}
