.name-container {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #2C3E50 100%);
    min-height: 100vh;
}

.name-container .header {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
}

.name-container .header h1 {
    color: #ECF0F1;
}

.name-content {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.name-title {
    text-align: center;
    color: #ECF0F1;
    margin-bottom: 30px;
}

.name-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.name-title p {
    font-size: 16px;
    opacity: 0.9;
}

.name-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: center;
}

.name-input-box {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.name-input {
    width: 120px;
    height: 120px;
    font-size: 48px;
    text-align: center;
    border: 3px solid #3498DB;
    border-radius: 15px;
    background: white;
    color: #2C3E50;
    transition: all 0.3s;
}

.name-input:focus {
    outline: none;
    border-color: #E74C3C;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    transform: scale(1.05);
}

.input-hint {
    text-align: center;
    color: #7F8C8D;
    font-size: 14px;
    margin-top: 10px;
}

.name-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.name-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.name-btn.secondary {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
    margin-bottom: 10px;
}

/* 分析动画 */
.analyze-section {
    animation: fadeIn 0.5s ease-out;
}

.analyze-animation {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.name-display {
    font-size: 72px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 30px;
    letter-spacing: 10px;
}

.stroke-animation {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brush-stroke {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #E74C3C, transparent);
    animation: brushMove 2s ease-in-out infinite;
}

@keyframes brushMove {
    0%, 100% { transform: translateX(-100px); opacity: 0; }
    50% { transform: translateX(100px); opacity: 1; }
}

.analyze-text {
    font-size: 18px;
    color: #7F8C8D;
}

/* 五行展示 */
.wuxing-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.wuxing-title {
    text-align: center;
    margin-bottom: 30px;
}

.wuxing-title h3 {
    font-size: 24px;
    color: #2C3E50;
}

.wuxing-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.wuxing-svg {
    width: 100%;
    height: 100%;
}

.wuxing-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.center-element {
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.wuxing-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.wuxing-item {
    text-align: center;
    padding: 15px 10px;
    background: #F8F9FA;
    border-radius: 10px;
    transition: all 0.3s;
}

.wuxing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.element-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 5px;
}

.element-name {
    display: block;
    font-size: 14px;
    color: #7F8C8D;
    margin-bottom: 5px;
}

.element-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #2C3E50;
}

/* 结果卡片 */
.result-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.result-card h3 {
    text-align: center;
    color: #2C3E50;
    font-size: 28px;
    margin-bottom: 20px;
}

.result-card .fortune-result {
    background: linear-gradient(135deg, #ECF0F1 0%, #BDC3C7 100%);
    padding: 25px;
    border-radius: 15px;
    line-height: 1.8;
    color: #2C3E50;
    margin-bottom: 20px;
    border-left: 4px solid #3498DB;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .name-input {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }

    .name-display {
        font-size: 48px;
    }

    .wuxing-details {
        grid-template-columns: repeat(3, 1fr);
    }

    .name-form,
    .analyze-animation,
    .wuxing-section,
    .result-card {
        padding: 25px;
    }
}

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

/* 环形进度条动画 */
@keyframes fillCircle {
    from {
        stroke-dashoffset: 502;
    }
}

/* 支付选择样式 */
.payment-section {
    padding: 20px;
}

.payment-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.payment-box h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.payment-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.payment-option {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-option.recommended {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #8B4513;
}

.payment-option.recommended h4,
.payment-option.recommended p {
    color: #8B4513;
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #8B4513;
    color: #FFD700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.option-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.payment-option h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #333;
}

.payment-option p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 20px;
}

.price span {
    font-size: 48px;
}

.name-btn.free,
.name-btn.paid {
    width: 100%;
    padding: 12px;
    margin: 0;
}

.name-btn.free {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.name-btn.paid {
    background: #8B4513;
    color: #FFD700;
}

@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* 页面免责声明样式 */
.page-disclaimer {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 20px;
    text-align: center;
    color: #FFD700;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    animation: disclaimerGlow 3s ease-in-out infinite;
}

.page-disclaimer .disclaimer-icon {
    font-size: 16px;
}

@keyframes disclaimerGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 193, 7, 0.15);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 193, 7, 0.3);
    }
}

@media (max-width: 768px) {
    .page-disclaimer {
        margin: 10px 15px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .page-disclaimer .disclaimer-icon {
        font-size: 14px;
    }
}
