/* 康珠药业官网样式 */

/* 基础样式 */
:root {
    --primary-color: #1a5f4a;
    --primary-light: #2d8f6b;
    --primary-dark: #0f3d30;
    --secondary-color: #f8f9fa;
    --accent-color: #4a9f7a;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f7f5;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #1a5f4a 0%, #2d8f6b 100%);
    --gradient-bg: linear-gradient(135deg, #f5f7f5 0%, #e8f5e0 100%);
}

/* 轮播图样式 */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 60px;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-img.active {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 公司简介带图片 */
.intro-card {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-left {
    flex: 0 0 300px;
}

.intro-left img {
    width: 100%;
    border-radius: 12px;
}

.intro-right {
    flex: 1;
}

/* 产品卡片带图片 */
.product-img-wrap {
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card {
    padding: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-phone {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

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

.btn-outline-center {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

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

/* Hero 背景形状 */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
}

/* 公司简介卡片 */
.intro-section {
    padding: 80px 0;
    background: var(--white);
}

.intro-card {
    background: var(--gradient-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.intro-card h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.intro-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.link-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    margin-top: 20px;
    transition: color 0.3s;
}

.link-more:hover {
    color: var(--primary-light);
}

/* 核心优势 */
.features-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* 产品展示 */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

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

.product-card {
    background: var(--gradient-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-tag {
    display: inline-block;
    background: rgba(26, 95, 74, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
}

/* 联系信息 */
.contact-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
}

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

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 24px;
    font-weight: 600;
}

.address-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.address-info p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 25px;
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

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

.footer-copy p,
.footer-copy a {
    font-size: 12px;
    opacity: 0.6;
    color: var(--white);
    text-decoration: none;
}

.footer-copy a:hover {
    opacity: 0.8;
}

/* 产品页面样式 */
.page-header {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.85;
}

.products-category {
    padding: 60px 0;
    background: var(--bg-color);
}

.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

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

.product-card-full {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card-full h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.product-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.product-info li {
    margin-bottom: 5px;
}

.product-highlight {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 10px;
}

/* 关于页面样式 */
.about-section {
    padding: 120px 0 60px;
}

.about-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.about-highlight {
    background: var(--gradient-bg);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.about-highlight h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 联系页面样式 */
.contact-page-section {
    padding: 120px 0 60px;
}

.contact-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-grid-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-block h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-block p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-block .phone-large {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* 新闻页面样式 */
.news-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.news-placeholder {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.news-placeholder p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    /* 轮播图手机端 */
    .banner-section {
        height: 280px;
        margin-top: 60px;
    }
    
    /* 公司简介手机端 */
    .intro-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .intro-left {
        flex: none;
        width: 100%;
    }
    
    .intro-left img {
        max-height: 200px;
        object-fit: cover;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid-full {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand,
    .footer-links,
    .footer-copy {
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .about-content,
    .contact-card {
        padding: 30px 20px;
    }
    
    /* 产品图片手机端 */
    .product-img-wrap {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .nav-phone {
        font-size: 14px;
    }
    
    .intro-card {
        padding: 30px 20px;
    }
    
    .intro-card h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-value {
        font-size: 20px;
    }
}