/* 基础样式重置 - 压缩版 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; line-height: 1.6; color: var(--text-color); background: #fff; }

a {
    text-decoration: none;      /* 去除下划线 */
    color: inherit;            /* 继承父元素颜色 */
    outline: none;             /* 去除焦点轮廓 */
    cursor: pointer;           /* 保持手型光标 */
}

/* 语义化容器 */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 隐藏内容但保持SEO价值 (对屏幕阅读器可见) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 按钮样式 */
.btn { display: inline-block; padding: 12px 30px; background: var(--secondary-color); color: #fff; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-weight: 600; transition: var(--transition); }
.btn:hover { background: #2980b9; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary-color); }
.btn-primary:hover { background: #1a252f; }

/* 顶部导航栏 */
header { background: #fff; box-shadow: var(--shadow); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.logo span { color: var(--secondary-color); }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark-color); font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary-color); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* 主横幅区域 - 语义化H1 */
.hero { background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), url('/res/img/bj.jpg'); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 12rem 0 6rem; margin-top: 5rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1.25rem; }
.hero p { font-size: 1.125rem; max-width: 50rem; margin: 0 auto 2rem; opacity: 0.9; }

/* 内容区域 - 使用语义化标题层级 */
section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 3.75rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.section-title p { color: #777; max-width: 44rem; margin: 0 auto; }

/* 关于我们 */
.about-content { display: flex; align-items: center; gap: 3rem; }
.about-text { flex: 1; }
.about-text h3 { font-size: 1.75rem; color: var(--primary-color); margin-bottom: 1rem; }
.about-img { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: auto; display: block; }

/* 服务项目 */
.services { background: var(--gray-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1.875rem; }
.service-card { background: #fff; padding: 2.5rem 1.875rem; border-radius: 10px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.service-card:hover { transform: translateY(-0.625rem); }
.service-icon { font-size: 3.125rem; color: var(--secondary-color); margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }

/* 团队成员 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); gap: 1.875rem; }
.team-member { text-align: center; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.member-img { width: 100%; height: 15.625rem; object-fit: cover; }
.member-info { padding: 1.5rem; }
.member-info h4 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 0.3rem; }
.member-info .position { color: var(--secondary-color); font-weight: 500; margin-bottom: 1rem; }

/* 最新注册公司区域样式 */
.latest-companies {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.companies-grid {
    display: grid;
    /* 修改这里：大屏幕3列，中等屏幕2列，小屏幕1列 */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.company-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), #2ecc71);
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}

.company-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #3498db);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transition: var(--transition);
}

.company-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.company-details {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
}

.detail-label {
    min-width: 80px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    flex: 1;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
}

.registration-time {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.company-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4fc;
    color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
}

/* 联系表单 */
.contact { background: var(--gray-color); }
.contact-container { display: flex; gap: 3rem; }
.contact-info, .contact-form { flex: 1; }
.info-item { display: flex; align-items: center; margin-bottom: 1.875rem; }
.info-icon { font-size: 1.5rem; color: var(--secondary-color); margin-right: 1.25rem; width: 3.125rem; }
.form-group { margin-bottom: 1.25rem; }
.form-control { width: 100%; padding: 0.9375rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }
textarea.form-control { min-height: 9.375rem; resize: vertical; }

/* 页脚 */
footer { background: var(--primary-color); color: #fff; padding: 4.375rem 0 1.25rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-column h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: #ddd; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary-color); padding-left: 0.3125rem; }
.social-links { display: flex; gap: 0.9375rem; margin-top: 1.25rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: #fff; transition: var(--transition); }
.social-links a:hover { background: var(--secondary-color); transform: translateY(-0.3125rem); }
.copyright { text-align: center; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #aaa; font-size: 0.9rem; }

/* 面包屑导航 */
.breadcrumb { background: var(--gray-color); padding: 1rem 0; margin-top: 5rem; }
.breadcrumb-list { list-style: none; display: flex; }
.breadcrumb-list li { margin-right: 0.5rem; }
.breadcrumb-list li:not(:last-child)::after { content: ">"; margin-left: 0.5rem; }
.breadcrumb-list a { color: var(--secondary-color); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }

/* 响应式设计 */
@media (max-width: 62rem) {
    .hero h1 { font-size: 2.5rem; }
    .about-content { flex-direction: column; }
    .contact-container { flex-direction: column; }
    /* 中等屏幕改为2列布局 */
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 1.25rem 0; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0; text-align: center; }
    .nav-links a { display: block; padding: 0.9375rem; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 9.375rem 0 5rem; }
    .hero h1 { font-size: 2rem; }
    section { padding: 5rem 0; }
    /* 小屏幕改为1列布局 */
    .companies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 36rem) {
    .hero h1 { font-size: 1.75rem; }
    .section-title h2 { font-size: 2rem; }
    .company-card {
        padding: 20px;
    }
}

/* 打印样式 */
@media print {
    header, footer, .contact, .breadcrumb { display: none; }
    body { font-size: 12pt; line-height: 1.4; }
    .container { width: 100%; max-width: none; }
    section { padding: 1rem 0; }
    .hero { background: none; color: #000; padding: 0; margin: 0; }
    .hero h1 { font-size: 18pt; }
    a { color: #000; text-decoration: underline; }
    .btn { display: none; }
    .company-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}