/* ===== 基础样式 ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    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;
    line-height: 1.6;
    color: var(--dark);
    background: #f5f7fa;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== 头部导航 ===== */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 8px;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== 首页Banner ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content > p {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== 优势区域 ===== */
.advantages {
    padding: 80px 0;
    background: white;
}

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

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

.advantage-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--light);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== 设备展示 ===== */
.equipment-section {
    padding: 80px 0;
}

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

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

.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.equipment-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.equipment-info {
    padding: 20px;
}

.equipment-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.equipment-brand {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.equipment-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.equipment-price {
    margin-bottom: 15px;
}

.equipment-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.equipment-price .period {
    color: var(--gray);
    font-size: 0.9rem;
}

.equipment-price .deposit {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.equipment-price .deposit.free {
    color: var(--success);
}

.spec-tag {
    display: inline-block;
    background: var(--light);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
    color: var(--gray);
}

/* ===== 服务流程 ===== */
.process {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--gray);
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== 案例展示 ===== */
.cases-section {
    padding: 80px 0;
}

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

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

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-card.large {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-card.large .case-image {
    height: 100%;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-industry {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.case-body {
    padding: 20px;
}

.case-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.case-body h3 a {
    color: var(--dark);
}

.case-client {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

/* ===== 新闻区域 ===== */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.news-date {
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    color: var(--gray);
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-content h3 a {
    color: var(--dark);
}

.news-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== 客户评价 ===== */
.testimonials {
    padding: 80px 0;
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card > p {
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== CTA区域 ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

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

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

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

.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.6);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== 页面头部 ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
}

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

/* ===== 通用布局 ===== */
.text-center {
    text-align: center;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control.readonly {
    background: var(--light);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== 新闻列表页 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.news-card .news-image {
    height: 200px;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: var(--dark);
}

.news-card p {
    color: var(--gray);
    font-size: 0.95rem;
    flex: 1;
}

/* ===== 新闻详情 ===== */
.news-detail {
    padding: 60px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
}

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

.article-content p {
    margin-bottom: 15px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.prev-article,
.next-article {
    max-width: 45%;
}

.prev-article span,
.next-article span {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.related-news {
    list-style: none;
}

.related-news li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.related-news li a {
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

.related-news li span {
    font-size: 0.85rem;
    color: var(--gray);
}

.contact-widget p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===== 设备详情 ===== */
.equipment-detail {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.detail-image {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
}

.detail-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.detail-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.detail-brand {
    color: var(--gray);
    margin-bottom: 20px;
}

.detail-price-box {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-unit {
    color: var(--gray);
}

.detail-deposit {
    margin-top: 10px;
    color: var(--gray);
}

.detail-deposit.free {
    color: var(--success);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 详情内容 */
.detail-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.detail-tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 200px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== 案例详情 ===== */
.case-detail {
    padding: 60px 0;
}

.case-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.case-detail-industry {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.case-detail-client {
    color: var(--gray);
}

.case-detail-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.case-detail-image img {
    width: 100%;
}

.case-detail-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    margin-bottom: 40px;
}

.related-cases h3 {
    margin-bottom: 20px;
}

/* ===== 关于我们 ===== */
.about-section {
    padding: 60px 0;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.about-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 20px;
}

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

.about-feature {
    text-align: center;
    padding: 25px;
    background: var(--light);
    border-radius: 10px;
}

.about-feature .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-feature h4 {
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--gray);
}

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

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

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-box .stat-label {
    opacity: 0.9;
}

/* ===== 联系我们 ===== */
.contact-section-page {
    padding: 60px 0;
}

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

.contact-info-box,
.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info-box h2,
.contact-form-box h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

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

.info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    color: var(--gray);
}

/* ===== 分类筛选 ===== */
.category-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-filter a {
    padding: 10px 25px;
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--dark);
    transition: all 0.3s;
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
