/*
 * Theme Style A - 紧凑型补充样式
 * 修复固定字输入区域的布局问题
 */

/* 固定字输入区域 - 优化布局 */
.zhongjianzi {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 105px;  /* 与标签宽度(90px) + 间距(15px) 对齐 */
    margin-top: 12px;  /* 添加上边距 */
}

.zhongjianzi .form-label {
    width: auto;  /* 覆盖默认的90px固定宽度 */
    margin-bottom: 0;
    text-align: left;  /* 覆盖右对齐 */
    padding-right: 0;
    font-size: 14px;  /* 稍小的字体 */
    color: #666;  /* 次要文字颜色 */
}

.fixed-word-input {
    width: 100px !important;  /* 固定字输入框较小 */
    padding: 8px 12px !important;
    font-size: 15px !important;
}

/* 调整手机号输入框（如果需要） */
.form-phone-wrapper {
    flex: 1;
}

/* 保持姓氏组的原有样式 */
.surname-group {
    position: relative;
}

/* 确保下拉选择框在左右布局下正常显示 */
.form-select {
    max-width: none;
}

/* 日期单位文字保持紧凑 */
.date-unit {
    font-size: 13px;
    color: var(--text-light);
}

/* 提示文字在左右布局下的调整 */
.form-hint {
    font-size: 12px;  /* 从11px增大到12px */
    color: #95a5a6;  /* 更柔和的灰色 */
    font-style: italic;  /* 斜体，区分主要文字 */
}

/* ==========================================
   右侧悬浮菜单优化 - Style A 专用
   ========================================== */
.right-float {
    position: fixed !important;  /* 改为fixed定位 */
    right: 20px !important;  /* 距离右侧20px */
    top: 50% !important;  /* 始终在屏幕中间 */
    transform: translateY(-50%) !important;  /* 垂直居中 */
    z-index: 9999 !important;  /* 最高层级，在container之上 */
    width: 120px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);  /* 添加阴影，增加层次感 */
    border-radius: 8px;  /* 圆角 */
    overflow: hidden;
}

.right-float ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.right-float ul li {
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);  /* 深色渐变背景 */
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-float ul li:last-child {
    border-bottom: none;
}

.right-float ul li a {
    color: #fff;
    display: block;
    text-decoration: none;
}

.right-float ul li:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));  /* 悬停金色渐变 */
    transform: translateX(-3px);  /* 向左突出 */
    box-shadow: -3px 0 10px rgba(204, 161, 119, 0.3);
}

.right-float ul li:active {
    transform: translateX(-1px) scale(0.98);
}

/* 增强表单区域的视觉分隔 */
.naming-form-style-a .form-group:not(:last-child) {
    padding-bottom: 4px;  /* 添加下内边距 */
}

/* 增强操作项的视觉突出 */
.naming-form-style-a .form-group:hover .form-label {
    color: var(--gold-dark);  /* 悬停时标签变金色 */
    transition: color 0.3s ease;
}

/* 为整个表单区域添加内边距和背景 */
.naming-right {
    padding: 20px;
    border-radius: 12px;
    padding-top: 50px;
}

/* 优化日期单位的显示 */
.date-unit {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    margin: 0 2px;
}

/* 优化选择器的箭头 */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23CCA177' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* 强化输入框和按钮的焦点状态 - UX最佳实践 */
.form-input:focus,
.form-select:focus {
    border-width: 3px;  /* 增粗边框 */
    padding: 9px 13px;  /* 调整padding保持尺寸 */
}

/* 添加微动效 - 提升体验感 */
@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.radio-button.active {
    animation: subtle-bounce 0.5s ease;
}

/* 为必填项添加视觉提示 */
.form-label .required {
    font-size: 18px;
    vertical-align: middle;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 增强表单项之间的分隔感 */
.form-group {
    position: relative;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 90px;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #f0f0f0 10%, #f0f0f0 90%, transparent);
}

.form-group:last-of-type::after {
    display: none;  /* 最后一项不显示分隔线 */
}

/* 优化提交按钮区域 */
.form-submit-wrapper {
    position: relative;
}

.form-submit-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
}

/* 增加提交按钮的脉冲动画，吸引用户注意 */
@keyframes button-pulse {
    0% {
        box-shadow: 0 6px 20px rgba(180, 20, 32, 0.3), 0 2px 6px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(180, 20, 32, 0.5), 0 2px 8px rgba(0,0,0,0.15);
    }
    100% {
        box-shadow: 0 6px 20px rgba(180, 20, 32, 0.3), 0 2px 6px rgba(0,0,0,0.1);
    }
}

.submit-button {
    animation: button-pulse 3s ease-in-out infinite;
}

.submit-button:hover {
    animation: none;  /* 悬停时停止脉冲 */
}

/* ==========================================
   响应式设计 - 完整媒体查询
   目标：自适应各种屏幕尺寸
   ========================================== */

/* 大屏幕优化 (1400px以上) */
@media (min-width: 1400px) {
    .style-a-container,
    .evaluate-container,
    .cjwn-section .container {
        max-width: 1300px;
        margin: 0 auto;
    }
}

/* 中等屏幕 (1200px - 1024px) */
@media (max-width: 1200px) {
    .w1000,
    .container-1000 {
        max-width: 100%;
        width: auto;
        padding: 0 30px;
    }
    
    .naming-container {
        max-width: 100%;
        padding: 30px 20px;
        gap: 40px;
    }
    
    .hprc .section-header {
        margin: 40px auto 30px;
    }
    
    .cjwn-section .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

/* 平板横屏 (1024px - 768px) */
@media (max-width: 1024px) {
    /* 主容器响应式 */
    .style-a-container {
        padding: 0 20px;
    }
    
    /* 核心表单区域 - 改为上下布局 */
    .naming-container {
        flex-direction: column;
        gap: 30px;
        padding: 25px 20px;
    }
    
    .naming-left {
        flex: 1;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .naming-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .naming-right {
        flex: 1;
        max-width: 100%;
    }
    
    /* 评价区域 - 左右列改为上下排列 */
    .hprc .l,
    .hprc .r {
        float: none;
        width: 100% !important;
        margin: 0 0 20px 0;
        height: auto !important;
    }
    
    .hprc .l {
        margin-bottom: 30px;
    }
    
    .hprc .form div div input,
    .hprc .form div div textarea {
        width: 100%;
        max-width: 500px;
    }
    
    .hprc .r .cx input {
        width: calc(100% - 130px);
    }
    
    /* 常见问题区域 */
    .cjwn-section .container {
        padding: 0 20px;
    }
    
    .cjwt_content {
        padding: 30px 20px;
    }
    
    /* 优势对比区域 */
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-center {
        order: -1;
    }
    
    .comparison-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-center {
        order: -1;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 平板竖屏 (768px - 480px) */
@media (max-width: 768px) {
    /* Banner区域 */
    .banner-container {
        padding: 60px 20px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    .banner-features {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .banner-features span {
        font-size: 14px;
        padding: 8px 15px;
        width: 200px;
        text-align: center;
    }
    
    /* 表单区域 - 参考 section-title 的响应式样式 */
    .naming-title {
        font-size: 28px;  /* 保持与 section-title 一致 */
    }
    
    .naming-subtitle {
        font-size: 16px;  /* 适当缩小 */
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .form-label {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 5px;
    }
    
    .form-input-wrapper,
    .form-radio-group,
    .form-date-group,
    .form-wordcount-group {
        flex: 1;
        width: 100%;
    }
    
    .form-radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .radio-button {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .zhongjianzi {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    .fixed-word-input {
        width: 100% !important;
    }
    
    /* 评价区域 */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .hprc .section-header {
        margin: 30px auto 20px;
    }
    
    .hprc h1 {
        font-size: 20px;
        height: auto;
        padding: 15px 10px;
        line-height: 1.4;
    }
    
    .hprc h1 span {
        position: static;
        display: inline;
    }
    
    .hprc .l .pj_title span {
        font-size: 14px;
        margin: 3px;
        padding: 3px 8px;
    }
    
    .hprc .l .hd {
        height: auto;
        max-height: 300px;
    }
    
    .hprc .l .hd ul {
        padding: 10px 15px;
        font-size: 14px;
        line-height: 24px;
    }
    
    #nxt {
        height: auto;
        max-height: 400px;
    }
    
    .hprc .r ul {
        margin: 0 0 0 20px;
        font-size: 14px;
    }
    
    .hprc .form div label {
        width: 100%;
        text-align: left;
        float: none;
    }
    
    .hprc .form div div {
        float: none;
        width: 100%;
    }
    
    .hprc .form div div input,
    .hprc .form div div textarea {
        width: 100% !important;
        max-width: none;
    }
    
    .hprc .r .cx {
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hprc .r .cx input {
        width: 100% !important;
        position: static;
    }
    
    .hprc .r .cx button {
        position: static;
        width: 100% !important;
        right: auto;
        top: auto;
    }
    
    /* 常见问题区域 */
    .cjwt_content {
        padding: 25px 15px;
    }
    
    .cjwt_content ul > li {
        padding: 20px 0;
    }
    
    .cjwt_content dt {
        font-size: 16px;
        padding-left: 30px;
    }
    
    .cjwt_content dt::before {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .cjwt_content dd {
        font-size: 14px;
        padding-left: 30px;
        line-height: 1.8;
    }
    
    /* 优势网格 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 右侧悬浮菜单 - 平板上缩小 */
    .right-float {
        width: 100px;
        right: 10px !important;
    }
    
    .right-float ul li {
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }
}

/* 手机屏幕 (480px以下) */
@media (max-width: 480px) {
    /* Banner区域 */
    .banner-container {
        padding: 40px 15px;
    }
    
    .banner-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .banner-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .banner-features span {
        font-size: 13px;
        padding: 6px 12px;
        width: 180px;
    }
    
    /* 主容器 */
    .style-a-container {
        padding: 0 10px;
    }
    
    .naming-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .naming-image-wrapper {
        max-width: 300px;
    }
    
    .naming-header {
        margin-bottom: 35px;  /* 增加间距 */
    }
    
    .naming-title {
        font-size: 24px;  /* 增大字体 */
        margin-bottom: 12px;
    }
    
    .naming-title::after {
        width: 50px;  /* 缩小装饰线 */
        height: 3px;
    }
    
    .naming-subtitle {
        font-size: 14px;  /* 增大字体 */
        margin-top: 15px;
    }
    
    /* 表单元素 */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .form-select {
        padding: 7px 30px 7px 12px;
        font-size: 14px;
    }
    
    .radio-button {
        padding: 7px 15px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .date-unit {
        font-size: 12px;
    }
    
    .form-hint {
        font-size: 11px;
    }
    
    .submit-button {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
    }
    
    /* 评价区域 */
    .w1000,
    .container-1000 {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .hprc {
        padding-bottom: 0;
    }
    
    .hprc .section-header {
        margin: 20px auto 15px;
    }
    
    .hprc h1 {
        font-size: 18px;
        padding: 12px 10px;
        text-indent: 10px;
    }
    
    .hprc .l .pj_title {
        padding: 8px 5px;
    }
    
    .hprc .l .pj_title span {
        font-size: 12px;
        margin: 2px;
        padding: 2px 6px;
    }
    
    .hprc .l .hd ul,
    .hprc .r ul {
        font-size: 13px;
        line-height: 22px;
    }
    
    .hprc .l .hd ul {
        padding: 8px 10px;
    }
    
    .hprc .r ul {
        margin: 0 0 0 10px;
    }
    
    .hprc .form div label {
        font-size: 14px;
    }
    
    .hprc .form div button {
        font-size: 18px;
        width: 100%;
        height: auto;
        padding: 12px;
    }
    
    /* 常见问题区域 */
    .cjwn-section .container {
        padding: 0 15px;
    }
    
    .cjwt_content {
        padding: 20px 12px;
    }
    
    .cjwt_content dt {
        font-size: 15px;
        padding-left: 28px;
    }
    
    .cjwt_content dt::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .cjwt_content dd {
        font-size: 13px;
        padding-left: 28px;
        line-height: 1.7;
    }
    
    /* CTA按钮 */
    .cta-button-large {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    /* 右侧悬浮菜单 - 手机上隐藏或缩到最小 */
    .right-float {
        width: 60px;
        right: 5px !important;
    }
    
    .right-float ul li {
        height: 35px;
        line-height: 35px;
        font-size: 11px;
        writing-mode: horizontal-tb;
    }
}

/* 超小屏幕 (360px以下) */
@media (max-width: 360px) {
    .banner-title {
        font-size: 20px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .naming-title {
        font-size: 20px;  /* 与 section-title 保持接近 */
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .radio-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .submit-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    /* 右侧悬浮菜单完全隐藏 */
    .right-float {
        display: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-container {
        padding: 30px 20px;
    }
    
    .naming-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .naming-left {
        max-width: 40%;
    }
    
    .naming-right {
        max-width: 60%;
    }
    
    .naming-image-wrapper {
        max-width: 250px;
    }
}

/* ==========================================
   手机版Banner区域样式
   参考PC版设计，适配手机屏幕
   ========================================== */
.mobile-banner-style-a {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    position: relative;
    overflow: hidden;
    padding: 30px 15px;
}

.mobile-banner-style-a::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-banner-content {
    text-align: center;
    color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.mobile-banner-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease-out;
}

.mobile-banner-subtitle {
    font-size: 15px;
    margin: 0 0 20px 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.mobile-banner-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mobile-banner-features span {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.mobile-banner-features span:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 手机版Logo响应式优化 */
#header .w1000 {
    max-width: 100%;
    padding: 0;
}

#header .w1000 a {
    display: block;
}

#header .w1000 img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    padding: 15px 10px !important;
}

/* 手机屏幕下进一步优化Banner */
@media (max-width: 480px) {
    .mobile-banner-style-a {
        min-height: 180px;
        padding: 25px 15px;
    }
    
    .mobile-banner-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .mobile-banner-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .mobile-banner-features {
        gap: 8px;
    }
    
    .mobile-banner-features span {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .mobile-banner-title {
        font-size: 20px;
    }
    
    .mobile-banner-subtitle {
        font-size: 13px;
    }
    
    .mobile-banner-features span {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ==========================================
   居中表单的响应式适配
   ========================================== */

/* 平板和小屏幕 */
@media (max-width: 1024px) {
    .naming-centered {
        max-width: 90%;
        padding: 35px 40px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .naming-centered {
        max-width: 95%;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .naming-header {
        margin-bottom: 40px;  /* 增加间距 */
    }
    
    .naming-title {
        font-size: 28px;  /* 增大字体 */
    }
    
    .naming-title::after {
        width: 50px;
        height: 3px;
    }
    
    .naming-subtitle {
        font-size: 16px;  /* 增大字体 */
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {
    .naming-centered {
        max-width: 100%;
        padding: 20px 15px;
        border-radius: 12px;
        margin: 0 10px;
    }
    
    .naming-header {
        margin-bottom: 30px;  /* 保持适当间距 */
    }
    
    .naming-title {
        font-size: 22px;  /* 增大字体 */
    }
    
    .naming-title::after {
        width: 40px;  /* 进一步缩小装饰线 */
        height: 3px;
    }
    
    .naming-subtitle {
        font-size: 14px;  /* 增大字体 */
    }
    
    .submit-button {
        padding: 14px 24px;
        font-size: 17px;
    }
}

