/* ============================================
   联系我们页面样式 - contact.css
   ============================================ */

/* 页面标题区 - 覆盖 page-body 的 padding，改为页面专属间距 */
.contact-hero.page-body {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.contact-hero-content {
    max-width: 68rem;
    margin: 0 auto;
    text-align: center;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    color: #222222;
}

@media (min-width: 768px) {
    .contact-hero-title {
        font-size: 3.75rem;
    }
}

.contact-hero-desc {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

/* 主内容区网格 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

/* 询盘表单卡片 */
.contact-form-card {
    background-color: #ffffff;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    position: sticky;
    top: 8rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222222;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #222222;
}

.form-input,
.form-select,
.form-textarea {
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: #ffffff;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #222222;
    transition: all 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.form-textarea {
    height: auto;
    min-height: 6rem;
    padding: 0.75rem;
    resize: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
    cursor: pointer;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem;
    background-color: #222222;
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 1rem;
    border-radius: calc(var(--radius) - 2px);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.form-submit-btn:hover {
    background-color: hsl(var(--primary-hover));
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.form-footer {
    font-size: 0.75rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    padding-top: 0.5rem;
}

.form-footer a {
    color: hsl(var(--accent));
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 全球办公室区 */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 3rem;
}

.section-bar {
    width: 3rem;
    height: 0.25rem;
    background-color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #222222;
}

.section-desc {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
}

/* 标签页 */
.tabs-container {
    width: 100%;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0.25rem;
    background-color: #ffffff;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 2rem;
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    font-size: 0.975rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 4px);
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.tab-trigger:hover {
    color: #222222;
}

.tab-trigger.active {
    background-color: #222222;
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 办公室卡片 */
.office-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .office-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.office-card {
    background-color: #ffffff;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.office-card:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.office-card.expanded {
    border-color: hsl(var(--primary));
}

.office-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.office-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #222222;
}

.office-card-location {
    font-size: 0.875rem;
    color: hsl(var(--accent));
    font-weight: 600;
    margin-top: 0.25rem;
}

.office-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.office-card:hover .office-card-icon,
.office-card.expanded .office-card-icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.office-card-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.office-info-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.office-info-value {
    font-size: 0.975rem;
    color: #222222;
    font-weight: 600;
}

.office-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.office-card-hint {
    font-size: 0.95rem;
    color: hsl(214.89deg 55.29% 50%);
    font-weight: 500;
}

.office-card-arrow {
    color: hsl(var(--muted-foreground));
    transition: transform 0.3s;
}

.office-card.expanded .office-card-arrow {
    transform: rotate(180deg);
}

/* 办公室详情展开区 */
.office-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.office-card.expanded .office-details {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.office-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.office-detail-item:last-child {
    margin-bottom: 0;
}

.office-detail-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.office-detail-content {
    flex: 1;
}

.office-detail-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.office-detail-value {
    font-size: 0.875rem;
    color: #222222;
}

.office-detail-value a {
    color: hsl(var(--accent));
    text-decoration: none;
}

.office-detail-value a:hover {
    text-decoration: underline;
}

/* 全球分布地图区 */
.map-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid hsl(var(--border));
}

.map-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222222;
}

.map-container {
  width: 100%;
  height: 330px; /* 你想多高就改这里 */
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

/* 强制铺满，不受后台影响 */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* FAQ CTA区 */
.faq-cta-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid hsl(var(--border));
}

.faq-cta-content {
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
}

.faq-cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222222;
}

.faq-cta-desc {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    transition: background-color 0.2s;
}

.faq-cta-btn:hover {
    background-color: hsl(var(--primary-hover));
}

.faq-cta-btn svg {
    width: 1rem;
    height: 1rem;
}
