body {
	font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	margin-right: calc(100% - 100vw);/* 部分浏览器滚动条问题 */
	overflow-x: hidden;/* 横向滚动条问题 */
}

main {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
	padding: 18px 18px 10px 18px;
}

h1 {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#prompt-info {
    margin: 12px auto;
}

#prompt-info a {
    color: rgba(8, 66, 160, 1);
    text-decoration: underline;
}

#prompt-info a:visited {
    color: rgba(8, 66, 160, 1);
    text-decoration: underline;
}

#prompt-info a:hover {
    color: blue;
}

#prompt-info a:active {
    position: relative;
    top: 1px;
}

.input-wrapper {
    display: flex;
    align-items: center;
}

input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    margin-right: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
}

input:hover {
    border-color: rgba(8, 66, 160, 0.8);
}

input:focus {
    border-color: rgba(8, 66, 160, 1);
    outline: none;
    box-shadow: 0 0 2px rgba(8, 66, 160, 0.8);
}

button {
    padding: 8px 20px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background-color: #ddd;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
}

button:hover {
    background-color: #eee;
    color: #555;
}

button:active {
    background: #e9e9e9;
    top: 1px;
}

.result-info {
	 margin: 10px 0; 
}

.result-p {
	 margin: 10px 0; 
	 line-height: 1;
}

#result {
    font-family: Menlo, Consolas, monospace;
    margin-top: 14px;
    word-wrap: break-word;
    white-space: pre-line;
	letter-spacing: 0.5px;
    line-height: 1.4;
}

@media screen and (max-width: 600px) {
	main {
    	font-size: 16px;
	}
	
	.generator {
    	font-size: 16px;
	}

    .generator h1 {
        font-size: 22px;
    }
	
    #prompt-info {
		margin: 8px auto;
        font-size: 15px;
    }

    .generator input {
        font-size: 16px;
        padding: 10px;
    }

    .generator button {
        padding: 8px 8px;
        font-size: 16px;
		white-space: nowrap;
    }
	
	.result-p {
	  	margin: 6px 0; 
		font-size: 16px;
	}

	#result {
        font-size: 16px;
	    margin-top: 10px;
	}

    footer {
        font-size: 14px;
    }
}

#validCount,
#count {
	 border-bottom: 1px solid #000; 
  	 display: inline-block;
}

footer {
    text-align: center;
    margin: 0px auto;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
	max-width: 600px;
}

footer p {
    margin: 6px 0;
}

footer a {
    color: inherit;
	text-decoration: none; 
}

footer a:visited {
    color: inherit;
	text-decoration: none; 
}

footer a:hover {
    color: rgba(8, 66, 160, 1);
    text-decoration: underline;
}

footer a:active {
    position: relative;
    top: 1px;
}
