/* 企业网站样式 - hth(中国)有限公司 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --dark: #111827;
    --border-color: #e5e7eb;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

/* 横幅区域 */
.banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner/banner1.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容卡片 */
.content-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.content-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.content-card h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-card p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 2;
    color: var(--text-color);
}

.content-card ul, .content-card ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-card li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--accent-color);
}

.btn-secondary:hover {
    background: #d97706;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

/* 页脚样式 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    line-height: 1.8;
}

footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 新闻列表样式 */
.news-list {
    list-style: none;
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    transition: background 0.3s;
    border-radius: 5px;
    padding-left: 1rem;
}

.news-item:hover {
    background: var(--light-bg);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    margin-bottom: 0.8rem;
}

.news-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

/* 404页面样式 */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

/* 产品展示 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 1.8rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* 团队展示 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

/* 企业特色样式 */
.company-intro {
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    padding: 4rem 0;
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

