/* 
 * 尊龙网址 - 企业官网样式
 * Mobile First Responsive Design
 * Optimized for Yandex & Bing SEO
 */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a252f;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

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

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-color);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    padding: 10px 0;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

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

.nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Banner Section */
.banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.5;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
}

.banner-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Section Common Styles */
.section {
    padding: 50px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* About Section */
.about-content {
    padding: 0 15px;
}

.about-text {
    margin-bottom: 30px;
}

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

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    background: var(--white);
    padding: 20px 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-number span {
    font-size: 1rem;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-item a {
    display: flex;
    flex-direction: column;
}

.news-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
}

.advantage-content h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.advantage-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Contact Section */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 15px;
    font-size: 1rem;
}

.contact-text h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.contact-text p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

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

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

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

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section p,
.footer-section li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 8px;
}

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

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    margin-top: 60px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

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

.breadcrumb-list li::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li:last-child {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 15px;
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Article Content */
.article-content {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.article-content h1 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-body h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.article-body h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

.article-body ul,
.article-body ol {
    margin: 15px 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 8px;
    list-style: disc;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.article-nav a {
    color: var(--primary-color);
}

.article-nav a:hover {
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.more-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.more-link:hover {
    background: var(--secondary-color);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .header-inner {
        padding: 15px 30px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
    }

    .nav-list {
        display: flex;
        padding: 0;
    }

    .nav-item {
        border-bottom: none;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent;
        color: var(--primary-color);
    }

    .banner {
        padding: 80px 30px;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .news-item {
        flex: 0 0 calc(50% - 10px);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .banner {
        padding: 120px 30px;
    }

    .banner-title {
        font-size: 3rem;
    }

    .section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-item {
        flex: 0 0 calc(33.333% - 14px);
    }

    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .article-content {
        padding: 40px 50px;
    }

    .article-content h1 {
        font-size: 1.8rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .nav-link {
        padding: 10px 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .menu-toggle {
        display: none;
    }

    .banner {
        margin-top: 0;
        padding: 30px;
    }

    .section {
        padding: 20px 0;
    }
}
