div+css布局实现手机平板端大气好看邀请好友页面代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现手机平板端大气好看邀请好友页面代码

代码标签: div css 布局 手机 平板 大气 好看 邀请 好友 页面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邀请好友 · 双重奖励计划</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
        }

        :root {
            --primary-color: #4361ee;
            --secondary-color: #7209b7;
            --accent-color: #f72585;
            --text-color: #2b2d42;
            --light-text: #8d99ae;
            --background: #f8f9fa;
            --card-bg: #ffffff;
            --success: #06d6a0;
            --warning: #ffd166;
            --border-radius: 16px;
            --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        body {
            background-color: var(--background);
            color: var(--text-color);
            line-height: 1.6;
            font-size: 16px;
        }

        .container {
            max-width: 800px;
            padding: 30px 20px;
            margin: 0 auto;
        }

        /* 头部样式 */
        .header {
            text-align: center;
            padding: 20px 0 40px;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .header p {
            font-size: 1.1rem;
            color: var(--light-text);
            max-width: 600px;
            margin: 0 auto;
        }

        /* 横幅图片 */
        .banner-container {
            position: relative;
            margin-bottom: 40px;
            overflow: hidden;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }

        .banner {
            width: 100%;
            display: block;
            transition: transform 0.5s ease;
        }

        .banner:hover {
            transform: scale(1.02);
        }

        /* 卡片通用样式 */
        .card {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

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

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        }

        .card-title {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .card-title i {
            margin-right: 15px;
            color: var(--primary-color);
            font-size: 1.4rem;
            background: rgba(67, 97, 238, 0.1);
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        /* 奖励规则样式 */
        .reward-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }

        .reward-item:hover {
            background-color: rgba(67, 97, 238, 0.03);
            padding-left: 10px;
            padding-right: 10px;
            border-radius: 8px;
        }

        .reward-item:last-child {
            border-bottom: none;
        }

        .reward-item strong {
            color: var(--accent-color);
            font-size: 1.3rem;
            margin: 0 3px;
            font-weight: 700;
        }

        .reward-amount {
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
        }

        .reward-amount::after {
            content: '奖励';
            -webkit-text-fill-color: var(--light-text);
            font-size: 0.9rem;
            font-weight: 400;
            margin-left: 5px;
        }

        /* 邀请码样式 */
        .invite-code {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: var(--border-radius);
            padding: 35px;
            text-align: center;
            color: white;
            margin-bottom: 30px;
            box-shadow: 0 15px 35px rgba(67, 97, 238, 0.3);
            position: relative;
            overflow: hidden;
        }

        .invite-code::before {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            top: -100px;
            right: -100px;
        }

        .invite-code::after {
            content: '';
            position: absolute;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            bottom: -75px;
            left: -75px;
        }

        .invite-code div:first-child {
            font-size: 1rem;
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0