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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'MS PGothic', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.logo-icon {
    width: 40px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: #20b2aa;
}

.nav-menu a.active {
    color: #20b2aa;
    border-bottom: 2px solid #20b2aa;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 0.9rem;
}

.phone-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    background-color: transparent;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 90px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.language-switcher-btn::after {
    content: '▼';
    font-size: 0.7rem;
    color: #666;
    margin-left: 4px;
}

.language-switcher-btn:hover {
    border-color: #20b2aa;
    color: #20b2aa;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    right: 0;
    margin-top: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown-item {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.language-dropdown-item:hover {
    background-color: #f5f5f5;
}

.language-dropdown-item.active {
    background-color: #e8f5f4;
    color: #20b2aa;
    font-weight: 500;
}

/* 英雄区域 */
.hero {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-image {
    width: 105%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-cta-button {
    position: absolute;
    left: 22%;
    top: 72%;
    padding: 10px 35px;
    background-color: #20b2aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    z-index: 10;
    white-space: nowrap;
}

.hero-cta-button:hover {
    background-color: #1a9b94;
}

.hero .cta-button:hover {
    background-color: #1a9b94;
}

/* 主内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* 欢迎信息区域 */
.welcome-section {
    background-color: #f5f5f5;
    padding: 50px 40px;
    text-align: center;
    margin: 0;
}

.welcome-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto 15px;
}

/* 内容区域 */
.content-section {
    background-color: #fff;
    padding: 60px 40px;
    margin: 0;
}

.content-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
    padding-left: 120px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 120px;
    transform: none;
    width: 80px;
    height: 8px;
    background-color: #20b2aa;
    display: block;
}

.office-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.office-header h2 {
    margin-bottom: 0;
    padding-bottom: 15px;
    position: relative;
}

.office-header h2::after {
    width: 900px;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* 服务卡片 */
.services-preview {
    margin: 0;
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


.service-content {
    display: flex;
    flex-direction: column;
    margin-left: 100px;
}

.service-row:first-child .service-content {
    margin-left: 120px;
}

.service-row-reverse {
    grid-template-columns: 1fr 1fr;
}

.service-row-reverse .service-image-placeholder {
    order: -1;
}

.service-row-reverse .service-content {
    order: 0;
}

.service-card {
    background-color: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.service-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #20b2aa;
    margin-bottom: 0;
    font-weight: 600;
}

.service-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-image-placeholder {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    text-align: center;
}

.service-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
}

/* 服务详情页面 */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-item h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: #555;
    line-height: 1.8;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.service-detail-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-detail-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    margin-top: 20px;
    font-weight: 400;
}

.service-detail-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
    flex-grow: 1;
}

.service-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 0;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    align-self: stretch;
    object-fit: contain;
    flex-shrink: 0;
}

/* 事务所信息 */
.office-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    padding-left: 120px;
}

.office-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-list {
    list-style: none;
}

.info-item {
    margin-bottom: 25px;
    padding-left: 25px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    width: 12px;
    height: 12px;
    background-image: url('image/事務所概要（事务所简介）/圆点.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 4px;
}

.info-item h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 100px;
    text-align: left;
}

.info-item p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

/* 行政书士介绍 */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: -80px;
    margin-left: 150px;
    margin-right: 50px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-text {
    line-height: 1.8;
    color: #555;
}

.profile-text p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.profile-link {
    color: #20b2aa;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.profile-link:hover {
    text-decoration: underline;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 0;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 150px;
    flex-shrink: 0;
    text-align: right;
}

.form-group:has(textarea) {
    flex-direction: column;
    align-items: flex-start;
}

.form-group:has(textarea) label {
    text-align: left;
    min-width: auto;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20b2aa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group:has(textarea) {
    align-items: flex-start;
}

.form-group:has(textarea) label {
    padding-top: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;
    flex: 1;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    background-color: #20b2aa;
    color: white;
    padding: 12px 50px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    float: right;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #1a9b94;
}

/* 流程步骤 */
.process-flow {
    margin: 60px 0;
}

.process-flow h2,
.process-flow h3 {
    text-align: left;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    padding-left: 150px;
    position: relative;
    padding-bottom: 0;
}

.process-flow h2::after,
.process-flow h3::after {
    display: none;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    width: 100%;
    padding-left: 0;
}

.process-step {
    flex: 0 1 auto;
    text-align: left;
    position: relative;
    width: 250px;
}

.step-box {
    background-color: #20b2aa;
    color: white;
    padding: 10px 30px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 0;
    min-height: 40px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 1;
}

.step-box-first {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    padding-right: 40px;
}

.step-box-middle {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    padding-left: 40px;
    padding-right: 40px;
}

.step-box-last {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    padding-left: 40px;
    padding-right: 40px;
}

.step-number {
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    color: white !important;
    z-index: 10;
    position: relative;
    display: inline;
}

.step-box h3 {
    font-size: 0.95rem;
    color: white !important;
    margin: 0;
    font-weight: 500;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    white-space: nowrap;
    display: inline;
}



.process-step p {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 行动号召按钮 */
.cta-section {
    text-align: center;
    margin: 60px 0 0 0;
    padding: 50px 40px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.cta-section p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 14px 50px;
    background-color: #20b2aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #1a9b94;
}

/* 页脚样式 */
.footer {
    background-color:#ccc;
    padding: 50px 0 30px;
    margin-top: 0;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 0 40px;
}

.footer-left h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 80px;
    height: 60px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-info {
    list-style: none;
    margin-bottom: 0;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-info-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    display: block;
}

.footer-info-icon-phone {
    width: 25px;
    height: 16px;
    object-fit: contain;
    margin-left: 0;
}

.footer-service-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.footer-right {
    display: flex;
    flex-direction: column;
    margin-left: -100px;
    margin-top: 0;
}

.footer-service-title {
    font-size: 2.5rem;
    color: #999;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 2px;
    margin-top: 0;
}

.footer-services {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-services li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
    padding-top: 20px;
    position: relative;
}

.footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 358px;
    height: 1px;
    background-color: #e0e0e0;
}

.footer-nav li {
    color: #555;
    font-size: 0.95rem;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 8px;
}

.footer-nav a:hover {
    color: #20b2aa;
}

.footer-nav li:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    color: #ccc;
}

/* 页面标题区域 */
.page-header {
    text-align: left;
    margin-bottom: 50px;
    padding-top: 40px;
}

.page-header h1,
.page-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    padding-bottom: 15px;
    position: relative;
    text-align: left;
    padding-left: 120px;
}

.page-header h1::after,
.page-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 120px;
    width: 80px;
    height: 8px;
    background-color: #20b2aa;
    display: block;
}

.page-header p {
    font-size: 1.05rem;
    color: #666;
    margin-top: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .service-details,
    .office-info,
    .profile-section {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step::after {
        display: none;
    }

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

    .container {
        padding: 0 20px;
    }

    .content-section,
    .welcome-section,
    .cta-section {
        padding: 40px 20px;
    }
}
