/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff; /* 页面背景白色 */
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 主容器 ===== */
.app-container {
    position: relative;
    width: 100vw;
    height: calc(100vw * (16/9)); /* 9:16比例 */
    max-width: calc(100vh * (9/16)); /* 最大宽度 */
    max-height: 100vh;
    margin: 0 auto;
    background-color: #FFF9F0; /* 内容区奶白色背景 */
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.1); /* 添加柔和阴影 */
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

/* 宽屏适配 */
@media (min-aspect-ratio: 9/16) {
    .app-container {
        width: calc(100vh * (9/16));
        height: 100vh;
    }
}

/* ===== 内容区域 ===== */
.content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFEEDD 100%); /* 渐变背景 */
}

/* ===== 标题样式 ===== */
.title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.title h1 {
    color: #5C4033;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #A67C52, #D2B48C);
    margin: 0 auto;
    border-radius: 3px;
}

/* ===== 输入框区域 ===== */
.input-area {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.input-box {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.input-box textarea {
    width: 100%;
    height: 100%;
    padding: 15px;
    border: 2px solid #D2B48C;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.1);
    transition: all 0.3s ease;
}

.input-box textarea:focus {
    outline: none;
    border-color: #A67C52;
    box-shadow: 0 4px 20px rgba(166, 124, 82, 0.2);
}

.input-box textarea::placeholder {
    color: #B5A189;
    font-style: italic;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-generate {
    position: absolute;
    bottom: -25px;
    right: 0;
    background: linear-gradient(to right, #A67C52, #D2B48C);
    color: white;
    z-index: 2;
}

.btn-random {
    margin-top: 40px;
    align-self: center;
    background: linear-gradient(to right, #D2B48C, #F5DEB3);
    color: #5C4033;
    width: 180px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(1px);
}

/* ===== 装饰元素 ===== */
.decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.decoration.top-left {
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #A67C52 0%, transparent 70%);
    border-radius: 50%;
}

.decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #D2B48C 0%, transparent 70%);
    border-radius: 50%;
}