/* ===================================
   上海艾思朗华材料科技有限公司 - 现代式样式
  响应 =================================== */

/* CSS变量 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f2ff;
    --secondary-color: #00a0e9;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 12px rgba(0, 102, 204, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 102, 204, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

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

/* 头部 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--bg-white);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.company-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

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

.header-main {
    padding: 15px 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area h1 {
    font-size: 24px;
    color: var(--text-white);
    font-weight: bold;
}

.logo-area .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* 导航 - 与logo合并到一行 */
.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: #00ff88;
    background: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
}

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

/* 面包屑 */
.breadcrumb {
    padding: 12px 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 12px 20px;
}

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

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

.breadcrumb span {
    color: var(--text-dark);
    margin: 0 8px;
}

/* 内容卡片 */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.content-card h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.content-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 20px 0 15px;
}

.content-card h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 15px 0 10px;
}

.content-card p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-card ul,
.content-card ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.content-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.content-card ol li::before {
    content: counter(step-counter) '.';
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

.sidebar-content {
    padding: 15px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

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

.product-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-card h4 a {
    color: var(--text-dark);
}

.product-card h4 a:hover {
    color: var(--primary-color);
}

.product-card p {
    font-size: 12px;
    color: var(--text-light);
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.news-item .date {
    font-size: 12px;
    color: var(--primary-color);
    white-space: nowrap;
}

.news-item a {
    color: var(--text-dark);
    font-weight: 500;
}

.news-item a:hover {
    color: var(--primary-color);
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

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

.data-table th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background: var(--bg-light);
}

.data-table tr:hover {
    background: var(--primary-light);
}

/* 联系方式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
}

.contact-item .label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item .value {
    color: var(--text-dark);
}

/* 底部 */
.footer {
    background: #1a365d;
    color: var(--text-white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 10px;
}

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

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

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

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

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

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }

    .header-main-inner {
        flex-wrap: wrap;
    }

    .logo-area {
        flex-direction: column;
    }

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

    .logo-area .tagline {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 15px 20px;
        border-bottom: none;
        color: #fff;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom: none;
        border-left: 3px solid #00ff88;
        background: rgba(255, 255, 255, 0.1);
    }

    .content-card {
        padding: 20px;
    }

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

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

@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        min-width: auto;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .sidebar {
        display: none;
    }

    .content-wrapper {
        display: block;
    }

    .content-card {
        box-shadow: none;
        padding: 0;
    }
}
