* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #0A0E21 0%, #141C36 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(to right, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.header-image,
.content-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.input-container {
    margin-bottom: 20px;
}

.stock-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00FFFF;
    background: rgba(10, 14, 33, 0.7);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.stock-input:focus {
    border-color: #FF00FF;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.stock-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 按钮样式 */
.analyze-btn,
.modal-btn {
    width: 100%;
    padding: 16px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    color: white;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #00FFFF, #FF00FF, #00FFFF);
    background-size: 200% 200%;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    animation: pulse 2.5s infinite, gradientShift 5s infinite linear;
}

/* 悬停浮动效果 */
.analyze-btn:hover,
.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

/* 光泽效果 */
.analyze-btn:before,
.modal-btn:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* 光泽动画 */
@keyframes shine {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

/* 呼吸灯动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    }
}

/* 背景渐变流动 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #141C36 0%, #0A0E21 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 350px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #00FFFF;
}

.progress-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 150px;
    height: 150px;
}

.progress-ring__circle {
    stroke: #00FFFF;
    stroke-width: 8;
    fill: transparent;
    transition: stroke-dashoffset 0.5s linear;
}

.progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    fill: transparent;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #00FFFF;
}

.modal-text {
    margin-bottom: 15px;
    line-height: 1.5;
}

.highlight {
    color: #FF00FF;
    font-weight: bold;
}
