/* 日期选择器模态窗口样式 - 最高优先级 */
#npfc-date-picker-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
}

#npfc-date-picker-modal > div {
    background: #2a2a2a !important;
    border: 2px solid #444 !important;
    border-radius: 10px !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    margin: 20px !important;
    padding: 0 !important;
}

#npfc-date-picker-modal h2 {
    color: white !important;
    margin: 0 0 20px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#npfc-date-picker-modal label {
    color: white !important;
    display: block !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#npfc-date-picker-modal select {
    width: 100% !important;
    padding: 8px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    border: 1px solid #555 !important;
    background: #333 !important;
    color: white !important;
    cursor: pointer !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 36px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#npfc-date-picker-modal select:focus {
    outline: none !important;
    border-color: #777 !important;
    background: #3a3a3a !important;
    box-shadow: none !important;
}

#npfc-date-picker-modal select option {
    background: #333 !important;
    color: white !important;
    padding: 8px !important;
    font-size: 14px !important;
}

#npfc-date-picker-modal button {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
}

#npfc-date-picker-modal button:hover {
    background: #006ba1 !important;
    opacity: 1 !important;
    transform: none !important;
}

#npfc-date-picker-modal button:last-child {
    background: #666 !important;
}

#npfc-date-picker-modal button:last-child:hover {
    background: #555 !important;
}

.npfc-calculator-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.npfc-calculator-wrapper img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.npfc-calculator-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.npfc-left-container {
    flex: 4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.npfc-right-container {
    flex: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 600px;
}

.npfc-right-default {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.npfc-right-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.npfc-result-container {
    width: 100%;
    min-height: 600px;
    border: 1px solid #4e4e4e;
    border-radius: 80px 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.npfc-result-content {
    position: relative;
    z-index: 2;
}

.npfc-result-section {
    margin-bottom: 10px;
}

.npfc-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px !important;
}

.npfc-bullet {
    color: #1d8644;
    font-size: 24px;
    font-weight: bold;
    margin-right: 8px;
}

.npfc-result-text {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    padding-left: 15px;
}

/* 4:6 占比的行容器 */
.npfc-result-section-row,
.npfc-result-footer-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.npfc-col-40 {
    flex: 0 0 40%;
    max-width: 40%;
}

.npfc-col-60 {
    flex: 0 0 60%;
    max-width: 60%;
}

.npfc-result-section-row .npfc-result-section {
    margin-top: 0;
}

.npfc-result-container .npfc-result-footer {
    margin-top: 20px;
    border-radius: 8px;
    color: #888 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding-left: 15px;
}

.npfc-result-container .npfc-result-footer * {
    color: #888 !important;
    font-size: 16px !important;
}

.npfc-result-button-wrapper {
    margin-top: 0;
    text-align: center;
}

.npfc-result-button {
    display: inline-block;
    padding: 10px 20px;
    background: #088e3a;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.npfc-result-button:hover {
    background: #156535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 134, 68, 0.3);
}

.npfc-result-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.npfc-result-bg-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 手机端背景图 */
.npfc-result-bg-image-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.npfc-date-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 90%;
    margin: 0 auto 50px;
    align-items: center;
    background: linear-gradient(135deg, rgba(50,50,50,0.9), rgba(30,30,30,0.9));
    border-radius: 15px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2),
        0 0 30px rgba(212, 175, 55, 0.1);
    animation: npfc-glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes npfc-glow-pulse {
    0% {
        box-shadow: 
            0 0 10px rgba(212, 175, 55, 0.4),
            0 0 20px rgba(212, 175, 55, 0.2),
            0 0 30px rgba(212, 175, 55, 0.1);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(212, 175, 55, 0.6),
            0 0 30px rgba(212, 175, 55, 0.4),
            0 0 40px rgba(212, 175, 55, 0.2);
    }
}

.npfc-date-input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 3px;
    background: linear-gradient(45deg, 
        #fff, 
        #f4e4b7, 
        #d4af37, 
        #c5a028, 
        #8b7500,
        #c5a028,
        #d4af37,
        #f4e4b7,
        #fff
    );
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: npfc-border-animation 4s ease infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6));
}

@keyframes npfc-border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}







.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-inputs-left {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-button-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-input-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 80px;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input {
    flex: 1;
    padding: 6px 15px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    background: #000 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input::placeholder,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input::-webkit-input-placeholder,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input::-webkit-input-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input::-moz-placeholder,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input::-moz-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input:-ms-input-placeholder,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input:-ms-input-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-email-input:focus,
.npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input:focus {
    outline: none !important;
    color: #fff !important;
    border-color: #555 !important;
}

/* 统一的日期选择器样式 - 防止被主题覆盖 */
.npfc-calculator-wrapper .npfc-unified-date-picker,
.npfc-unified-date-picker {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input,
.npfc-unified-date-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 40px 8px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 36px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input:focus,
.npfc-unified-date-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #555 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input:hover,
.npfc-unified-date-input:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #555 !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input::-webkit-input-placeholder,
.npfc-unified-date-input::-webkit-input-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input::-moz-placeholder,
.npfc-unified-date-input::-moz-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input:-ms-input-placeholder,
.npfc-unified-date-input:-ms-input-placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-unified-date-input::placeholder,
.npfc-unified-date-input::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.npfc-calculator-wrapper .npfc-date-icon,
.npfc-date-icon {
    position: absolute !important;
    right: 12px !important;
    top: 30% !important;
    transform: translateY(-50%) !important;
    color: #888 !important;
    cursor: pointer !important;
    pointer-events: none !important;
    z-index: 2 !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

/* 下拉面板样式 - 加强优先级防止被覆盖 */
.npfc-calculator-wrapper .npfc-date-dropdown,
.npfc-date-dropdown {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    min-width: 280px !important;
    width: 100% !important;
    min-height: 200px !important;
    max-height: 400px !important;
    display: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.npfc-calculator-wrapper .npfc-date-dropdown-header,
.npfc-date-dropdown-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #444 !important;
    background: #2a2a2a !important;
    margin: 0 !important;
    border-radius: 8px 8px 0 0 !important;
}

.npfc-calculator-wrapper .npfc-date-dropdown-title,
.npfc-date-dropdown-title {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.npfc-calculator-wrapper .npfc-date-dropdown-close,
.npfc-date-dropdown-close {
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.npfc-calculator-wrapper .npfc-date-dropdown-close:hover,
.npfc-date-dropdown-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.npfc-calculator-wrapper .npfc-date-dropdown-content,
.npfc-date-dropdown-content {
    padding: 16px !important;
    min-height: 140px !important;
    background: #2a2a2a !important;
    margin: 0 !important;
    border-radius: 0 0 8px 8px !important;
}

.npfc-calculator-wrapper .npfc-date-row,
.npfc-date-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.npfc-calculator-wrapper .npfc-date-row:last-child,
.npfc-date-row:last-child {
    margin-bottom: 0 !important;
}

.npfc-calculator-wrapper .npfc-date-row label,
.npfc-date-row label {
    width: 60px !important;
    min-width: 60px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-right: 12px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.npfc-calculator-wrapper .npfc-dropdown-select,
.npfc-dropdown-select {
    flex: 1 !important;
    max-width: 100% !important;
    padding: 8px 32px 8px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #555 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    min-height: 36px !important;
    height: auto !important;
    line-height: 1.4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 8px center !important;
    background-repeat: no-repeat !important;
    background-size: 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.npfc-calculator-wrapper .npfc-dropdown-select:focus,
.npfc-dropdown-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #777 !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.npfc-calculator-wrapper .npfc-dropdown-select:hover,
.npfc-dropdown-select:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #666 !important;
}

.npfc-calculator-wrapper .npfc-dropdown-select option,
.npfc-dropdown-select option {
    background: #2a2a2a !important;
    color: #fff !important;
    padding: 8px !important;
    font-size: 14px !important;
}

/* 移动端优化 - 保持同行显示 */
@media (max-width: 768px) {
    .npfc-date-selector {
        gap: 4px; /* 减小间距 */
        flex-wrap: nowrap; /* 强制不换行 */
    }
    
    .npfc-date-select {
        min-width: 45px; /* 进一步减小最小宽度 */
        max-width: 70px;
        font-size: 14px; /* 调整字体大小 */
        padding: 6px 24px 6px 6px; /* 减小内边距 */
        background-size: 12px;
        background-position: right 4px center;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .npfc-date-selector {
        gap: 3px;
    }
    
    .npfc-date-select {
        min-width: 40px;
        max-width: 60px;
        font-size: 13px;
        padding: 6px 22px 6px 4px;
    }
}

.npfc-submit-btn {
    padding: 12px 10px;
    background: transparent;
    color: #1d8644;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    white-space: normal;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.4;
}

.npfc-submit-btn:hover {
    color: #22c55e;
    transform: scale(1.02);
}

.npfc-calculator-wrapper .npfc-left-container .npfc-title-image {
    text-align: center;
    margin-bottom: 30px;
}

.npfc-calculator-wrapper .npfc-left-container .npfc-title-image img {
    max-width: 36% !important;
    height: auto !important;
    width: auto !important;
}

.npfc-zodiac-container {
    display: flex;
    width: 80%;
    margin: 0 auto;
    gap: 50px;
}

.npfc-zodiac-item {
    width: 50%;
    text-align: center;
}

.npfc-zodiac-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 3px solid #f0d286;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npfc-zodiac-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.npfc-zodiac-name {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    display: none;
    background: #000;
    padding: 8px 16px;
    border-radius: 80px;
    display: inline-block;
}

/* 五行和IQ部分样式（现在嵌套在zodiac-item内） */
.npfc-element-section,
.npfc-iq-section {
    margin-top: 30px;
    text-align: center;
}

/* 五行和IQ显示容器 - 独立容器确保水平对齐 */
.npfc-display-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 80%;
    margin: 0 auto;
    gap: 50px;
}

.npfc-display-item {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.npfc-section-title-image {
    margin-bottom: 5px;
    text-align: center;
}

.npfc-section-title-image img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.npfc-element-display,
.npfc-iq-display {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.npfc-element-display img,
.npfc-iq-display .npfc-iq-default-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.npfc-element-placeholder,
.npfc-iq-placeholder {
    width: 100%;
    height: 100%;
    border: 3px dashed #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npfc-placeholder-text {
    font-size: 48px;
    color: #555;
    font-weight: bold;
}

.npfc-element-name-display {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.npfc-iq-description {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    padding-top: 8px;
}

.npfc-iq-result {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npfc-iq-number {
    font-size: 30px;
    font-weight: bold;
    color: #22c55e;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    line-height: 1;
}

.npfc-iq-message {
    font-size: 11px;
    color: #777777;
    line-height: 1.5;
    display: none;
}

/* 保留旧的样式用于兼容 */
.npfc-elements-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 50px;
}

.npfc-element-item {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
}

.npfc-element-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.npfc-element-item.active img {
    transform: scale(1.1);
}

.npfc-element-name {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #888;
    transition: color 0.3s;
}

.npfc-element-item.active .npfc-element-name {
    color: #fff;
}

@media (max-width: 768px) {
    .npfc-calculator-wrapper {
        padding: 15px;
    }
    
    .npfc-calculator-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .npfc-right-container {
        min-height: auto;
    }
    
    .npfc-result-container {
        padding: 30px 20px;
        min-height: auto;
    }
    
    /* 移动端垂直堆叠 */
    .npfc-result-section-row,
    .npfc-result-footer-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .npfc-col-40,
    .npfc-col-60 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .npfc-result-section-row .npfc-result-section {
        margin-top: 0px;
    }
    
    .npfc-result-section-row .npfc-result-section:first-child {
        margin-top: 0;
    }
    
    .npfc-result-title {
        font-size: 16px;
    }
    
    .npfc-result-text {
        font-size: 14px;
        padding-left: 28px;
    }
    
    .npfc-result-container .npfc-result-footer,
    .npfc-result-container .npfc-result-footer * {
        font-size: 14px !important;
    }
    
    .npfc-zodiac-container {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
    
    .npfc-display-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    
    .npfc-result-bg-image {
        display: none !important;
    }
    
    .npfc-result-bg-image-mobile {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    
    .npfc-result-bg-image-mobile img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    .npfc-date-input-wrapper {
        width: 90%;
        padding: 15px 10px 10px;
        margin-bottom: 20px;
        gap: 10px;
        flex-direction: column;
    }
    
    .npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-inputs-left {
        flex: 0 0 60%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-button-right {
        flex: 1;
        width: 100%;
    }
    
    .npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-width: 0;
    }
    
    .npfc-submit-btn {
        padding: 5px 15px;
        font-size: 13px;
        width: 100%;
    }
    
    .npfc-result-button {
        display: inline-block;
        padding: 15px 20px;
        background: #1d8644;
        color: #fff !important;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s;
    }
    
    .npfc-calculator-wrapper .npfc-left-container .npfc-title-image img {
        max-width: 70% !important;
    }
    
    .npfc-zodiac-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .npfc-zodiac-circle {
        width: 80%;
        height: auto;
        aspect-ratio: 1;
        border: 2px solid #f0d286;
    }
    
    .npfc-elements-container {
        gap: 10px;
        padding: 0 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .npfc-element-item {
        flex: 1;
        min-width: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .npfc-element-item img {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .npfc-element-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .npfc-calculator-wrapper {
        padding: 10px;
    }
    
    .npfc-date-input-wrapper {
        width: 90%;
        padding: 15px 10px 10px;
        margin-bottom: 20px;
        gap: 10px;
        flex-direction: column;
    }
    
    .npfc-calculator-wrapper .npfc-date-input-wrapper .npfc-birthdate-input {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .npfc-submit-btn {
        font-size: 13px;
        width: 100%;
    }
    
    .npfc-calculator-wrapper .npfc-left-container .npfc-title-image img {
        max-width: 80% !important;
    }
    
    .npfc-zodiac-container {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
    
    .npfc-display-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    
    .npfc-zodiac-circle {
        width: 80%;
        height: auto;
        aspect-ratio: 1;
        border: 2px solid #f0d286;
    }
    
    .npfc-elements-container {
        gap: 5px;
        padding: 0 5px;
    }
    
    .npfc-element-item img {
        width: 40px;
        height: 40px;
    }
    
    .npfc-element-name {
        font-size: 10px;
    }
}