main {
    margin: 56px auto;
    text-align: center;
    position: static;
    z-index: auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a2640;
    line-height: 1.3;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 17px;
    color: #5a6a7e;
    margin-bottom: 52px;
}

.generate-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(26,110,245,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.input-row { display: flex; gap: 12px; }

.input-wrap {
    flex: 1;
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e0e8f5;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    color: #28334b;
    background: #f8faff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
    border-color: #1a6ef5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,110,245,0.1);
}

#suggest-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e0e8f5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 200;
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
}

.suggest-item {
    padding: 11px 16px;
    font-size: 14px;
    cursor: pointer;
    color: #28334b;
    transition: background 0.15s;
}

.suggest-item:hover {
    background: #f0f4ff;
    color: #1a6ef5;
}

.generate-btn {
    flex-shrink: 0;
    width: 120px;
    height: 50px;
    background: linear-gradient(135deg, #2a7ef6 0%, #1058d9 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,110,245,0.35);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.generate-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,110,245,0.4);
}

.generate-btn:disabled {
    background: #c0c8d4;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

#progress-wrap { display: none; }

#page-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 13, 42, 0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 36px;
    transition: opacity 0.6s ease;
}

.ai-pulse-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(42, 126, 246, 0.7);
    animation: pulse-expand 2.4s ease-out infinite;
}

.ring1 { animation-delay: 0s; }
.ring2 { animation-delay: 0.8s; }
.ring3 { animation-delay: 1.6s; }

@keyframes pulse-expand {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0;   }
}

.ai-pulse-center {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a7ef6, #1058d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    animation: center-glow 1.6s ease-in-out infinite alternate;
}

@keyframes center-glow {
    from { box-shadow: 0 0 20px rgba(42,126,246,0.5), 0 0 40px rgba(42,126,246,0.2); }
    to   { box-shadow: 0 0 36px rgba(42,126,246,0.9), 0 0 70px rgba(42,126,246,0.4); }
}

#page-mask-text {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    min-height: 22px;
    transition: opacity 0.4s;
}

.mask-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 260px;
}

#page-mask-bar-bg {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}

#page-mask-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2a7ef6, #60a5fa);
    border-radius: 2px;
    transition: width 0.1s linear;
}

#page-mask-pct {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

#no-result {
    display: none;
    margin-top: 36px;
    color: #5a6a7e;
    font-size: 15px;
}

#result-box {
    display: none;
    margin-top: 36px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    text-align: left;
}

.app-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.app-icon-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.app-info { flex: 1; }

.app-name {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.app-name-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a2640;
}

.app-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.app-tag {
    display: inline-block;
    background: #eef3ff;
    color: #1a6ef5;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.app-meta {
    font-size: 13px;
    color: #7a8a9e;
    margin-bottom: 16px;
}

.app-meta span { margin-right: 16px; }

.app-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2a7ef6 0%, #1058d9 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(26,110,245,0.3);
    transition: opacity 0.2s, transform 0.15s;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.app-download-url {
    font-size: 12px;
    color: #1a6ef5;
    word-break: break-all;
    margin-bottom: 16px;
}

#description-box {
    display: none;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5a6a7e;
    line-height: 1.9;
    background: #f8faff;
    border-left: 3px solid #1a6ef5;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

#title-box {
    display: none;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5a6a7e;
    line-height: 1.9;
    background: #f8faff;
    border-left: 3px solid #1a6ef5;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

.screenshots-title {
    font-size: 14px;
    font-weight: 600;
    color: #3d4a5c;
    margin-bottom: 12px;
}

.screenshots-scroll {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.screenshots-scroll img {
    flex: 1;
    min-width: 0;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: zoom-in;
}

#img-preview {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999;
    pointer-events: none;
}

#img-preview img {
    position: fixed;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    margin: 0 40px;
}

#article-box {
    display: none;
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    text-align: left;
    line-height: 1.9;
    font-size: 15px;
    color: #28334b;
}

.article-header {
    font-size: 15px;
    font-weight: 600;
    color: #3d4a5c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4fa;
}

.keyword-hint {
    margin-top: 14px;
    font-size: 13px;
    color: #7a8a9e;
}

.keyword-hint a { color: #1a6ef5; text-decoration: none; }
.keyword-hint a:hover { text-decoration: underline; }

#error-msg {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #e53935;
    background: #fff5f5;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
}

@media (max-width: 640px) {
    main { margin: 32px auto; text-align: left; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 32px; }
    .generate-box { padding: 20px 16px; }
    .input-row { flex-direction: column; }
    .generate-btn { width: 100%; }
}
